Thursday, July 19, 2012
s3cmd stupidity
Lots of stupidities in s3cmd, like the following:
If you miss the trailing slash in the directory names, s3cmd will ignore --skip-existing and will also not compare files using MD5 :( Here's the command that works:
$ s3cmd sync -v --delete-removed --skip-existing --rexclude=.* --rinclude .*localhost_access_log.2012-0[6-9].* s3://brp-logs/selfserve/ logs/
Reference: Solution 38 by William Denniss
If you miss the trailing slash in the directory names, s3cmd will ignore --skip-existing and will also not compare files using MD5 :( Here's the command that works:
$ s3cmd sync -v --delete-removed --skip-existing --rexclude=.* --rinclude .*localhost_access_log.2012-0[6-9].* s3://brp-logs/selfserve/ logs/
Reference: Solution 38 by William Denniss
Sunday, June 3, 2012
Sunday, May 27, 2012
Haproxy clear counters all
Nice article: http://www.mgoff.in/2010/07/14/haproxy-gathering-stats-using-socat/
http://code.google.com/p/haproxy-docs/wiki/UnixSocketCommands
haproxy.cfg:
stats socket /var/haproxy level admin
$ echo "clear counters all" | socat unix-connect:/var/haproxy stdio
http://code.google.com/p/haproxy-docs/wiki/UnixSocketCommands
haproxy.cfg:
stats socket /var/haproxy level admin
$ echo "clear counters all" | socat unix-connect:/var/haproxy stdio
Wednesday, May 23, 2012
Tuesday, April 10, 2012
Friday, April 6, 2012
Jdk source code
Here's the jdk source, linked from OpenJDK page
I wish they had made a source jar for it.
NOTE: Do not trust mac to extract this .tar.gz correctly. It extracts it as a .cpgz file which then recursively produces another .tar.gz -_-
Use tar -xvzf
I wish they had made a source jar for it.
NOTE: Do not trust mac to extract this .tar.gz correctly. It extracts it as a .cpgz file which then recursively produces another .tar.gz -_-
Use tar -xvzf
Monday, April 2, 2012
Javax servlet source code
Have been searching it for quite a while now, finally found decent jars:
http://grepcode.com/snapshot/repo1.maven.org/maven2/javax.servlet/servlet-api/2.5
http://repository.ops4j.org/maven2/javax/servlet/source/
there is also a pom.xml that can be used :)
http://grepcode.com/snapshot/repo1.maven.org/maven2/javax.servlet/servlet-api/2.5
http://repository.ops4j.org/maven2/javax/servlet/source/
there is also a pom.xml that can be used :)
Friday, March 30, 2012
Rinetd
Because i always forget -_- :
http://www.ubuntugeek.com/rinetd-redirects-tcp-connections-from-one-ip-address-and-port-to-another.html
Also, add the correct repository in Ubuntu:
https://help.ubuntu.com/community/Repositories/CommandLine
http://www.ubuntugeek.com/rinetd-redirects-tcp-connections-from-one-ip-address-and-port-to-another.html
Also, add the correct repository in Ubuntu:
https://help.ubuntu.com/community/Repositories/CommandLine
Friday, March 16, 2012
IntelliJ and tomcat
Tomcat is nice, works well with IntelliJ
http://blog.andrewbeacock.com/2007/08/getting-tomcat-contexts-to-work-in.html
http://blog.andrewbeacock.com/2007/08/getting-tomcat-contexts-to-work-in.html
Sunday, March 4, 2012
Trying out Googlebot's behavior with AJAX
Lets see if Googlebot crawls the dynamic content on this page on googlebot and Ajax.
Thursday, January 19, 2012
Interesting applications of webkit
I just figured out a reflow reducing technique. Needs a headless browser which gives access to DOM and render tree though, so i thought i'd try something that is open sourced:
And look what i ran into :)
http://code.google.com/p/phantomjs/wiki/Interface
Seems pretty neat, i'm going to try this over the weekend.
Edit: CasperJs seems to be a wrapper on top of PhantomJs :)
http://n1k0.github.com/casperjs/
And look what i ran into :)
http://code.google.com/p/phantomjs/wiki/Interface
Seems pretty neat, i'm going to try this over the weekend.
Edit: CasperJs seems to be a wrapper on top of PhantomJs :)
http://n1k0.github.com/casperjs/
Subscribe to:
Posts (Atom)