Skip to content

Instantly share code, notes, and snippets.

View morgoth's full-sized avatar

Wojciech Wnętrzak morgoth

View GitHub Profile
@morgoth
morgoth / gist:1468756
Last active September 28, 2015 16:58
Pulseaudio sound server configuration
# Configuring sound server
# Tested on Ubuntu 11.10
sudo apt-get install pulseaudio-module-zeroconf
# Change /etc/default/pulseaudio file on server to contain:
PULSEAUDIO_SYSTEM_START=1
DISALLOW_MODULE_LOADING=1
@szimek
szimek / basecamp-daily-report.user.js
Created December 7, 2011 14:22
Adds a button on time entries page to create a daily report for a user.
// ==UserScript==
// @match https://objectreload.basecamphq.com/projects/*
// ==/UserScript==
var container = document.getElementById('report_link_block'),
link = document.createElement('a'),
content = document.createTextNode('Create a daily report'),
date = new Date(),
user,
path;
@peterhost
peterhost / node_debian_init.sh
Created November 25, 2010 11:41
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28