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
while ( true ); do | |
conn=$(netstat -nat |grep :22 |grep -i established) | |
if [ $(#conn) gt 0 ]; then | |
ping -I eth2 www.google.com | |
end | |
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
git ls-remote git://github.com/nyxcharon/Test.git | cut -f1 | sed 's/.\{32\}$//' |
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
groff -Tascii -man coffee.man | more |
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
ssh -fnL 9999:localhost:9999 host1 ssh -L 9999:localhost:22 -N host2 | |
scp -P 9999 filename localhost: |
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
## dca75718 is the hash for the commit you want to remove | |
git push origin +dca75718^:master |