Skip to content

Instantly share code, notes, and snippets.

Chris Anderton chrisanderton

Block or report user

Report or block chrisanderton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rails.rb.patch
--- rails.rb 2009-07-12 10:39:41.000000000 +0000
+++ rails.rb.new 2009-07-12 10:40:48.000000000 +0000
@@ -22,7 +22,7 @@
load_application
- @rails_app = if ActionController::Dispatcher.instance_methods.include?(:call)
+ @rails_app = if (ActionController.const_defined?(:Dispatcher) && ActionController::Dispatcher.instance_methods.include?(:call))
ActionController::Dispatcher.new
else
@chrisanderton
chrisanderton / elastix-cd.repo
Created Dec 22, 2013
Yum repo file for Elastix CD
View elastix-cd.repo
[elastix-cd]
name=Elastix RPM Repo CD
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1
@chrisanderton
chrisanderton / s3.sh
Created Oct 21, 2015 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
View s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
You can’t perform that action at this time.