Shell

firebus's picture

Disabling keyboard on Debian so you can do a video call on your laptop with an infant and he doesn't hang up on grandma

The kid would much rather bang on the laptop keyboard than have a video call with grandma.

But banging on the keyboard inevitably leads to an early hang-up.

So disable the keyboard.

To deal with that pesky infinite carriage return problem, and make it easy to reenable the keyboard, make a couple of shell scripts, save them to the desktop, and you can double-click to disable, and double-click the other one to enable.


firebus's picture

Better grep

So, this is maybe the dumbest thing ever, but since I've been working a lot lately with a large codebase that's new to me and has many odd dependencies I do this a lot:


grep -lr someFunctionName someRepositoryWorkingCopy/

And for every interesting hit, I get about 5 hits from inside a .svn directory which makes it hard to see anything.

So then I have to go back and say


grep -lr someFunctionName someRepositoryWorkingCopy/ | grep -v svn


Syndicate content

Powered by Drupal - Design by Artinet - Amazon Affiliate