gem install vagrant
vagrant box add precise64 http://dl.dropbox.com/u/1537815/precise64.box
vagrant up && vagrant ssh
sudo apt-get -y update && sudo apt-get -y install curl git-core python-software-properties
Custom Apt-Get repo
# simple ruby code example for running python script | |
path_to_script = File.dirname(__FILE__) | |
puts "It's a ruby script" | |
puts "Run python script with backticks" | |
puts "Result is available in caller.ru" | |
puts `python #{path_to_script}/processing.py UserName 37` |
require 'open3' | |
class PythonRegex | |
extend Open3 | |
def self.calculate_intersection(first_regex, second_regex) | |
popen3('python', 'lib/services/greenery/main.py', first_regex, second_regex) do |stdin, stdout, stderr| | |
if block_given? | |
stdout.read.split("\n").select { |line| line.start_with? yield } | |
else | |
stdout.read.split("\n").each { |line| p line } | |
end |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[color "status"] | |
changed = yellow | |
added = green | |
untracked = red |
%table#id_tabla | |
%thead | |
%th Columna 1 | |
%th Columna 2 | |
%tbody | |
%tr | |
%td | |
%label Hola | |
%td | |
%label World |
Option Infer On | |
Option Compare Text | |
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics |
# Executables | |
function subl { &"${Env:ProgramFiles}\Sublime Text 2\sublime_text.exe" $args } | |
function visual { &"${Env:ProgramFiles}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" $args } | |
#Directories | |
function open-table { Set-Location 'C:\Users\Hector\Documents\Visual Studio 2012\Projects\OpenTable' } | |
#Files | |
function hosts { subl C:\Windows\System32\drivers\etc\hosts } |
function remove_bin_obj_force { | |
Get-ChildItem .\ -include bin,obj -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } | |
} |
# Executables | |
function subl { &"C:\Program Files\Sublime Text 2\sublime_text.exe" $args } | |
function visual { &"${Env:ProgramFiles}\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" $args } | |
#Directories | |
function development { | |
Set-Location 'C:\development' | |
} | |
#Files |
sudo apt-get install yaws | |
erlang-dev and erlang-parsetools. |