I recently had to uninstall/reinstall my brew casks and recipies because I had royally screwed something up. I have a script to re-install all the things I want so it was no drama except for the downloads and re-install, and some oversights when I uninstalled brew. So here is what I think I should have done:

1. uninstall any applications installed with brew cask

$ for APP in $(brew cask list); do
  brew cask uninstall $APP

What to run:

rsync -HPva --delete <source>/ <dest>/

(tip for remembering: "Arr! Sync! Hey, Pretty view, eh? Do Eet")


  • -H sync any hard links as hard links, as distinct from files, at the destination
history -d $((${HISTCMD}-1));history -d $((${HISTCMD}-1))

qdbus org.kde.KWin /Compositor

Gives you true or false depending on whether it is currently enabled or not

You can enable compositing by calling

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume

and disable by calling

View bach-wtc1-1.rb
#### Sonic Pi -*- mode:ruby -*-
# Bach Preludes & Fugues 1-12 Well Tempered Clavier
# Book 1, Prelude 1. Transcribed from
define :bach do |n|
#play an array of notes twice, with the last 3 repeated each time
#this is the pattern used repeatedly in Prelude no.1
2.times do

Open about:config and set mousewheel.default.delta_multiplier_y to negative, e.g. -100 if the current value is (the default) 100

This should only be necessary on platforms where Firefox isn't honouring the global setting. For instance on a Mac or Windows it's not necessary if you've set the scrolling direction to reverse globally, but on Linux, Firefox doesn't honour KDE's setting. I haven't tested GNOME ….

The default setting is fine for an actual mouse-wheel, but when using a touchpad to two-finger-scroll (or a trackball), it's more Natural for the page to scroll down when you swipe your fingers up: it seems more like how a paper page will shift.


Irish Cream

Per batch (about 870ml)

  • 1 teaspoon unsweetened cocoa powder
  • 1 teaspoon instant coffee powder
  • 1 cup (235 ml) thickened/whipping cream
  • 1 (400 ml) can sweetened condensed milk
  • ½ teaspoon vanilla extract
View win-timezone-information.reg
Windows Registry Editor Version 5.00

Quick'n easy gpg cheatsheet

Just a brief explanation of some of the command line functionality from gnu privacy guard (gpg).

-- Originaly from (no relation)

Create a key:

gpg --gen-key generally you can select the defaults.