NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
task :deploy => ['deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
task :migrations => [:push, :off, :migrate, :restart, :on, :tag] | |
task :rollback => [:off, :push_previous, :restart, :on] | |
task :push do | |
puts 'Deploying site to Heroku ...' | |
puts `git push heroku` | |
end |
module Jekyll | |
require 'haml' | |
class HamlConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) | |
ext =~ /haml/i | |
end |
setopt prompt_subst | |
autoload colors zsh/terminfo | |
colors | |
function __git_prompt { | |
local DIRTY="%{$fg[yellow]%}" | |
local CLEAN="%{$fg[green]%}" | |
local UNMERGED="%{$fg[red]%}" | |
local RESET="%{$terminfo[sgr0]%}" | |
git rev-parse --git-dir >& /dev/null |
#!/bin/bash | |
COUNT=10 | |
BRIDGE="br1" | |
FORMAT="lxc%d" | |
PARENT=$(hostname --fqdn) | |
LXC_ROOT=/srv/virt/lxc | |
OS_ROOT=/srv/virt/lxc/base/root | |
for num in $(seq 1 $COUNT) |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
/* | |
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
*/ | |
var http = require('http'), | |
fs = require('fs'), | |
util = require('util'); | |
http.createServer(function (req, res) { | |
var path = 'video.mp4'; |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
cd () | |
{ | |
builtin cd "$@" | |
RETVAL=$? | |
# Test for successful real cd: | |
if [ 0 -ne $RETVAL ]; then | |
return $RETVAL | |
fi | |
#!/bin/bash | |
#Heith Seewald 2012 | |
#Feel free to extend/modify to meet your needs. | |
#Maya on Ubuntu v.1 | |
#This is the base installer... I’ll add more features in later versions. | |
#if you have any issues, feel free email me at heiths@gmail.com | |
#### Lets run a few checks to make sure things work as expected. | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then |