This file contains hidden or 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
host www.host.com | |
HostName www.host.com | |
User root | |
ProxyCommand ~/scripts/http-proxy-tunnel-1.1/http-proxy-tunnel.py "http://www.host.com" "localhost:22" | |
Use this when you can't get access to normal ssh port | |
In Apache, make sure mod_proxy is on | |
ProxyRequests on | |
AllowCONNECT 22 |
This file contains hidden or 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
#!/bin/bash | |
for fl in *.html; do | |
mv $fl $fl.oldman | |
sed -E 's/[0-9][0-9]_details_files/images/g' $fl.oldman > $fl | |
rm -f $fl.oldman | |
done |
This file contains hidden or 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
C:\> gem install rails mongrel |
This file contains hidden or 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
C:\> gem install mysql |
This file contains hidden or 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
nobody:~ arzumy$ ruby -v | |
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9] | |
nobody:~ arzumy$ gem -v | |
1.3.4 | |
# Jika gem kamu versi lain, kamu boleh update dengan command ini | |
nobody:~ arzumy$ sudo gem update --system |
This file contains hidden or 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
# Install MySQL server dan client | |
nobody:~ arzumy$ sudo port install mysql5 mysql5-server | |
# Untuk pastikan MySQL dilancarkan selepas reboot | |
nobody:~ arzumy$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist | |
# Untuk initialize MySQL database | |
nobody:~ arzumy$ sudo mysql_install_db5 --user=mysql | |
# Kemudian install gem untuk MySQL |
This file contains hidden or 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
nobody:~ arzumy$ sudo gem list --local | grep rails | |
rails (2.3.2, 2.2.2, 2.1.1, 1.2.5) | |
# Jika versi kamu agak ketinggalan zaman, taip command ini untuk update | |
nobody:~ arzumy$ sudo gem update | |
# Jika tiada rails ditemui, taip command ini | |
nobody:~ arzumy$ sudo gem install rails mongrel |
This file contains hidden or 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
# Install applikasi penting untuk compile source code | |
arzumy@ubuntu:~$ sudo apt-get install build-essential | |
# Kemudian install MySQL database dengan sokogan untuk Ruby | |
arzumy@ubuntu:~$ sudo apt-get install mysql-server mysql-client libmysqlclient15-dev libmysql-ruby | |
# Kemudian, install Ruby | |
arzumy@ubuntu:~$ sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby -y | |
# Dan buat simbolik link untuk applikasi Ruby |
This file contains hidden or 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
# Jalankan dari directory di mana kamu download file ruby gem | |
arzumy@ubuntu:~$ tar xzvf rubygems-X.X.X.tgz | |
arzumy@ubuntu:~$ cd rubygems-X.X.X | |
# Arahan untuk install | |
arzumy@ubuntu:~$ sudo ruby setup.rb | |
# Dan buat simbolik link | |
arzumy@ubuntu:~$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem |
This file contains hidden or 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
arzumy@ubuntu:~$ sudo gem install rails |
OlderNewer