This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream your-app { | |
# fail_timeout=0 means we always retry an upstream even if it failed | |
# to return a good HTTP response (in case the Unicorn master nukes a | |
# single worker for timing out). | |
server unix:/tmp/your_app.socket fail_timeout=0; | |
} | |
server { | |
listen 80; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'), | |
routes = require('./routes'), | |
redis = require('redis'), | |
publisherClient = redis.createClient(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h1 Pub/Sub Updates | |
ul.data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /home/duckworth/.local_zshrc | |
CHICAGO_HOUR=`date +"%H"` | |
EHV_HOUR=$(($CHICAGO_HOUR+7)) | |
echo "It's now $CHICAGO_HOUR o'clock in Chicago and $EHV_HOUR o'clock in EHV" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'httparty' | |
class Issue | |
BASE_URI = "http://your-chiliproject-uri-here/issues" | |
CHILI_API_KEY = ENV["HUBOT_CHILIPROJECT_API_KEY"] || raise("You must set the 'HUBOT_CHILIPROJECT_API_KEY' environment variable!") | |
include HTTParty | |
base_uri BASE_URI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# act like vim | |
setw -g mode-keys vi | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Swap panes and maintain cursor | |
bind-key C-j swap-pane -D -d | |
bind-key C-k swap-pane -U -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
<title></title> | |
<style> | |
.chart rect { | |
fill: steelblue; | |
stroke: white; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :deploy do | |
desc "Show which commits would be deployed right now" | |
remote_task :what do | |
print "(Locally) Fetching current state of origin..." | |
`git fetch origin` | |
origin_master_head = `cat .git/refs/remotes/origin/master`.chomp | |
origin_head_details = `git log #{origin_master_head} --pretty=oneline -n 1` | |
puts origin_master_head | |
print "Current commit on server is..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trying to use http://blog.zenspider.com/blog/2012/09/ohmygems.html | |
# | |
# When I run "omg sample" and install a gem (via "gem install" or "bundle install"), it | |
# is still going into the "global" directory though. | |
# | |
# I may be doing something wrong, but, it seems like GEM_HOME is not being maintained | |
# in rbenv's shim commands. | |
# | |
# What am I doing wrong? |