Skip to content

Instantly share code, notes, and snippets.

View haiyun-document's full-sized avatar

dongzhu.yin haiyun-document

View GitHub Profile
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb
sudo dpkg -i elasticsearch-0.90.0.deb

This will be a copy/paste doc for installing redis, elasticsearch and logstash on ubuntu 12.04

Pre-Requisites

apt-get update
apt-get upgrade
apt-get install tcl8.5 tcl8.5-dev build-essential rubygems git \
htop python-dev openjdk-7-jre-headless libcurl4-openssl-dev \
bison ctags flex gperf libevent-dev libpcre3-dev libssl-dev libreadline6-dev \
libtokyocabinet-dev libncursesw5-dev libxml2-dev libxslt1-dev libsqlite3-dev \
;;; color-theme.el --- install color themes
;; Copyright (C) 1999, 2000 Jonadab the Unsightly One <jonadab@bright.net>
;; Copyright (C) 2000, 2001, 2002, 2003 Alex Schroeder <alex@gnu.org>
;; Copyright (C) 2003, 2004 Xavier Maillard <zedek@gnu-rox.org>
;; Version: 6.5.5
;; Keywords: faces
;; Author: Jonadab the Unsightly One <jonadab@bright.net>
;; Maintainer: Xavier Maillard <zedek@gnu-rox.org>
;; Lightweight clojure setup for Emacs
;; requires emacs24 and leiningen
;; Add Marmalade package archive for Emacs starter kit and other Emacs packages
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") )
(package-initialize)
@haiyun-document
haiyun-document / clojure-init.el
Created September 5, 2012 08:24 — forked from practicalli-johnny/clojure-init.el
Autoloading Clojure configuration for Emacs 24 - Basic
;; @jr0cket - communiy developer > http://blog.jr0cket.co.uk/
;; Lightweight clojure setup for Emacs
;; requires emacs24 and leiningen
;; Add Marmalade package archive for Emacs starter kit and other Emacs packages
(require 'package)
(add-to-list 'package-archives
@haiyun-document
haiyun-document / APPNAME
Created July 25, 2012 03:37 — forked from shimondoodkin/APPNAME
init.d script for node.js for debian
#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
Originally:
https://gist.github.com/7565976a89d5da1511ce
Hi Donald (and Martin),
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I
appreciate the tone. This is a Yegge-long response, but given that you and
Martin are the two people best-situated to do anything about this, I'd rather
err on the side of giving you too much to think about. I realize I'm being very
critical of something in which you've invested a great deal (both financially
@haiyun-document
haiyun-document / gist:2364000
Created April 12, 2012 01:06 — forked from flores/gist:1623381
sample haproxy.cfg
global
log 127.0.0.1 local0 notice
maxconn 50000
daemon
stats socket /tmp/proxystats level admin
defaults
log global
mode http
option httplog
option dontlognull
@haiyun-document
haiyun-document / haproxy.cfg
Created April 12, 2012 01:05 — forked from krams915/haproxy.cfg
haproxy.cfg - Notes
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#Adds a global syslog server. Up to two global servers can be defined. They
#will receive logs for startups and exits, as well as all logs from proxies
#configured with "log global". An optional level can be specified to filter
#outgoing messages. By default, all messages are sent.
#An IPv4 address optionally followed by a colon and a UDP port. If
#no port is specified, 514 is used by default (the standard syslog port).