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
apachectl -V | grep SERVER_CONFIG_FILE |
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
gem update `gem list | cut -d ' ' -f 1` |
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
1) | |
/Users/kneipp/.rvm/bin/rvm-auto-ruby | |
2) # ~/.rvm/bin/textmate_ruby | |
#!/usr/bin/env sh | |
source ~/.rvm/scripts/rvm | |
cd . | |
exec ruby "$@" |
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
# encoding: UTF-8 | |
ActiveAdmin.register Task do | |
scope :all, :default => true | |
scope :desta_semana do |tasks| | |
tasks.where('final_date >= ? and final_date < ?', -1.day.from_now, 1.week.from_now) | |
end | |
scope :atrasadas do |tasks| | |
tasks.where('final_date < ? and is_done = ?', -1.day.from_now, false) | |
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
sudo easy_install pip | |
sudo pip install virtualenv | |
mkdir -p ~/workspace | |
cd ~/workspace/ | |
virtualenv django --no-site-packages |
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
ps -u kneipp -o rss,command | grep -v peruser | awk '{sum+=$1} END {print sum/1024}' |
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
offset = rand(Banner.published.count) | |
@banner = Banner.published.first(:offset => offset) |
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
<form method="post" action="https://pagseguro.uol.com.br/v2/checkout/cart.html?action=add" target="pagseguro"> | |
<input type="hidden" value="[email protected]" name="receiverEmail"> | |
<input type="hidden" value="BRL" name="currency"> | |
<input type="hidden" value="1" name="itemQuantity"> | |
<input type="hidden" value="123" name="itemId"> <!-- ID --> | |
<input type="hidden" value="Produto XPTO" name="itemDescription"> <!-- NOME --> | |
<input type="hidden" value="400.00" name="itemAmount"> <!-- PRECO Ex: 29.99 --> |
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
rake db:xxx RAILS_ENV=production | |
RAILS_ENV=production bundle exec rake assets:precompile |
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
ADOBE | |
127.0.0.1 hl2rcv.adobe.com | |
127.0.0.1 t3dns.adobe.com | |
127.0.0.1 3dns-1.adobe.com | |
127.0.0.1 3dns-2.adobe.com | |
127.0.0.1 3dns-3.adobe.com | |
127.0.0.1 3dns-4.adobe.com | |
127.0.0.1 activate.adobe.com | |
127.0.0.1 activate-sea.adobe.com | |
127.0.0.1 activate-sjc0.adobe.com |