# add repository ppa:git-core
$ sudo apt-add-repository ppa:git-core/ppa
$ sudo aptitude update
$ sudo aptitude install git-core
$ git --version
git version 1.8.3
This file contains 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 | |
# | |
# chkconfig: 345 99 01 | |
# description: Startup script for the jetty | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
start() { | |
if [ -z `/usr/bin/pgrep -f "java -jar start.jar"` ]; then |
This file contains 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
mvn archetype:generate \ | |
-DarchetypeGroupId=net.liftweb \ | |
-DarchetypeArtifactId=lift-archetype-basic_2.9.1 \ | |
-DarchetypeVersion=2.4-M5 \ | |
-DgroupId=com.rkaneko \ | |
-DartifactId=lift_test \ | |
-Dversion=1.0 |
This file contains 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
(:name scala-mode2 | |
:type github | |
:website "https::/github.com/hvesalai/scala-mode2" | |
:description "A new scala-mode for emacs24" | |
:pkgname "hvesalai/scala-mode2") |
This file contains 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
import org.codehaus.jackson.JsonNode; | |
import play.libs.WS; | |
import play.libs.F.Promise; | |
import play.libs.WS.WSRequestHolder; | |
/** | |
* Refer | |
* http://goo.gl/HXhJG | |
* Javadoc api/2.1.0/java/play/libs/WS.WSRequestHolder : http://goo.gl/AXmBY |
This file contains 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
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Set; | |
import play.Logger; | |
import play.mvc.Controller; | |
import play.mvc.Result; | |
import play.data.DynamicForm; | |
import static play.data.Form.form; |
This file contains 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
java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -jar `dirname $0`/sbt-launch.jar "$@" |
This file contains 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
<html> | |
<body> | |
<script> | |
function getLog() { | |
FB.getLoginStatus(function(response) { | |
console.dir(response); | |
}); | |
} | |
</script> | |
<a href="#" onClick="getLog(); return false;">log out</a> |
This file contains 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
# show installed list | |
$ dpkg -l | |
# install software | |
$ apt-get install here-is-target | |
# uninstall software | |
$ apt-get autoremove here-is-target | |
### Tips |
This file contains 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
$ cd ~/Downloads/ | |
# get scala-v.x.zip | |
$ wget http://www.scala-lang.org/downloads/distrib/files/scala-2.10.2.tgz | |
$ tar zxvf scala-2.10.2.tgz | |
$ sudo mkdir /usr/local/scala | |
$ sudo mv ./scala-2.10.1 /usr/local/scala/2.10.1 |
OlderNewer