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 bindContext(object){ | |
| return new Proxy({ | |
| get: function(target, key){ | |
| if(typeof target[key] === 'function' && !target.hasOwnProperty(key)){ | |
| return target[key].bind(target); | |
| } | |
| return target[key]; | |
| } | |
| }); |
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
| cat systems.txt | uniq | sed '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
| # if you don't have a pre commit hook you can | |
| # manually use this command. | |
| git diff --name-only | xargs jshint | |
| # save as an alias. | |
| alias sc="git diff --name-only | xargs jshint" |
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 diff --name-only master | xargs jshint |
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
| (api)~/api/code vagrant@bbills-vm » set -a ± SCRUM-8841:ce4e7d1 | |
| (api)~/api/code vagrant@bbills-vm » source /etc/finda/config.env ± SCRUM-8841:ce4e7d1 | |
| (api)~/api/code vagrant@bbills-vm » set +a |
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 bash | |
| prog=$(basename ${0}) | |
| # Defaults | |
| verbose=0 | |
| env="staging" | |
| function help() { | |
| printf "Usage: %s [-h/--help] [-e/--env <env>] <url>\n" "$prog" |
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
| for i in $(docker-machine ls | awk '{print $1}'); do | |
| docker-machine ssh $i -- ls /swapfile || docker-machine ssh $i "fallocate -l 512M /swapfile && chmod 400 /swapfile && mkswap /swapfile" && | |
| docker-machine ssh $i "swapon /swapfile && echo '/swapfile none swap defaults 0 0' >> /etc/fstab" &>/dev/null; | |
| done |
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
| billsb@Brentons-MacBook-Pro ~/work/finda-db (fixing-up-doc)$ "/System/Library/CoreServices/Applications/Network Utility.app/Contents/Resources/stroke" 192.168.99.100 1 10000 | |
| Port Scanning host: 192.168.99.100 | |
| Open TCP Port: 22 ssh | |
| Open TCP Port: 2376 | |
| Open TCP Port: 5432 postgresql |
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
| ag --ignore-dir node_modules setState react-udemy-* |
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
| # | |
| # Prompt | |
| # | |
| # Set the prompt theme to load. | |
| # Setting it to 'random' loads a random theme. | |
| # Auto set to 'off' on dumb terminals. | |
| if [[ $TERM =~ '^eterm' ]]; then | |
| zstyle ':prezto:module:prompt' theme 'steeef' |