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
/* Note: Turn Chrome 'off' first */ | |
cd /Users/{{USER}}/Library/Application\ Support/Google/Chrome/Default && sqlite3 History | |
sqlite> .mode csv | |
sqlite> .ouput chrome_history.csv | |
sqlite> select url from urls; | |
sqlite> .ouput stdout | |
cat chrome_history.csv |
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
sudo tcpdump -s 0 -vvv -e -S -n -A -i any 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' | grep Referer | |
This oneliner will give you all the urls you're visiting. |
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
md5 -q -s "mypassword" | pbcopy | INTE="$(wc .zsh_history | awk '{print $1-1}')" | head -n +$INTE .zsh_history | >dump && mv dump .zsh_history | |
//even better is when you use gpg and read the password out of an encrypted file | |
// and dont use md5 use sha2 ±__± | |
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 | |
#script for rails dev | |
inotifywait -q -m -e close_write /your/project/folder | | |
while read -r filename event; do | |
killall ruby && `cd /your/project/folder && rails s` | |
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
#NoTrayIcon | |
;LWin & c::Send ^c ;copy | |
;LWin & x::Send ^x ;cut | |
;LWin & v::Send ^v ;paste | |
;LWin & a::send ^a ;select all | |
;LWin & z::send ^z ;undo | |
;LWin & y::send ^y ;redo |
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
" ======================= | |
" IDEAVIM CONFIG | |
" ======================= | |
" OPTIONS | |
set ignorecase | |
set noshowmatch | |
set smartcase | |
set surround | |
set multiple-cursors |