Skip to content

Instantly share code, notes, and snippets.

View sideshow's full-sized avatar

Adam Jones sideshow

  • Wellington, New Zealand
View GitHub Profile
@sideshow
sideshow / redis.conf
Created November 14, 2012 21:07
Redis 2.6 redis.conf
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
@sideshow
sideshow / redis-server
Created November 14, 2012 20:56
Redis 2.6 init script Ubuntu
#! /bin/sh
### BEGIN INIT INFO
# Provides: redis-server
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: redis-server - Persistent key-value db
@sideshow
sideshow / redis
Created September 1, 2011 23:02
redis init.d script
#!/bin/sh
#
# redis this script starts and stops the redis daemon
#
# chkconfig: - 85 15
REDISPORT=6379
EXEC=/usr/local/bin/redis-server
PIDFILE=/var/run/redis.pid
@sideshow
sideshow / nginx
Created September 1, 2011 05:48
nginx init.d script
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 86 14
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
@sideshow
sideshow / mongod
Created August 31, 2011 02:05
mongod - Startup script for mongod
#!/bin/bash
# mongod - Startup script for mongod
# chkconfig: 35 85 15
# description: Mongo is a scalable, document-oriented database.
# processname: mongod
# config: /etc/mongod.conf
# pidfile: /var/run/mongo/mongo.pid
@sideshow
sideshow / mountEBSvol.sh
Created August 14, 2011 02:44
Mount EBS Volume (see: http://bit.ly/EsrqQ)
#!/bin/sh
#
# /etc/init.d/mountebsvol
#
# chkconfig: 234 20 50
# description: Assigns an EC2 EBS Volume to a device and mounts the device
#
# To add this as a service run:
# /sbin/chkconfig --add mountec2vol
#