Skip to content

Instantly share code, notes, and snippets.

@jodoherty
jodoherty / .fonts.conf
Created November 19, 2015 20:07
My fontconfig settings
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="rgba" mode="assign">
<const>none</const>
</edit>

Keybase proof

I hereby claim:

  • I am jodoherty on github.
  • I am jodoherty (https://keybase.io/jodoherty) on keybase.
  • I have a public key whose fingerprint is 9478 9625 28B0 1778 DC4E 98F3 DC26 B955 51CE 088C

To claim this, I am signing this object:

@jodoherty
jodoherty / google-io-lawton-2015.md
Created March 20, 2015 03:00
Google I/O 2015 Extended - Lawton

Google I/O 2015 Extended - Lawton

Agenda

Day 1: May 28, 2015

  • 8:00 am : Check-in (check-in is open all day) [ Donuts and coffee? ]
  • 9:00 am : Donuts and coffee?
  • 10:00 am : Introduction speech (highlight sponsors) and icebreaker session
  • 11:00 am : Google I/O keynote and sessions livestream in the conference room
@jodoherty
jodoherty / app
Created January 30, 2015 03:19
SysV init script for a passenger standalone Rails application
#!/bin/sh
### BEGIN INIT INFO
# Provides: app
# Required-Start: $network $local_fs
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Rails application
# Description: Rails application
### END INIT INFO
@jodoherty
jodoherty / deploy_production.sh
Created December 18, 2014 21:20
Middleman S3 deployment script using aws cli tools
#!/bin/sh
BUCKET="james-odoherty.com"
set -e
bundle exec middleman build
find ./build \( -iname '*.html' -o -iname '*.css' -o -iname '*.js' -o -iname '*.txt' \) -exec gzip -9 -n {} \; -exec mv {}.gz {} \;
aws s3 rm s3://$BUCKET --recursive
aws s3 sync build/ s3://$BUCKET/ --acl=public-read --delete --cache-control="max-age=1576800000" --exclude "*.html" --exclude "*.css" --exclude "*.js" --exclude "*.txt"
export PATH=$HOME/bin:$PATH
export DOCKER_TLS_VERIFY=1
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/james/.boot2docker/certs/boot2docker-vm
export PATH="$HOME/homebrew/bin:$PATH"
export PATH="$HOME/.npm-prefix/bin:$PATH"
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
export PATH="$GEM_HOME/bin:$PATH"