Skip to content

Instantly share code, notes, and snippets.

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"
@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"
@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 / 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

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 / .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>
@jodoherty
jodoherty / gvim
Last active January 12, 2016 11:02
gvim wrapper for Cygwin (makes it easy to use the Win32 gvim.exe from the Cygwin shell)
#!/bin/sh
#
# Windows gvim wrapper for Cygwin
#
# Copyright (c) 2016 James O'Doherty
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@jodoherty
jodoherty / burndvd
Created December 17, 2015 17:19
burndvd script
#!/bin/sh
#
# burndvd 0.1
#
# Copyright (c) 2015 James O'Doherty <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@jodoherty
jodoherty / burnr
Last active December 18, 2015 17:59
burnr xorriso wrapper script
#!/bin/sh
#
# burnr 0.2.0
#
# Copyright (c) 2015 James O'Doherty <[email protected]>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@jodoherty
jodoherty / Dockerfile
Last active September 15, 2016 00:45
eclipse che web recipe
FROM ubuntu:16.04
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
bash sudo unzip curl build-essential git \
subversion openssh-server openjdk-8-jre \
man openssl postgresql-common postgresql-9.5 libpq-dev \
ruby ruby-dev \
libgdbm-dev libncurses5-dev automake libtool bison libffi-dev && \
sudo -u postgres createuser user -s && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 && \