Sunday, March 15, 2015

upgrade npm on ubuntu:
sudo npm update npm -g

http://stackoverflow.com/questions/10927490/how-can-install-a-new-version-of-npm-1-1-24

Thursday, January 29, 2015

command line tool to format json

Was looking for a way to format json in emacs and found
http://irreal.org/blog/?p=354

 python -m json.tool

Sunday, January 18, 2015

find out what process is listening to a port
netstat -tulpn

Thursday, January 15, 2015

revert head to previous commit safely

git revert --no-commit previousCommitId..HEAD
git commit
See http://stackoverflow.com/questions/4114095/revert-to-a-previous-git-commit

Thursday, August 29, 2013

starting nrepl in emacs

M-x nrepl-jack-in

Sunday, July 1, 2012

how to create git repository from existing source code

1. Setup an empty repository. If you already have a repository skip to step 2 % git --init bare 2. Add git to your source code directory % cd myProject % git init % git add . #adds everything % git "initial commit" commit 3. add remote repository created in step 1 % git remote rm origin % git remote add origin can be ssh://gitUser@remoteHost/path/to/repository 4. git push origin master

Monday, November 28, 2011

android application launcher

Got bored with HTC sense and found GO Launcher EX for android.

It is one of the most beautiful launchers for android I've ever seen. The default interface makes Android UI to an iPhone. If you're not happy with the default, you can easily customize it. There are 17 different desktop transition effect that you can choose from for example.

Check it out at
https://market.android.com/details?id=com.gau.go.launcherex&hl=en