Lua 5.1 installed already
# yum install lua-devel
# wget http://luarocks.org/releases/luarocks-2.3.3.tar.gz
# tar -xzvf luarocks-2.2.1.tar.gz
# cd luarocks-2.2.1
# ./configure
# make bootstrap
def create_invoices | |
interval = 1.month | |
cicle = 12 #quantidade desejada | |
start_date = Date.today #data inicial | |
current_date = start_date | |
cicle.times do | |
# criar o que você precisa, alguns exemplos: | |
# invoices.create(date: current_date, outro_campo: "Algum outro valor") | |
# invoices << Invoice.create(date: current_date) |
#Sublime Text 3 Configs | |
##Plugins | |
- "Alignment" | |
- "Better JavaScript" | |
- "EditorConfig" | |
- "Emmet" | |
- "Gist" | |
- "JsFormat" | |
- "Sass" |
# !/bin/sh | |
SITE_DOMAIN="test.production.url"; | |
HOSTS_LINE="127.0.0.1 $SITE_DOMAIN"; | |
COMMENTED_HOSTS_LINE="# $HOSTS_LINE" | |
echo "Add $SITE_DOMAIN to your /etc/hosts"; | |
sudo -- sh -c "echo '$HOSTS_LINE' >> /etc/hosts"; | |
echo "Starting server"; |