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
# IE10 - Win8 | |
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}" |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
gem 'rack', '=0.9.1' | |
gem 'thin', '=1.0.0' | |
require 'sinatra' | |
get '/' do | |
content_type 'text/plain' | |
"Hello, world" | |
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
<VirtualHost *:443> | |
ServerName server.name.com.br | |
DocumentRoot /var/local/apps/app_nme/public | |
SSLEngine on | |
SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire | |
SSLCertificateFile /opt/ssl/ssl.crt | |
SSLCertificateKeyFile /opt/ssl/ssl.key | |
</VirtualHost> |
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
user@ubuntu:~$ sudo apt-get install git-core curl | |
user@ubuntu:~$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
Cloning into rvm... | |
remote: Counting objects: 5375, done. | |
remote: Compressing objects: 100% (2544/2544), done. | |
remote: Total 5375 (delta 3492), reused 3850 (delta 2113) | |
Receiving objects: 100% (5375/5375), 1.84 MiB | 1.21 MiB/s, done. | |
Resolving deltas: 100% (3492/3492), done. |
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 "http://rubygems.org" | |
gem "webmachine" | |
gem "actionpack" | |
gem "thin" | |
gem "datamapper" | |
gem "dm-migrations" | |
gem "dm-sqlite-adapter" | |
gem "debugger" |
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
#!/bin/bash | |
APP_DIR=/var/local/apps/app | |
RAILS_ENV=production | |
function step | |
{ | |
if [ "$step_count" = "" ]; then | |
step_count=0 | |
fi |
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
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz | |
tar xzvf yaml-0.1.4.tar.gz | |
cd yaml-0.1.4 | |
./configure --prefix=/usr/local && make | |
sudo make install | |
# Add /usr/local/lib in /etc/ld.so.conf.d/usrlocal.conf | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p286.tar.gz | |
tar xzvf ruby-1.9.3-p286.tar.gz |
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
%w[sinatra dm-core dm-migrations slim sass].each{ |lib| require lib } | |
DataMapper.setup(:default, ENV['DATABASE_URL'] || File.join("sqlite3://",settings.root, "development.db")) | |
class Robot | |
include DataMapper::Resource | |
property :id, Serial | |
property :top, Integer, :default => proc { 1+rand(6) } | |
property :middle, Integer, :default => proc { 1+rand(4) } | |
property :bottom, Integer, :default => proc { 1+rand(5) } |
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
module UiHelper | |
def lorem(paras) | |
paras = around(paras) if paras.is_a?(Range) | |
Faker::Lorem.paragraphs(paras).map{|p| "<p>#{p}</p>"}.join.html_safe | |
end | |
def lorem_words(num) | |
num = around(num) if num.is_a?(Range) | |
Faker::Lorem.words(num).join(' ').html_safe |
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
Vagrant::Config.run do |config| | |
config.vm.box = "hellobits" | |
config.vm.network :hostonly, "192.168.33.2" | |
config.vm.share_folder "v-root", "/Users/fnando/Projects", ".", :nfs => true | |
config.vm.customize [ | |
"setextradata", :id, | |
"VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1" | |
] |
OlderNewer