Install the OpenSSL on Debian based systems
sudo apt-get install openssl| # install wine 1.7 | |
| add-apt-repository ppa:ubuntu-wine/ppa | |
| sudo apt-get update | |
| sudo apt-get install wine1.7 | |
| # download steam | |
| curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe | |
| # install some tricks | |
| winetricks vcrun2010 | 
| // add all items to collection | |
| Alloy.Collections.Fugitive.reset([{ | |
| "name" : "Jeff Haynie" | |
| }, { | |
| "name" : "Nolan Wright" | |
| }, { | |
| "name" : "Don Thorp" | |
| }, { | |
| "name" : "Marshall Culpepper" | |
| }, { | 
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| # no config | |
| Time.now is localtime | |
| 1.second.from_now is UTC | |
| Timestamp stored in UTC | |
| AR not translated | |
| Time.now: Fri Aug 24 10:22:25 +0930 2012 | |
| 1.second.from_now 2012-08-24 00:52:26 UTC | 
| # app/controllers/users/password_controller.rb | |
| class Users::PasswordsController < Devise::PasswordsController | |
| def resource_params | |
| params.require(:user).permit(:email, :password, :password_confirmation) | |
| end | |
| private :resource_params | |
| end | 
| mkdir -p /data/kvm/images/ubuntu12/ | |
| qemu-img create -f qcow2 /data/kvm/images/ubuntu12/boot.img 10G | |
| virt-install --connect qemu:///system \ | |
| --arch=x86_64 \ | |
| --accelerate \ | |
| --name ubuntu12 \ | |
| --ram=1024 \ | |
| --vcpus=2 \ | |
| --hvm \ |