View firefox-reverse-wheel.md

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.

View irish-cream.md

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
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
View gpg-cheats.md

Quick'n easy gpg cheatsheet

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

-- Originaly from http://irtfweb.ifa.hawaii.edu/~lockhart/gpg/ (no relation)

Create a key:

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

View rpsls.md

Rock, Paper, Scissors, Lizard, Spock

  • Scissors cut Paper

  • Paper covers Rock

  • Rock crushes Lizard

  • Lizard poisons Spock

  • Spock smashes Scissors

  • Scissors decapitate Lizard

View accellerologger.ino
#include <SparkFun_ADXL345.h>
#include <SD.h>
#include <SPI.h>
//ADXL345 adxl = ADXL345(10); For SPI Cumunication
ADXL345 adxl = ADXL345();
File myFile;
const int threshold = 1499;
const int switchPin = 7;
int switchState;
View copy-mc-saves.md

Steps for copying Minecraft saves to a PC

(There's more of this Gist than will fit in the preview. Click on it to see the whole thing)

First, open, play and then quit Minecraft at least once; to make a .minecraft appdata folder)

  1. Open Windows Explorer (press Win+R, then type explorer)
  2. Go to the %appdata% directory. There should be a folder called .minecraft listed
  3. Open the .minecraft folder. There should be a saves folder in it.
View appdata.md

Need to take %APPDATA% directory data to another PC? For example Minecraft game saves to take in to a school for projects, or to a friend's house. The tricky part is: %APPDATA% has a different location depending on the version of Windows. Yay Microsoft, thanks once again.

The good news is that many Windows programs do use the environment variable to locate this folder, so you can just override it and launch your game or whatever from a .cmd / .bat file.

In the case of Minecraft on a USB:

  1. Make a folder structure on the USB drive for it (assume E: is the USB):
    • E:\Minecraft
    • E:\Minecraft\bin
    • E:\Minecraft\data
View count-cpus.md

I was using this pipeline:

grep -c processor /proc/cpuinfo

However there's a better way: nproc

and for a good summary of CPU info from /sys and /proc/cpuinfo use lscpu which has options to produce parseable output for pipelines.