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 archive branch --format=tar | gzip > branch.tar.gz |
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
| vagrant plugin install vagrant-vbguest | |
| vagrant up | |
| sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions | |
| vagrant reload | |
| ------------ |
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
| //stop service | |
| sudo launchctl unload /Library/LaunchDaemons/org.macports.dnsmasq.plist | |
| //stop service through reboots | |
| sudo launchctl unload -w /Library/LaunchDaemons/org.macports.dnsmasq.plist | |
| //start service | |
| sudo port load dnsmasq | |
| //reload through reboots |
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
| redis-cli KEYS "related-parts-output-*" | xargs redis-cli DEL |
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
| export TERM=xterm |
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 | |
| echo "stop running container" | |
| sudo docker stop <container_name> | |
| echo "remove container" | |
| sudo docker rm <container_name> | |
| echo "remove current image" | |
| sudo docker rmi <image>:current |
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 branch | |
| * master | |
| portfolio_updates | |
| git checkout portfolio_updates <the_file_path(s)> | |
| git status | |
| git reset HEAD . | |
| git status |
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
| netstat -ln | grep LISTEN | grep -o ':<portnum> ' | awk {'print substr($0,2)'} |
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/sh | |
| docker events --filter 'event=start' --filter 'event=stop' | while read event | |
| do | |
| container_id=`echo $event | sed 's/.*Z\ \(.*\):\ .*/\1/'` | |
| echo $container_id |
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
| docker inspect --format='{{ .State.Running }}' <container_name> |
OlderNewer