Skip to content

Instantly share code, notes, and snippets.

@tinti
tinti / gist:4032444
Created November 7, 2012 16:00
Rails 3.2.0 Capistrano
#require "bundler/capistrano"
require "rvm/capistrano"
# General
set :application, "test_capistrano"
set :domain, "test_capistrano.mxt.com.br"
set :user, "mxt"
set :runner, "mxt"
set :use_sudo, false
set :deploy_to, "/home/mxt/rails/#{application}"
@tinti
tinti / gist:2659667
Created May 11, 2012 13:36
Open file in Vim and go to a specific line
# Open 'myfile' and go to line 123
vim myfile +123
@tinti
tinti / UBI issues
Created April 30, 2012 13:12 — forked from maluta/UBI issues
# UBI mount
# source:
# http://mytechrants.wordpress.com/2010/01/20/ubiubifs-on-nandsim/
# http://www.plugcomputer.org/plugwiki/index.php/Enabling_UBIFS
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15
cat /proc/mtd
ubiformat /dev/mtd0 -f system.ubi
modprobe ubi mtd=0
@tinti
tinti / gist:1627086
Created January 17, 2012 15:34
Fast file sharing over HTTP with Python
Simply run:
python -m SimpleHTTPServer