- Repo
- Issue Management
- Documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Git | |
| source ~/.git_functions.sh | |
| function brakeman-output() { | |
| script/brakeman --color -o /dev/stdout -o "$1" | |
| } | |
| # Utility |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # inspiration credit: https://gist.github.com/lord-executor/3e6274f7768e3c0381df | |
| # This hook takes the following parameters: | |
| # * the path to the file that holds the commit message so far | |
| # * the type of commit | |
| # * the commit SHA-1 if this is an amended commit | |
| require 'open3' | |
| require 'pry' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AuditModels | |
| def self.models_by_name | |
| Rails.application.eager_load! | |
| # If you want to load the objects, instead of their names, use | |
| # ActiveRecord::Base.descendants | |
| ActiveRecord::Base.subclasses.map(&:name) | |
| end | |
| # Pretend this is a decorator :P | |
| def self.bullet_formatted(items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function executeReferencedRequest({ collectionUUID, requestName }, callback) { | |
| var _ = require('lodash'); | |
| //Please refer Postman docs on how to generate an API KEY https://go.pstmn.io/docs-pro-api-intro | |
| const API_KEY = "<API-KEY>"; | |
| /* | |
| Here we are making an API call to Postman (Refer: https://api.getpostman.com) using pm.sendRequest from the script, | |
| to fetch the collection from which we need to reuse the request. | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Based on: https://github.com/api-evangelist/postman/blob/master/postman-echo-openapi.json | |
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "version": "1.0", | |
| "title": "Postman Echo", | |
| "description": "Postman Echo is service you can use to test your REST clients and make sample API calls. It provides endpoints for `GET`, `POST`, `PUT`, various auth mechanisms and other utility endpoints.\n\nThe documentation for the endpoints as well as example responses can be found at [https:\/\/echo.getpostman.com](https:\/\/echo.getpostman.com?source=echo-collection-app-onboarding)", | |
| "termsOfService": "http:\/\/exmple.com\/license\/" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # generate new personal ed25519 ssh key | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs | |
| ssh-keygen -t ed25519 -f manta_host_ca -C manta.network | |
| eval "$(ssh-agent -s)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Great Post: https://ohshitgit.com | |
| # Clean Version: https://dangitgit.com | |
| # Git | |
| # Command I always want to do first | |
| alias gitff='git config --global pull.ff only' | |
| alias git-remote_check='git remote -v' | |
| alias overcommit-off='OVERCOMMIT_DISABLE=1' | |
| alias oco='overcommit-off' |