http://blog.astyran.sg/2012/01/installing-ruby-v193-on-amazon-ami.html
ami-3275ee5b
padrino g project someproj -t minitest -e erb -d mongoid -m rr -s jquery -c sass -b | |
padrino g project foo_proj -t minitest -e erb -d activerecord -m rr -s jquery -c scss -a sqlite -b |
#! /usr/bin/env python | |
"""{escher} -- one-file key-value storage. | |
What? | |
This is a toy application to manage persistent key-value string data. | |
The file {escher} is *both* the application and its data. | |
When you run any of the commands below, the file will be executed and, | |
after data change, it will rewrite itself with updated data. | |
You can copy the file with whatever name to create multiple datasets. |
# remove current npm | |
npm uninstall npm -g | |
brew uninstall node | |
# install latest node | |
brew install node | |
## install coffeescript | |
npm install -g coffee-script |
padrino rake ar:schema:load -e test |
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'aws-sdk' | |
#creates an interface object to AWS S3 | |
AWS.config( :access_key_id => '' , :secret_access_key => '' ) | |
#creates an interface to the S3 | |
s3interface = AWS::S3.new | |
# Create ~/.inputrc and fill it with this: | |
# https://coderwall.com/p/oqtj8w | |
# This allows you to search through your history using the up and down arrows … i.e. type "cd /" and press the up arrow and you'll search through everything in your history that starts with "cd /". | |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
This combines the instructions on a few different tutorials:
#!/bin/sh | |
# | |
# used in https://gist.github.com/dannguyen/5415628 for CentOS | |
# modification of: http://articles.slicehost.com/2009/2/2/centos-adding-an-nginx-init-script | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server |
# make sure Homebrew is ready | |
brew update | |
# this upgrades both node and npm | |
brew upgrade node | |
# install packages | |
npm install | |
# (optional) coffeescript for textmate |