Alex Takitani alextakitani

View alias.txt
1 2 3 4 5 6 7 8 9 10
alias dm='rake db:migrate'
alias dmt='rake db:migrate && rake db:test:prepare'
alias dmp='RAILS_ENV=production rake db:migrate'
alias rc='rails c'
alias rg='rails g'
alias rcp='RAILS_ENV=production rails c'
alias rs='rails s'
alias rsp='RAILS_ENV=production rails s'
alias zdm='zeus rake db:migrate'
alias zdmt='zeus rake db:migrate && zeus rake db:test:prepare'
View up_postgres.sh
1 2 3 4 5 6 7 8 9 10
sudo echo "deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main" >> /etc/apt/sources.list.d/pgdg.list
 
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
 
 
sudo apt-get install postgresql-9.3 postgresql-contrib-9.3 libpq-dev postgresql-9.3-postgis-2.1
 
cd /tmp
View gist:6413691
1 2 3 4 5 6 7 8 9 10
Editar
 
sudo gedit /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache
sudo gedit /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/gtk.immodules
 
Adicionar :en na linha "cedilla"
 
sudo gedit /usr/share/X11/locale/en_US.UTF-8/Compose
 
substituir "ć" por "ç" e "Ć" por "Ç".
View gist:4962663
1 2 3 4 5 6 7 8 9
drivers.js.coffee:
$("#cnhTypeModal").on "submit", ->
$("#cnhTypeModal").modal "hide"
 
 
cnh_types_controller.rb
def get_cnh_types
cnh_types = CnhType.all
@options = ""
View post_install.sh
1 2 3 4 5 6 7 8 9 10
#sudo apt-get -y install curl git-core python-software-properties software-properties-common
#sudo add-apt-repository ppa:pitti/postgresql
#sudo apt-get update
#sudo apt-get install postgresql-9.3 postgresql-contrib-9.3 libpq-dev
 
sudo bash -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ saucy-pgdg main' >> /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y postgresql-9.3 postgresql-contrib-9.3 libpq-dev pgadmin3
View gist:3237240
1 2 3 4 5 6 7 8 9
Vendo combo 775:
 
Processador Core2 Duo E8400
 
http://ark.intel.com/products/33910/Intel-Core2-Duo-Processor-E8400-(6M-Cache-3_00-GHz-1333-MHz-FSB)
 
MB Asus P5Q
 
http://br.asus.com/Motherboards/Intel_Socket_775/P5Q/
View schedul.rb
1 2 3 4 5 6 7 8 9
inicio = Time.local(2012,04,19,8,00)
termino = Time.local(2012,4,19,18,00)
excecao = Time.local(2012,4,19,12,00)
 
schedule = IceCube::Schedule.new(inicio, :end_time => termino)
 
schedule.add_recurrence_rule( IceCube::Rule.hourly(1).day(:monday,:tuesday) )
 
schedule.add_exception_time(excecao)
View gist:925255
1 2 3 4 5 6 7 8 9
class Calendar < ActiveRecord::Base
has_many :events
end
 
class Event < ActiveRecord::Base
belongs_to :calendar
 
def after_find
singleton = class << self; self; end
Something went wrong with that request. Please try again.