Skip to content

Instantly share code, notes, and snippets.

(function() {
// Notes from http://news.ycombinator.com/item?id=1952531
var notes = {
"suspended cymbal":"zk",
"snare":"bschk",
"brush":"pv",
"bass":"bk",
"flam1":"tk",
"roll tap":"vk",
"flam2":"kt",
@ellisgeek
ellisgeek / gist:1006469
Created June 3, 2011 14:55
eggdrop config
#!/usr/bin/eggdrop
# ^- This should contain a fully qualified path to your Eggdrop executable.
#
# $Id: eggdrop.conf,v 1.51 2008-02-16 20:15:30 guppy Exp $
#
# This is a sample Eggdrop configuration file which includes all possible
# settings that can be used to configure your bot.
#
# The pound signs (#) that you see at the beginning of some lines mean that
# the remainder of that line is a comment, or just for your information. By
@ellisgeek
ellisgeek / ampache.cfg.php
Created October 1, 2011 20:49
Ampache configuration.
;#<?php exit(); ?>##
;###################
; General Config #
;###################
; This value is used to detect quickly
; if this config file is up to date
; this is compared against a value hard-coded
; into the init script
config_version = 10
@ellisgeek
ellisgeek / gist:1330156
Created November 1, 2011 08:33
Webshell init.d
#! /bin/sh
### BEGIN INIT INFO
# Provides:          webshell
# Default-Start:     S 2 3 4 5
# Default-Stop:      0 1 6
### END INIT INFO
set -e
WEBSHELL=/usr/sbin/webshell/webshell.py
#WEBSHELL_CERT=/etc/apache2/sitecert.pem
SHELL_CMD="ssh -2 -i /etc/ssh/keys/blake/private_keys/sshkey
@ellisgeek
ellisgeek / conn.go
Created October 18, 2012 15:35
Go WebSocket Example
package main
import (
"code.google.com/p/go.net/websocket"
)
type connection struct {
// The websocket connection.
ws *websocket.Conn

Between me [My Name]
and you [Customer Name]

Summary:

I'll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I've no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.

So in short;

You ([Customer Name]), located at [Customer Address] are hiring me ([My Name]) located at [My Address] to implement a website and forums for your Garry's Mod mod based on [Wordpress Theme of Choice] for the estimated total price of $50 USD as outlined in our previous correspondence. Of course it’s a little more complicated, but we’ll get to that.

@ellisgeek
ellisgeek / docopt.py
Last active August 29, 2015 14:07
Set the ready message on a HP printer.
"""Pythonic command-line interface parser that will make you smile.
* http://docopt.org
* Repository and issue-tracker: https://github.com/docopt/docopt
* Licensed under terms of MIT license (see LICENSE-MIT)
* Copyright (c) 2013 Vladimir Keleshev, vladimir@keleshev.com
"""
import sys
import re
@ellisgeek
ellisgeek / btsync.sh
Last active August 8, 2022 20:57 — forked from mendelgusmao/btsync
Proper init.d script for btsync. Comes with complete install instructions!
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: daemonized version of btsync.
@ellisgeek
ellisgeek / getpcinfo.ps1
Last active November 9, 2018 02:58
YASIS - Yet Another System Info Script
# YASIC - Yet Another System Info Script
# Gets various information about the computer that it's run on
# Returned information:
# * Hostname
# * Manufacturer
# * Model
# * Serial Number
# * Asset Tag
# * Processor
# * Memory
@ellisgeek
ellisgeek / changecolor.sh
Created February 26, 2015 19:05
Updated changecolor.sh for sixsixfives ACID xfce4 theme.
#!/bin/sh
command -v gm >/dev/null 2>&1 || { echo >&2 "I require GraphicsMagick but it's not installed. Aborting."; exit 1; }
command -v sed >/dev/null 2>&1 || { echo >&2 "I require sed but it's not installed. Aborting."; exit 1; }
read -p "Please enter your new color in HEX(eg. #ffffff for white) " NEWCOLOR
echo "This may take a while"
find . -type f -exec sed -i 's/#a5e12d/'$NEWCOLOR'/g' {} \;