Skip to content

Instantly share code, notes, and snippets.

@bezelga
bezelga / docker-machine-use-nfs.sh
Last active September 3, 2015 01:26 — forked from olalonde/docker-machine-use-nfs.sh
Use NFS instead of vboxsf in Docker Machine
#!/bin/bash
#
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
#
# Usage: sudo ./boot2docker-use-nfs.sh
#
@bezelga
bezelga / how_it_works.md
Created December 2, 2012 15:50 — forked from rubiii/how_it_works.md
MacVim-Formatter for RSpec
$ rspec --format MacVimFormatter --color spec
@bezelga
bezelga / .rspec
Created July 26, 2012 22:05 — forked from coreyhaines/.rspec
Loading just active record
--colour
-I app
#!/bin/bash
# How to use
# my_script_name bd_user db_pass project_name(should be same name on database and project_directory)
# by Alfredo Ribeiro: alfredo@aatecnologia.com.br
# Create the daily backup, delete old backups, and each month, make a copy last backup on a separated directory
mysql_user=$1
mysql_pass=$2
project_name=$3
@bezelga
bezelga / deploy.rb
Created November 28, 2010 00:47 — forked from albertoleal/deploy.rb
set :application, "myapp"
set :ip_address , "000.000.000.000"
set :scm, :git
set :repository, "git@github.com:albertoleal/Sinatra-Template.git"
set :branch, "master"
set :deploy_via, :remote_cache
set :user , "sinatra"
set :deploy_to, "/home/sinatra/#{application}"
# rails new my_app_name -J -T -m http://gist.github.com/635287.txt
remove_file 'Gemfile'
create_file 'Gemfile', <<-GEMFILE
source 'http://rubygems.org'
source 'http://gems.github.com'
gem 'rails'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem 'pg', :group => :production