Skip to content

Instantly share code, notes, and snippets.

@didip
didip / supervisord-example.conf
Created January 30, 2011 05:10
Example configuration file for supervisord.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon
@clintongormley
clintongormley / gist:1088986
Created July 18, 2011 09:19
Create index for partial matching of names in ElasticSearch
# First, create the synonyms file /opt/elasticsearch/name_synonyms.txt
# with the contents:
#
# rob,bob => robert
#
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{
@clintongormley
clintongormley / gist:1089180
Created July 18, 2011 10:58
Example name query
curl -XGET 'http://127.0.0.1:9200/test/member/_search?pretty=1' -d '
{
"query" : {
"bool" : {
"should" : [
{
"text" : {
"first_name" : {
"boost" : 1,
"query" : "rob smith"
@wickman
wickman / README.md
Created April 12, 2012 22:55
Python development in Pants (tutorial)

Python development using Pants

brian wickman - @wickman

[TOC]

Why use Pants for Python development?

Pants makes the manipulation and distribution of hermetically sealed Python environments

@tmusabbir
tmusabbir / a:Install Kafka in CentOS
Last active July 8, 2016 06:21
Install Kafka in CentOS
Install Kafka in CentOS