Quickly View I3Wm Hotkeys

Use the code below to quickly view all the active hotkeys in your i3wm config file: i3keys #!/bin/bash grep "^[ ]*bindsym" ~/.i3/config | sed -e 's/^[ ]*bindsym //' -e 's/^[ ]*$mod/win/' | less Background i3wm has a lot of functions that come assigned to hotkeys by default. I’m constantly forgetting... [Read More]

Two Short Python Scripts For Tomboy Notes

OK, here are two more scripts I wrote to do useful things with python and Tomboy notes. tbclip This first one copies whatever text is currently selected and creates a Tomboy note with it. NB: You must have xclip installed. #!/usr/bin/python import sys, dbus, subprocess #Get the D-Bus session bus... [Read More]

Display Your Most Recent Tomboy Note

This is a handy little script I came up with. It displays the most recently modified Tomboy note. This is helpful if, like me, you make pull up a new Tomboy note for something quick and then accidentally close it by hitting escape or something. Creating a hot-key for this... [Read More]

Delete Old Uncategorized Tomboy Notes From Cron

I read an article about using python and dbus to automate some stuff with Tomboy Notes and was inspired to do some coding of my own. In a Nutshell Use the code below (and a cron job) to automatically delete Tomboy notes that were last modified more than 30 days... [Read More]

Apache Webserver No Longer Runs Php After Upgrade To Ubuntu 18

The fix See code below The story Upgraded to Ubuntu 18 and the webserver broke. Something always breaks when you upgrade. This time, it was my webserver… just like last time All the packages were installed, but turns out, the Apache php7.2 module needed to be enabled. sudo a2enmod php7.2... [Read More]

Apache Webserver No Longer Runs Php After Upgrade To Ubuntu 17.10

The fix See code below The story I recently upgraded to 17.10 after I started to get 404 errors when trying to install packages. Yeah, I should upgrade more often, but something always breaks when you upgrade. This time, it was my webserver. All the packages were installed, but turns... [Read More]

Spell Check In Vim

Tip: you can use spell checking in vim! set spell spelllang=en_us Actually, leaving off the spelllang will probably work for you too. Your system is probably set to use a default language. I’ve been using vim for years and didn’t know about this… so much to learn about vi/vim. When... [Read More]