Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
if [ -z "$1" ]; then
echo "Using arne's default offset for darjeeling in the daytime (3.5 minutes)."
echo "Otherwise specify your offset in seconds."
echo "\n\tteatime [seconds]\n"
offset=210
else
offset=$1
fi
target=$((`date +%s` + $offset))

Keybase proof

I hereby claim:

  • I am pattex on github.
  • I am pattex (https://keybase.io/pattex) on keybase.
  • I have a public key whose fingerprint is 3AAB 0B52 8958 4BED 647C 429B D67D 5336 85A8 013B

To claim this, I am signing this object:

@pattex
pattex / default.haml
Created April 16, 2012 13:04
Use Jekyll with haml
!!! 5
%html
%head
%title
= site.title
%body
= content
@pattex
pattex / Base File.sublime-settings
Created September 21, 2011 09:38
Sublime Text 2 - User Settings Base File
{
"color_scheme": "Packages/User/Smyck.tmTheme",
"default_line_ending": "unix",
"dictionary": "Packages/Language - German/de_DE.dic",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"folder_exclude_patterns":
[
".svn",
@pattex
pattex / gist:275178
Created January 12, 2010 13:19
.Xmodmap
! Map Control_{R,L} to cmd (apple) and Super_{R,L} keys to ctrl on my Apple keyboard.
clear control
clear mod4
keycode 134 = Control_R
keycode 133 = Control_L
keycode 105 = Super_R
keycode 37 = Super_L