Skip to content

Instantly share code, notes, and snippets.

View seanculver's full-sized avatar

Sean Culver seanculver

View GitHub Profile
version: 2
jobs:
test-job:
machine: true
steps:
- checkout
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)"
- run: nanobox evar add local COVERALLS_REPO_TOKEN=$COVERALLS_REPO_TOKEN
@seanculver
seanculver / database.yml
Last active December 26, 2015 03:49
Rails 4 database.yml
development: &default
adapter: mysql2
host: localhost
encoding: utf8
database: roguerails_dev
username: root
password:
test:
<<: *default
@seanculver
seanculver / purge.sh
Last active December 25, 2015 23:39 — forked from adrienbrault/purge.sh
Updated for debian
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
UPDATE pg_database SET datallowconn = TRUE where datname = 'template0';
\c template0
UPDATE pg_database SET datistemplate = FALSE where datname = 'template1';
drop database template1;
create database template1 with template = template0 encoding = 'UNICODE' LC_CTYPE = 'en_US.UTF-8' LC_COLLATE = 'C';
UPDATE pg_database SET datistemplate = TRUE where datname = 'template1';
\c template1
UPDATE pg_database SET datallowconn = FALSE where datname = 'template0';