Skip to content

Instantly share code, notes, and snippets.

Avatar

Hans Hasselberg i0rek

View GitHub Profile
@itsderek23
itsderek23 / Dockerfile
Created Aug 27, 2013
Example Docker File to start a Rails app located in a local ./docker-rails directory.
View Dockerfile
# docker build -t="rails" .
FROM ubuntu:12.04
RUN apt-get update
## MYSQL
RUN apt-get install -y -q mysql-client libmysqlclient-dev
## RUBY
View gist:2405385
# cat .env
# MYVAR=1
#
# with_env ruby -e "p ENV['MYVAR']" # => 1
# ruby -e "p ENV['MYVAR']" # => nil
with_env() {
env $([ -f ".env" ] && cat .env) $*
}
@erikh
erikh / hack.sh
Created Mar 31, 2012 — forked from DAddYE/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#