Archive for January, 2014

16Jan

Airplane Mode from the Ubuntu Terminal

Posted by Elf Sternberg as Uncategorized

I ride a bus to and from the office every day. While I love Ubuntu, getting a constant barrage of “WiFi Available” popups whenever we pass by a coffee shop is annoying as hell. Digging into the network manager every day is a chore. Solution: A simple command line handler with a memorable name: #!/bin/bash […]

07Jan

git wordcount

Posted by Elf Sternberg as Uncategorized

This is an early draft, but I figured you might enjoy taking a look at my latest little toy: #!/bin/bash ARG=”” if [ “${1:0:2}” == ‘-h’ ]; then HEAD=”${1:1}” HEAD=${HEAD//h/^} ARG=” HEAD$HEAD..HEAD ” fi REM=`git diff -U $ARG | grep ‘^-‘ | sed ‘s/^-//’ | wc -w` ADD=`git diff -U $ARG | grep ‘^+’ | […]


Subscribe to Feed

Categories

Calendar

January 2014
M T W T F S S
« Oct   Aug »
 12345
6789101112
13141516171819
20212223242526
2728293031