Skip to content

Instantly share code, notes, and snippets.

@chrisanderton
chrisanderton / s3.sh
Created October 21, 2015 20:25 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# 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
@chrisanderton
chrisanderton / elastix-cd.repo
Created December 22, 2013 19:10
Yum repo file for Elastix CD
[elastix-cd]
name=Elastix RPM Repo CD
baseurl=file:///mnt/iso/
gpgcheck=0
enabled=1
--- 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