Skip to content

Instantly share code, notes, and snippets.

View willolbrys's full-sized avatar

Will Olbrys willolbrys

View GitHub Profile
#!/bin/sh
# btsync service
# Replace with linux users you want to run BTSync clients for
BTSYNC_USERS="mendel"
DAEMON=/usr/bin/btsync
start() {
for btsuser in $BTSYNC_USERS; do
HOMEDIR=`getent passwd $btsuser | cut -d: -f6`
config=$HOMEDIR/.sync/config.json
@willolbrys
willolbrys / ApacheLogster.py
Created June 26, 2012 17:08
ApacheLogster Log Parser
### A modified sample logster parser file that can be used to count the number
### of response codes found in an Apache access log.
###
### For example:
### sudo ./logster --dry-run --output=ganglia ApacheLogster /var/log/httpd/access_log
###
###
### Copyright 2011, Etsy, Inc.
###
### This file is part of Logster.