http://www.infoq.com/presentations/JVM-Performance-Tuning-twitter (video & slides)
http://www.infoq.com/articles/9_Fallacies_Java_Performance (video & slides)
http://www.infoq.com/presentations/Visualizing-Java-GC (video & slides)
| Replica set : | |
| P1 : ( Primary ) | |
| S1 : ( Sec 1 ) | |
| A2 : ( Arbiter ) | |
| 1. start mongo with replica in all instance | |
| stop iptables |
| ################################################################################ | |
| #!/bin/sh | |
| # | |
| # Author: dave-at-mulligan.ie | |
| # Useful URLs: | |
| # https://gist.github.com/dmulligan/5876324 | |
| # http://maymay.net/blog/2009/02/24/how-to-use-git-svn-as-the-only-subversion-client-youll-need/ | |
| # http://maymay.net/blog/2008/03/26/howto-use-git-for-personal-development-when-everyone-else-is-using-subversion-part-1/ | |
| # http://viget.com/extend/effectively-using-git-with-subversion | |
| # http://www.jukie.net/~bart/blog/svn-branches-in-git |
| #include <sys/types.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <event.h> | |
| #include <evhttp.h> | |
| void generic_request_handler(struct evhttp_request *req, void *arg) |
disable_flush and disable_recovery (TD)| laserson@laserson-MBA ~ $ pip install pydoop | |
| Downloading/unpacking pydoop | |
| Downloading pydoop-0.7.0-rc1.tar.gz (891Kb): 891Kb downloaded | |
| Running setup.py egg_info for package pydoop | |
| Traceback (most recent call last): | |
| File "<string>", line 14, in <module> | |
| File "/Users/laserson/build/pydoop/setup.py", line 567, in <module> | |
| "Intended Audience :: Developers", | |
| File "/usr/local/Cellar/python/2.7.3/lib/python2.7/distutils/core.py", line 152, in setup | |
| dist.run_commands() |
http://hadoop-scr13th.eventbrite.com/
| #Load ggplot default data: Diamonds | |
| library(ggplot2) | |
| library(gridExtra) | |
| data(diamonds) | |
| head(diamonds) | |
| diamonds <- diamonds[diamonds$color < "J",] | |
| #http://127.0.0.1:25615/library/ggplot2/html/diamonds.html | |
| B1 <- ggplot(data = diamonds ) + geom_point(aes( x = carat, y = price, color=color) |
| from subprocess import Popen, PIPE | |
| from os import environ | |
| def source(script, update=True, clean=True): | |
| """ | |
| Source variables from a shell script | |
| import them in the environment (if update==True) | |
| and report only the script variables (if clean==True) | |
| """ |
| # This work is licensed under the GNU Public License (GPL). | |
| # To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html | |
| # For more information visit this blog post http://mpcabd.igeex.biz/python-celery-asynchronous-task-decorator/ | |
| # Written by Abd Allah Diab (mpcabd) | |
| # Email: mpcabd ^at^ gmail ^dot^ com | |
| # Website: http://mpcabd.igeex.biz | |
| from django.utils.decorators import available_attrs |