Skip to content

Instantly share code, notes, and snippets.

[run groovy script by java command]
java -cp lib/groovy-all-1.8.0.jar groovy.ui.GroovyMain test.groovy
nohup java -Duser.timezone=Asia/Seoul -cp lib/*: groovy.ui.GroovyMain script/findBadGps.groovy >> system.log 2>> error.log &
[String Interpolation]
value = 6
println "The value is $value."
docker run -t -i ubuntu:14.04 /bin/bash
docker inspect -f '{{.State.Pid}}' a8658e32e8fd
docker pull training/sinatra
docker run -t -i training/sinatra /bin/bash
gem install json
docker commit -m="Added json gem" -a="Kate Smith" 0b2616b0e5a8 ouruser/sinatra:v2
docker history iamteri/sinatra:v2
@curtkim
curtkim / gist:528efe1f1f7bf81ec525
Created November 9, 2014 02:05
network namespace
from http://ko.sdndev.net/2
----------------------------
ip netns add netns1
ip netns exec netns1 ip link list
ip netns exec netns1 ping 127.0.0.1
ip netns exec netns1 ip link set dev lo up
ip link add veth0 type veth peer name veth1