Skip to content

Instantly share code, notes, and snippets.

T Zhu myster-t

Block or report user

Report or block myster-t

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@myster-t
myster-t / supervisor.conf
Created Sep 9, 2013
Supervisord Upstart script (Amazon Linux)
View supervisor.conf
description "supervisor"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 5 2
expect fork
@myster-t
myster-t / beanstalkd-ec2-user-data-script.sh
Last active Dec 22, 2015
AWS EC2 user data script to start beanstalkd instance (Amazon Linux instance type)
View beanstalkd-ec2-user-data-script.sh
#!/bin/bash -ex
set -e -x
# Log output
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# Update yum first
yum groupinstall "Development Tools" -y
yum update -y
@myster-t
myster-t / beanstalkd
Last active Dec 22, 2015
/etc/default/beanstalkd to set BEANSTALKD_OPTIONS for Upstart script
View beanstalkd
# Set some constants to be used to construct BEANSTALKD_OPTIONS
BEANSTALKD_ADDR=0.0.0.0
BEANSTALKD_PORT=11300
BEANSTALKD_USER=beanstalkd
BEANSTALKD_BINLOG_DIR=/var/lib/beanstalkd
BEANSTALKD_BINLOG_FSYNC_PERIOD=0
@myster-t
myster-t / beanstalkd.conf
Last active Dec 22, 2015
Beanstalkd Upstart script (Amazon Linux)
View beanstalkd.conf
description "simple, fast work queue"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
respawn limit 5 2
expect fork
You can’t perform that action at this time.