This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
site "http://community.opscode.com/api/v1" | |
cookbook 'ruby_build', :git => "git://github.com/fnichol/chef-ruby_build" | |
cookbook 'rbenv', :git => "git://github.com/fnichol/chef-rbenv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Some settings that are necessary for the Chef Solo to work | |
// as expected. If you use the Ruby DSL rather than JSON you | |
// can omit a few of these. | |
"name": "rack_application", | |
"description": "A simple role for a Rack application.", | |
"chef_type": "role", | |
"json_class": "Chef::Role", | |
// All of the recipes that we want to load into the VM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
Vagrant.configure("2") do |config| | |
# Match the base box name with the definition that your exported. | |
config.vm.box = "ubuntu-12.04-i386" | |
# We'll want to access our site on localhost. | |
config.vm.network :forwarded_port, guest: 8080, host: 8080 | |
# Specific changes for the VB provider. Additional ones can be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.out | |
*.o | |
*dSYM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ gcc -I$HOME/.rvm/rubies/ruby-1.9.3-p374/include/ruby-1.9.1 \ | |
// > -L$HOME/.rvm/rubies/ruby-1.9.3-p374/lib -lruby-static \ | |
// > -DHAVE_STRUCT_TIMESPEC -std=c99 main.c | |
#include <ruby.h> | |
#include <stdio.h> | |
// Any errors are going to be stored in the global variable $!. So | |
// if we want to print this out we need to $!.to_s. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// g++ -O3 -I/opt/local/include -L/opt/local/lib -lboost_system flatten.cc | |
#include <iostream> | |
#include <algorithm> | |
#include <map> | |
#include <vector> | |
#include <string> | |
#include <boost/bind.hpp> | |
#include <boost/bind/placeholders.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2009 Victor Stanciu - http://www.victorstanciu.ro | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
desc "Reset and migrate the current database" | |
task :bounce => :environment do | |
Rake::Task['db:reset'].invoke | |
Rake::Task['db:migrate'].invoke | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://supermarket.chef.io' | |
extension 'halite' | |
cookbook 'poise', gem: 'poise' | |
cookbook 'poise-javascript', gem: 'poise-javascript' | |
cookbook 'poise-ruby', gem: 'poise-ruby' | |
cookbook 'poise-ruby-build', gem: 'poise-ruby-build' | |
cookbook 'poise-languages', gem: 'poise-languages' | |
metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkcd() | |
{ | |
mkdir -p "$*" | |
cd "$*" | |
} |