Handy stuff
grep -B 2 -A 3 foo barShow 2 lines before and 3 lines after grepping for foo in bargrep --color=always foo bar | less -rshow foo in colors also when piping to lessgrep -E "(foo|bar)" *find files containing foo or bar (Note: file will be displayed twice)
git diff -wignore whitespace when comparing line
- options
-rshow "raw" control characters (colors)
- commands
ggoto topGgoto bottom/foosearch for foonnext searchNprevious search
git grep foo | cut -d : -f 1 | uniq | while read i; do sed -r -i s,foo,bar,g $i; donecut -ddelimiter (what char divides the search)cut -ffield (what field to get from -d search)uniqfilter out duplicatessed -rextended regular expressionssed -iedit files in place
- firefox scroll wheel speed: about:config
mousewheel.acceleration.factor: 40mousewheel.acceleration.start: 0browser.backspace_action: 0