Skip to content

Instantly share code, notes, and snippets.

View nellaivijay's full-sized avatar
🎯
Focusing

Vijayakumar Ramdoss nellaivijay

🎯
Focusing
View GitHub Profile
@williamchang73
williamchang73 / gist:5895519
Last active December 19, 2015 04:09
mongo replica set setting
Replica set :
P1 : ( Primary )
S1 : ( Sec 1 )
A2 : ( Arbiter )
1. start mongo with replica in all instance
stop iptables
@dmulligan
dmulligan / git-svn-mvn-eclipse.sh
Created June 27, 2013 13:18
Shell script to checkout an SVN repo using Git, build using Maven and import into Eclipse
################################################################################
#!/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
@neomatrix369
neomatrix369 / PerformanceRelated.md
Last active November 3, 2023 20:27
Interesting links in the areas of HPC, low latency, mechanical harmony/sympathy, garbage collection
@inparallel
inparallel / httpServer.cpp
Last active October 1, 2018 15:38
Simple HTTP server in GO, Libevent and Node.js
#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)
@mrflip
mrflip / 20130416-todo.md
Last active April 22, 2025 14:33
Elasticsearch Tuning Plan

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
@laserson
laserson / gist:4477947
Created January 7, 2013 20:06
Output from `pip install pydoop`
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()
@repeatedly
repeatedly / inside_impala_coordinator.md
Created November 26, 2012 10:13
Inside Impala Coordinator
@cdesante
cdesante / ggd5g2.r
Created November 1, 2012 17:11
Brewer Pallettes
#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)
@mammadori
mammadori / source.py
Created October 15, 2012 09:17
Python: "source" a shell script and read variables
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