Skip to content

Instantly share code, notes, and snippets.

@baloi
baloi / howto.txt
Created July 1, 2011 20:34
Some howtos
* setup a git repository
=============================
> reset to "original head" - master before the merge
$ git reset --hard ORIG_HEAD
> rebase (go to new branch then merges "base" branch to the new branch)
$ git checkout new-branch
$ git rebase base-branch
# now new-branch is merged with base-branches and is a continuum
> checkout and create branch at the same time
@baloi
baloi / setJDK.sh
Created July 2, 2011 19:25
Set java version in Mac OS X
#!/bin/sh
cd /System/Library/Frameworks/JavaVM.framework/Versions
CURJDK="`readlink CurrentJDK`"
echo Current JDK version: $CURJDK
if [ "$1" == "" ]; then
echo Installed versions:
ls
@baloi
baloi / finance
Created October 31, 2011 23:41
finance news
http://money.cnn.com/2011/10/28/pf/college_tuition/index.htm?iid=SF_PF_River