Skip to content

Instantly share code, notes, and snippets.

@MikePearce
MikePearce / Xmodmap mapping
Last active December 23, 2015 14:29
Contents of ~/.Xmodmap. This allows the Ubuntu key mappings to behave (sort of) like OSX.
remove control = Control_L
remove mod4 = Super_L Super_R
keysym Control_L = Super_L
keysym Super_L = Control_L
keysym Super_R = Control_L
add control = Control_L Control_R
add mod4 = Super_L Super_R
pointer = 1 2 3 5 4 6 7 8 9 10 11 12
@MikePearce
MikePearce / Things to do after install Ubuntu
Created September 30, 2013 08:05
Things to do after you've installed Ubuntu
# Install tweak tools
sudo apt-get install unity-tweak-tool
sudo apt-get install gnome-tweak-tool
# Install compiz
sudo apt-get install compizconfig-settings-manager compiz-plugins-extra
# Disable guest and remote login accounts
sudo nano /etc/lightdm/lightdm.conf
allow-guest=false
@MikePearce
MikePearce / Contract Killer 3.md
Last active August 29, 2015 14:25
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

import time
# Set some vars
number_of_commuters = 1000
number_of_visible_steps = 20
steps_between_walkers = 2
complete_escalator_seconds = 60
total_time = 0
count = 0

Keybase proof

I hereby claim:

  • I am mikepearce on github.
  • I am mikepearce (https://keybase.io/mikepearce) on keybase.
  • I have a public key ASC-VXnewzaICglgnjbobVpnVaBZGiFodIaucm-u3jb_mgo

To claim this, I am signing this object: