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
| ubuntu@dm1a:/etc/network/interfaces.d$ sudo iptables -t nat -L | |
| Chain PREROUTING (policy ACCEPT) | |
| target prot opt source destination | |
| DOCKER all -- anywhere anywhere ADDRTYPE match dst-type LOCAL | |
| Chain INPUT (policy ACCEPT) | |
| target prot opt source destination | |
| Chain OUTPUT (policy ACCEPT) | |
| target prot opt source destination |
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
| #echo $subnets | jq '.Subnets | .[] | .AvailabilityZone + ":" + (.Tags[]|select(.Key=="Name")|.Value |tostring) + ":" + .SubnetId' | |
| #echo $subnets | jq -r '.Subnets | .[] | "[\"" + .AvailabilityZone + "\"]=" + .SubnetId' |
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 ~ $ more brent.js | |
| function test(): | |
| this; | |
| is; | |
| a test; | |
| billsb@Brentons-MacBook-Pro ~ $ sed 's/[[:space:]]\{4,\}/ /g' brent.js | |
| function test(): | |
| this; | |
| is; | |
| a test; |
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' |
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
| 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
| 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
| #!/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
| (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
| git diff --name-only master | xargs jshint |