Last active
December 26, 2015 17:49
-
-
Save shawndumas/7189664 to your computer and use it in GitHub Desktop.
A bunch of CLI miscellany
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
# current tty's PIDs | |
ps -fu `whoami` | grep 'pts/`tty | cut -d/ -f4`' | |
# capture ip traffic | |
ngrep -q -d any -W none ip | |
# mitm proxy | |
socat -v TCP-LISTEN:<port>,fork TCP:localhost:<port> | |
# reverse tunnel | |
local="localhost:8080" | |
remote="*:80" | |
ssh -R ${remote}:${local} [email protected] -nNT | |
# remote? local? wah? --> http://i.imgur.com/7HBYvzf.png | |
# stronger encryption in vim | |
# :setlocal cm=blowfish | |
# watch for a file | |
watch -d 'find . -name filename.ext' | |
# youcompleteme | |
cmake -G "Unix Makefiles" -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Headers . /Users/shawndumas/.vim/bundle/YouCompleteMe/cpp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment