Skip to content

Instantly share code, notes, and snippets.

View ohrite's full-sized avatar
💭
🎶 solving everything with pairing

Doc Ritezel ohrite

💭
🎶 solving everything with pairing
View GitHub Profile
@ohrite
ohrite / .bash_profile
Created October 25, 2011 00:55
Profile includes for Elastic Beanstalk
for file in $(\ls -1 ${HOME}/.bash_profile_includes/*.sh); do
source $file;
done
@ohrite
ohrite / test.sh
Created May 27, 2011 23:40
Doing cascading.multitool scripting with files
#!/usr/bin/env bash
# Copyright (c) 2011 Concurrent, Inc.
mt_path=`pwd`
content=`cat $0 | sed 's/^\s*#.*//g' | tr "\n" " " | sed 's/.*!#//'`
exec $mt_path/bin/multitool `eval echo $content`
!#
# set the source
@ohrite
ohrite / router.js
Created March 19, 2011 20:33
Route resolver for Rails3 into Backbone-style routes
// Router.js 0.1.0
// (c) 2011 Doc Ritezel
// Freely distributable under the MIT license.
//
// Load this before rails_routes.js (generated by routes_to_javascript.rb)
// Enables:
// var c = new Backbone.Controller({ routes: { Routes.root(): 'index' } });
// $('a.delete').attr('href', Routes.delete_item(3));
(function(){