<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:
#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' |
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 |
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 |
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. |