Skip to content

Instantly share code, notes, and snippets.

View adamanthil's full-sized avatar
I may be slow to respond.

Andrew Bender adamanthil

I may be slow to respond.
View GitHub Profile
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
@adamanthil
adamanthil / read_api.js
Created September 10, 2013 23:08
read http response on localhost:3000
var http = require('http');
var options = {
hostname: 'localhost',
port: '3000',
path: '/'
};
callback = function(response) {
var str = '';
@adamanthil
adamanthil / apache2.conf
Created March 17, 2011 06:35
Apache configuration file
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure