Skip to content

Instantly share code, notes, and snippets.

@leitu
leitu / geminabox.conf
Created February 3, 2015 08:22
Nginx proxy
upstream geminabox{
server 10.18.2.179:8080;
}
server {
listen 8081;
server_name _;
root /repo/gems;
# CentOS 6 Server kickstart for XenServer
# branch: master
##########################################
# Install, not upgrade
install
# Install from a friendly mirror and add updates
#repo --name=base --baseurl=http://10.18.2.179/CentOS/6.5/os-min
#repo --name=updates --baseurl=http://10.18.2.179/CentOS/updates/x86_64
@leitu
leitu / Gitd
Last active August 29, 2015 14:14
#!/bin/sh
#
# Startup/shutdown script for Git Daemon
# chkconfig: 345 56 10
#
# description: Startup/shutdown script for Git Daemon
#
. /etc/init.d/functions
DAEMON=/usr/libexec/git-core/git-daemon
# CentOS 7.0 kickstart for XenServer (PVHVM MBR)
# branch: develop
##########################################
# Install, not upgrade
install
cdrom
# Install from a friendly mirror and add updates
#url --url http://mirror.rackspace.com/CentOS/7.0.1406/os/x86_64/
@leitu
leitu / gist:ae30a4c1a1f342df1274
Last active August 29, 2015 14:12
logstash-forwarder
#! /bin/sh
# From The Logstash Book
# The original of this file can be found at: http://logstashbook.com/code/index.html
#
# logstash-forwarder Start/Stop logstash-forwarder
#
# chkconfig: 345 99 99
# description: logstash-forwarder
# processname: logstash-forwarder