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
From a9753966872890154599fb9a0eb22a3fbe697515 Mon Sep 17 00:00:00 2001 | |
From: CORP\thanley <[email protected]> | |
Date: Wed, 14 Jan 2009 13:38:49 -0800 | |
Subject: [PATCH] Documented MasterDatabase inheritance for Models for Passenger. | |
--- | |
README.markdown | 3 +++ | |
1 files changed, 3 insertions(+), 0 deletions(-) | |
diff --git a/README.markdown b/README.markdown |
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 bash | |
# place this in your path somewhere | |
# usage xcodeversionr.sh 1.0.1 MyProject-Info.plist | |
echo "Version: $1" | |
echo "File: $2" | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $1 (build `git rev-parse --short HEAD`)" $2 |
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
# etag configuration: | |
FileETag MTime Size | |
SetOutputFilter DEFLATE | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ \ | |
no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \ | |
\.(?:exe|t?gz|zip|bz2|sit|rar)$ \ | |
no-gzip dont-vary | |
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary |
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
#!/bin/bash -x | |
source ~/.bash_profile | |
rvm use ree@appgemset | |
bundle install | |
bundle exec rake db:migrate | |
bundle exec rake spec | |
cap deploy |
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
# This will create a user with a default password of #{username}123 | |
# then the first time they connect they are prompted to change their password | |
# once the user is created in your local ./tmp directory you'll have the | |
# private and public keys for the new user | |
desc "Create a user on the servers" | |
require "cocaine" | |
task :create_server_user do | |
set(:user_to_add, Capistrano::CLI.ui.ask("USERNAME you'd like to add: ") ) |
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
# uses route53 gem https://github.com/pcorliss/ruby_route_53 | |
namespace :rubber do | |
desc "Setup Route53 for hosts" | |
task :setup_route53 do | |
require 'route53' | |
conn = Route53::Connection.new("ACCESS_KEY","SECRET_ACCESS_KEY") | |
#List Operations | |
zones = conn.get_zones #Requests list of all zones for this account | |
records = zones.first.get_records #Gets list of all records for a specific zone |
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
desc "Create about and revision files." | |
task :rev_deployment, :roles => [:app, :web] do | |
require 'grit' | |
require 'chronic' | |
# include Grit | |
work_dir = File.join(File.dirname(__FILE__), '../../') | |
g = Grit::Repo.new(work_dir) | |
since = Chronic.parse('last week friday') | |
msg = "\n" | |
rev_file = File.join(File.dirname(__FILE__), '../../','tmp/revision.txt') |
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 :rubber do | |
after "rubber:upgrade_packages", "rubber:prep_for_bootstrap" | |
desc "prep server for node install" | |
task :prep_for_bootstrap, :roles => 'node-js' do | |
rsudo "apt-get install python-software-properties" | |
rsudo "add-apt-repository ppa:chris-lea/node.js" | |
rsudo "apt-get update" | |
rsudo "apt-get -y install nodejs" | |
end | |
end |
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
BASH_KEYS=$(cat <<EOF | |
Ctrl + A Go to the beginning of the line you are currently typing on | |
Ctrl + E Go to the end of the line you are currently typing on | |
Ctrl + L Clears the Screen, similar to the clear command | |
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. | |
Ctrl + H Same as backspace | |
Ctrl + R Let’s you search through previously used commands | |
Ctrl + C Kill whatever you are running | |
Ctrl + D Exit the current shell |
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
require 'rubygems' | |
require 'httparty' | |
require 'hashie' | |
require 'yaml' | |
YAML::ENGINE.yamler = 'syck' | |
YOUR_ACCESS_TOKEN = 'something' | |
url = 'https://api.instagram.com/v1/users/self/media/recent/?access_token=#{YOUR_ACCESS_TOKEN}&count=300' |
OlderNewer