I hereby claim:
- I am sit on github.
- I am emilsit (https://keybase.io/emilsit) on keybase.
- I have a public key ASDX1Y165C9JTvdEJp0_CsOFCp1ZJde9srVIXqgGgjWBHQo
To claim this, I am signing this object:
#!/usr/bin/perl -w | |
# | |
# Convert unix times (on command line or one-per-line via stdin) | |
# to human readable times in local timezone. | |
# | |
if (@ARGV) { | |
print join("\n", map { scalar localtime($_); } @ARGV), "\n"; | |
} else { | |
while (<STDIN>) { | |
chomp; |
#!/bin/sh | |
# | |
# Convert from a MTS to a mp4 file using HandbrakeCLI | |
# Handbrake available from, for example, http://handbrake.fr/downloads2.php | |
# | |
# Renames files as prefixYYYYMMDD_basename.mp4 in the current directory. | |
# If you have an AVCHD directory, for example, you could run | |
# mts2mp4 /Volumes/SDCARD/PRIVATE/BDMV/STREAM/*.MTS | |
# to convert from your SDCARD into your current directory (on OS X). | |
# |
/* | |
* A minimal script to demonstrate the problem discussed at | |
* http://stackoverflow.com/questions/7524340/how-do-groovy-scripts-interact-with-propertymissing | |
*/ | |
class Thing { | |
} | |
class FooSyntax { | |
def myKeyword(Thing t) { println "Hello Foo " + t.toString(); } |
ant clean | |
ant package | |
(cd metastore && ant model-jar) | |
ant test -Dtestcase=TestCliDriver -Dqfile=archive.q |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
site :opscode | |
# Suck in all cookbooks in local chef-repo | |
Dir.entries("cookbooks").each do |cookbook_name| | |
next if cookbook_name.starts_with?('.') | |
cookbook_dir = "cookbooks/#{cookbook_name}" | |
next unless File.directory?(cookbook_dir) |
{ | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"scripts": [ | |
"scripts/chef-client.sh", | |
"scripts/vagrant.sh" | |
], | |
"override": { | |
"virtualbox": { |
# | |
# Ways of stringifying Hello World in Python | |
# | |
a = "hello" | |
b = "world" | |
"%s %s" % (a, b) | |
"%(a)s %(b)s" % locals() | |
"{a} {b}".format(**locals()) | |
"{first} {second}".format(first=a, second=b) |
#!/bin/sh | |
# | |
# Mount a truecrypt volume on /media/truecrypt1 | |
USER_DATA_DIR=/media/truecrypt1/Chrome/$USER | |
if [ ! -d $USER_DATA_DIR ]; then | |
echo No secure data directory $USER_DATA_DIR 1>&2 | |
exit 1; | |
fi |
I hereby claim:
To claim this, I am signing this object:
# | |
# Usage: mkdir /tmp/export; find path -name *.html | xargs python | |
# import_dayone.py | tee /tmp/export.log | |
# | |
import datetime | |
import plistlib | |
import pytz | |
import uuid | |
import sys |