Saturday, December 29, 2012

JSON & XML pipes


alias json="python -mjson.tool"
alias xml="xmllint --format -"

Wednesday, September 12, 2012

Wednesday, August 1, 2012

http://rootzwiki.com/topic/23008-howto-install-java-7-on-ubuntu-1204/
+  /var/lib/dpkg/info/oracle-java7-installer.postinst needs to be updated right before run

https://help.ubuntu.com/community/Java for java6, manual 2nd approach

Thursday, July 26, 2012

helped to bootstrap simple spring+restEasy sandbox
http://java.dzone.com/articles/resteasy-spring

command line curl v PHP HTTP_RAW_POST_DATA

Failed to make a curl POST to a PHP parsing $GLOBALS['HTTP_RAW_POST_DATA']. Used node.js + shred instead.

curl goodies: --trace-ascii - 

Sunday, April 22, 2012

Weekendarium

Discovery: http://akka.io/ . Looks like node.js for java. Lots of positive feedback. Might be useful for façade services.

Looked for a simple and easy way to get "real-time" (x mins) graphs for monitoring.
* Amon http://amon.cx/ . Worked fine, but too simplistic. Doesn't seem to track custom metrics, only logs and exceptions. Uses mongo db, python, jango.
* FnordMetric. Looked almost ideal, but doesn't seem to support cumulative increases :( Also feels a bit too tailored to a particular use case.
* Graphite. Didn't fully work when followed installation guide, as mentioned in the guide :) Don't like it. Python with too much custom development. Documentation is far from perfect, but exists http://graphite.wikidot.com/documentation
** https://github.com/etsy/statsd "A network daemon for aggregating statistics (counters and timers), rolling them up, then sending them to graphite." Stole code snippet of sending data to graphite via it.
* Graylog 2 seemed a bit overly complex.

Played a lot with vagrant + chef for the installation purposes.
* Very cool as doesn't impact the master system while experimenting.
* hint: set LC_CTYPE=en_GB.UTF-8 in mac os, otherwise bash becomes unusable guest linux.
* TODO: need to pre-install curl & vim somehow.
* http://files.meetup.com/1397868/Vagrant_Chef_MongoDB.pdf a bit more advanced than my current level.

Friday, April 13, 2012

tracking open files

goodies from techop folks: "strace -f -p `ps aux|grep tomcat|grep -v grep|awk '{print $2}'` 2>&1|grep -i my_bloody_property"