Thursday, October 31, 2013

public class J {

public static void main(String[] args) {

}

}


...
$ javac J
error: Class names, 'J', are only accepted if annotation processing is explicitly requested
1 error

Wednesday, October 9, 2013

sudo lsof -i TCP:8181 | grep LISTEN
java 1400 m...y 216u IPv6 0x...e5 0t0 TCP *:8181 (LISTEN)

Tuesday, October 8, 2013

grep -roh aaa . | wc -w
Grep recursively all files and directories in the current dir searching for aaa, and output only the matches, not the entire line. Then, just use wc to count how many words are there.
took from s.o. http://stackoverflow.com/a/6135712

Tuesday, July 16, 2013

/bin/mv: Argument list too long

find /path/to/file -type f | xargs -i mv "{}" /path/to/move find . -type f | xargs -i mv "{}" ./archive/

Sunday, May 27, 2012

From Blue Tree Hotel to Z Cafe

Basics

adicionar soja por favor
(aj ish in ar) (so sha)
ar
Add soy please


um café
(oom)

One coffee


Açúcares
(a soo car ees)

Sugar


para baixo
(bi sho)

Down


para cima
(seema)

Up


desculpe

Sorry/Excuse me

Friday, January 6, 2012

command to generate sha1 digest of file

openssl dgst -sha1 somefile.zip
awk only the digest:
openssl dgst -sha1 node-v0.8.11-linux-x64.tar.gz | awk -F'= ' '{print $2}'