This file contains 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
# File: /etc/bash.bashrc | |
# System-wide .bashrc file for interactive bash(1) shells. | |
# To enable the settings / commands in this file for login shells as well, | |
# this file has to be sourced in /etc/profile. | |
# If not running interactively, don't do anything | |
if [[ -z "$PS1" ]]; then |
This file contains 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 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? |
This file contains 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 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
# Description: | |
# "I agree" gifs | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
This file contains 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 | |
# Do this: | |
# gem install httparty nokogiri | |
# Then run this file... | |
require 'httparty' | |
require 'nokogiri' |
This file contains 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
source 'https://rubygems.org' | |
gem 'rails', '~> 3.2' | |
gem 'haml' | |
gem 'jquery-rails' | |
gem 'puma' | |
gem 'devise' | |
gem 'person-name', require: 'person-name', git: 'https://github.com/tomkersten/person-name.git' |
This file contains 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
# If you have a branch named "tSOME_NUMBER" (eg: 't332'), this will open that | |
# ticket in a web browser for review. | |
# | |
# eg: | |
# $ git co t332 | |
# $ review | |
# ...browser opens to ticket #332 page | |
# | |
# replace SOME_URL with the URL up-to the ticket number in your issue/ticket-management system | |
# eg: "https://github.com/USER_ID/PROJECT_NAME/issues/" |
This file contains 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..." |
NewerOlder