Skip to content

Instantly share code, notes, and snippets.

@mminski
mminski / gist:31e142f7a886cbc4938e
Last active February 20, 2024 02:55
Mac OS: get chrome history as CSV
/* 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
@mminski
mminski / gist:fef38c6e228b82f1d1193e3f202ba454
Created May 6, 2016 10:34
Follow me! Spy me. Oneliner for tracking your urls
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.
@mminski
mminski / gist:660b0352ac67d062914a5608c1133004
Last active May 14, 2016 10:33
generate password without leaving traces in history
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 ±__±
#! /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
#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
" =======================
" IDEAVIM CONFIG
" =======================
" OPTIONS
set ignorecase
set noshowmatch
set smartcase
set surround
set multiple-cursors