Skip to content

Instantly share code, notes, and snippets.

@bertomartin
bertomartin / Vagrantfile
Last active August 28, 2015 16:18 — forked from sailor/Vagrantfile
Vagrantfile for Rails development environment
VAGRANTFILE_API_VERSION = '2'
$install = <<SCRIPT
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig
chmod +x /usr/local/bin/fig
SCRIPT
$build = <<SCRIPT
cd /vagrant
fig build
2 tone
2-step garage
4-beat
4x4 garage
8-bit
acapella
acid
acid breaks
acid house
acid jazz
# Requires ImageMagick
# Converting the source from JPEG to PNG - if necessary
convert my_src_image.jpg my_src_image.png
# Option A
# - Requires a temporary intermediate file
# - Drill more than 10 might result in poor results
require 'sinatra'
require 'mongoid'
require 'json'
require "sinatra/reloader" if development?
Mongoid.load!("mongoid.yml")
class Price
include Mongoid::Document
require 'bundler/capistrano'
set :application, "net"
set :repository, "git@githost.com:net.git"
set :scm, :git
set :default_environment, {
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
}
# change foo to your library name
# change Foo::Database to your Sequel database
namespace :bundler do
task :setup do
require 'rubygems'
require 'bundler/setup'
end
end
require "open-uri"
require "rubygems"
require "json"
USERNAME = "viking"
query = ARGV.first.downcase
gists = JSON.parse(open("https://api.github.com/users/#{USERNAME}/gists").read)
require 'sequel'
LETTERS = {
'a' => 0,
'b' => 2,
'c' => 2,
'd' => 1,
'e' => 0,
'f' => 2,
'g' => 2,
PATH="/usr/bin:/usr/openwin/bin:/usr/ucb:/usr/sfw/bin:/usr/sfw/bin:/usr/ccs/bin"
CC="cc -xc99"
CPPFLAGS="-I/opt/csw/include -I/usr/local/include"
CFLAGS="-O -xlibmieee"
F77=f95
FFLAGS=-O
CXX="$CC -library=stlport4"
CXXFLAGS=-O
FC=f95
FCFLAGS=$FFLAGS
require 'forgery'
require 'csv'
require 'blundersaur'
require 'pp'
original = CSV.open("original.csv", "w")
fudged = CSV.open("fudged.csv", "w")
headers = %w{id first_name last_name dob age street_address city state zip ssn}
original << headers