Skip to content

Instantly share code, notes, and snippets.

sebboh /
Created November 18, 2016 23:32
Upgrade to Postgres 9.6

Stop your running postgres server (your plist name may or may not have specified the version in it, mine had 94 in the name)

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql94.plist

Upgrade to 9.6

brew update && brew upgrade postgresql

Check your version

sebboh / gist:f1dfe4f096746c45f3e9ea06a09743a0
Last active February 27, 2024 17:10 — forked from masonforest/gist:4048732
Installing a Gem on Heroku from a Private GitHub Repo

Installing a Gem on Heroku from a Private GitHub Repo

Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.

Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.

This method does not add your OAuth token to Gemfile.lock. It uses bundle config to store your credentials, and allows you to configure Heroku to use environment variables when deploying.

  1. Generate an OAuth token from GitHub
sebboh / service.erb
Created April 7, 2015 19:41
daemonize service
# template inputs:
# @service_name: name of the service
# @service_cwd: working directory for running the service
# @service_cmd: command to run the service
start () {
echo -n "Starting <%= @service_name %>..."
sebboh /
Last active August 29, 2015 14:14
# Slack operations challenge, part 1
# Author: Steve Chen
# This script installs Chef via the omnibus installer and git
# then clones and runs the slack_helloworld_cookbook which
# installs the project dependencies and "deploys" Hello World
# to the server
sebboh / index.php
Created January 23, 2015 23:18
Hello World
header("Content-Type: text/plain");
echo "Hello, world!\n";
sebboh / logstash-forwader.conf
Created January 23, 2015 19:57
"network": {
"servers": [ "" ],
"ssl ca": "./lumberjack_ca.crt",
"timeout": 15
"files": [
"paths": [