Skip to content

Instantly share code, notes, and snippets.

View mrdaemon's full-sized avatar

Alexandre Gauthier mrdaemon

View GitHub Profile
class AnusItch extends Unpleasantness {
public void itch(Wart w){
// code for when your butt itches because of a Wart
}
public void itch(Hemorroid h){
}
#!/usr/bin/env python
from gevent.server import StreamServer
def echo(socket, address):
""" Handler for shitty echo server """
print "New connection from %s:%s" % (address)
fileobj = socket.makefile()
fileobj.write("Welcome to the anus over tcp/ip server!\n\r")
from twisted.internet.protocol import Factory
from twisted.protocols.basic import LineReceiver
"""
Protocols/Transports for slop
STATUS CODES CHEAT SHEET:
1xx - informational messages
100 - Connection Established / Banner
101 - MOTD / Admin Message
@mrdaemon
mrdaemon / forums.sql
Created December 8, 2011 03:43
A simple MySQL schema for some sort of forums
/* Database Schema for simple Forums
* Author: Dee the great amateur RDBS wizard
* 07 Dec 2011 - Initial Version
*/
/* NOTE: You may want to alter this according to this setup,
* especially if you are not running the script as root and
* just need the tables.
*/
servers = (
{ address = "irc.stealth.net"; chatnet = "IRCnet"; port = "6668"; },
{ address = "irc.efnet.net"; chatnet = "EFNet"; port = "6667"; },
{
address = "irc.undernet.org";
chatnet = "Undernet";
port = "6667";
},
{ address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
{
# When testing changes, the easiest way to reload the theme is with /RELOAD.
# This reloads the configuration file too, so if you did any changes remember
# to /SAVE it first. Remember also that /SAVE overwrites the theme file with
# old data so keep backups :)
# TEMPLATES:
# The real text formats that irssi uses are the ones you can find with
# /FORMAT command. Back in the old days all the colors and texts were mixed
# up in those formats, and it was really hard to change the colors since you
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
#SCGI
scgi_port = localhost:5000
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 40
max_peers = 100
/**
* config.h - dwm
*
* $$$$$$$\ $$\ $$\ $$\ $$\.
* $$ __$$\ $$ | $\ $$ |$$$\ $$$ |
* $$ | $$ | $$$$$$\ $$$$$$\ $$ |$$$\ $$ |$$$$\ $$$$ |
* $$ | $$ |$$ __$$\ $$ __$$\ $$ $$ $$\$$ |$$\$$\$$ $$ |
* $$ | $$ |$$$$$$$$ |$$$$$$$$ |$$$$ _$$$$ |$$ \$$$ $$ |
* $$ | $$ |$$ ____|$$ ____|$$$ / \$$$ |$$ |\$ /$$ |
* $$$$$$$ |\$$$$$$$\ \$$$$$$$\ $$ / \$$ |$$ | \_/ $$ |
#!/bin/bash
# .xinitrc for asus eee 701 surf
# Alexandre Gauthier <[email protected]>
# 2011-2012
xset -b # Disable bell
eval $(/usr/bin/ssh-agent)
ASKPASSPROG=/usr/lib/openssh/qt4-ssh-askpass
@mrdaemon
mrdaemon / gist:1212059
Created September 12, 2011 18:52
irc tlc
14:33 &br0> I has a wifebeater and hospital pants
14:34 &br0> actually technically they are MRI clinic pants
14:34 @sney> scrubs
14:34 &br0> getting my fucking dollarsworth fuckyeah
14:34 &br0> no they are not really scrubs
14:34 &br0> they are thinner
14:34 &plus> hrm
14:35 ~mr_daemon> All i know about scrubs
14:35 ~mr_daemon> Is that girls don't want none
14:35 %Lemon> gah