Skip to content

Instantly share code, notes, and snippets.

View wrburgess's full-sized avatar
:shipit:
Shippin'

Randy Burgess wrburgess

:shipit:
Shippin'
View GitHub Profile
@wrburgess
wrburgess / aliases.sh
Created July 29, 2012 21:48 — forked from daytonn/aliases.sh
My bash aliases
#File System
alias files="ls -l | grep -v ^d"
alias folders="s -ld */"
alias hidden="ls -ld .??*"
alias trash="rm -rf ~/.Trash/*"
alias delete="rm -Rf"
alias remove="rm -Rf"
alias lcl="cd /usr/local"
alias src='cd /usr/local/src'
alias bin='cd /usr/local/bin'
@wrburgess
wrburgess / bash_fun.sh
Created July 29, 2012 21:49
My bash functinos
dev () {
cd ~/Development
if [ ! -z "$1" ]; then
cd $1
fi
if [ "$2" == "-m" ]; then
if [ -e ~/Development/$1/$1.tmproj ]; then
open ~/Development/$1/$1.tmproj -a TextMate
@wrburgess
wrburgess / API.md
Created August 22, 2012 19:10 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@wrburgess
wrburgess / Gemfile
Created December 10, 2012 15:48 — forked from daytonn/Gemfile
Automatic ejs template compilation
group :development do
gem 'ejs'
gem 'rb-fsevent' # optional
gem 'listen'
end
language: ruby
rvm:
- 1.9.3
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
# Debugging with POW!
#
# Setup POW!'s ~/.powconfig with the following:
# export POW_WORKERS=1
# export POW_TIMEOUT=3600
#
# Run `bundle exec rdebug -c` in the Terminal to start the debugger
if (Rails.env.development? || Rails.env.test?) && !(defined?($rails_rake_task) && $rails_rake_task)
puts "=> Debugger enabled"
# include from an initializer
module HstoreAccessor
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def hstore_accessor(hstore_attribute, *keys)
Array(keys).flatten.each do |key|
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
if Rails.env.development? || Rails.env.test?
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
namespace :spec do
#!/bin/bash
# see http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
# Author: David Underhill (original)
# Author: Mike Slinn (runs from any directory)
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-remove-history path1 path2
@wrburgess
wrburgess / gist:5504600
Created May 2, 2013 19:12 — forked from shripadk/gist:552554
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
Note: I am not using the Heroku Zerigo DNS add-on, instead I have a separate Zerigo account for my DNS needs. I do this because Zerigo offers 30 hosts on free direct accounts, versus only 10 hosts on the free Heroku add-on.