Saturday, January 30, 2010

Play asx streams with mplayer


mplayer -playlist URL

# if steams gets choppy

mplayer -playlist URL -ao sdl

Wednesday, January 27, 2010

rake cucumber:tags in verbose mode


rake cucumber:ok CUCUMBER_OPTS="--verbose"

rake test:units with verbose output


rake test:units TESTOPTS="-v"

Tuesday, January 26, 2010

View git object tree in terminal


git log --graph --oneline --all

Thursday, January 21, 2010

SHOUTcast on Ubuntu


sudo apt-get install tunapie

Wednesday, January 20, 2010

Download file from Linux machine to Windows machine using SCP

- Download PSCP.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
- Open up Command Prompt
- Type the following

# Eg. if my pscp.exe is on my Windows desktop

"C:\Documents and Settings\Jason\Desktop\pscp.exe" jasonong@IP_ADDRESS_OF_LINUX_MACHINE:./PATH/TO/FILE "c:\Temp"

Monday, January 18, 2010

Count number of files in directory

find files | count lines


find . -type f | wc -l

Sunday, January 17, 2010

Reset Gnome keyring password


rm .gnome/keyrings/login.keyrings
rm .gnome/keyrings/default.keyrings

X Forwarding in Windows

XMing + Putty

- XMing & launch XLaunch
- Launch Putty, making sure that "SSH" > "Enable X11 forwarding" is checked and "MIT-Selected-Cookie-1" is selected.

Thursday, January 14, 2010

Connect linux and windows machine via hamachi vpn gotcha

Make sure window's firewall is off...

Monday, January 11, 2010

Default image viewer on ubuntu


# Eog is the default image viewer in Ubuntu

eog image.jpg

Thursday, January 7, 2010

Launch applications with X display in remote machine

DISPLAY:0 application executable

Eg.

DISPLAY:0 gnome-terminal
DISPLAY:0 rake selenium:rc:start