Skip to content

Instantly share code, notes, and snippets.

View admalledd's full-sized avatar

Eric Driggers admalledd

  • Vancouver, WA, USA
View GitHub Profile
#!/usr/bin/python
"""
Partly taken from the Portal ARG
http://portalwiki.net/index.php/BBS_Resources_List
"""
import random
_prefixes = [ 'CAUTION', 'ERROR', 'WARNING' ]
@admalledd
admalledd / gist:3966833
Created October 27, 2012 23:27
mumble log
CELT bitstream 8000000b from libcelt0.so.0.0.0
G15LCDEngineUnix: Unable to connect to G15Daemon.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
@admalledd
admalledd / joystick_check_and_draw.py
Created October 17, 2012 03:17
pygame joysticks and timedeltas
import random
import itertools
import pygame
import pygame.gfxdraw
from pygame.locals import *
SIZE=(1024,768)

all plugins and version info:

  • craftbukkit git-Bukkit-1.3.1-R2.0-17-g1a2f052-b2346jnks (MC: 1.3.1) (Implementing API version 1.3.1-R2.1-SNAPSHOT)

  • MultiInv Loading MultiInv v3.1.2-dev (build 60)

  • WorldEdit v1208-fe445a7

  • RetractableBridge v1.4

package com.admalledd.bukkit.test_plugin;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.vehicle.VehicleEnterEvent;
import org.bukkit.event.vehicle.VehicleExitEvent;
public class TestListener implements Listener {
@admalledd
admalledd / server_mod_help.md
Created August 11, 2012 06:54
minecraft moderator help for mc.admalledd.com

==== guide syntax ====

/this is a command

this is a comment about something something

$variable

when you see a "$" that means the next thing is a variable (can change as needed)

@admalledd
admalledd / backup.scc
Created April 27, 2012 23:22
minecraft config files
# A simple backup implementation
do save-all
do save-off
#note: ##($RECONFIG) edit this to point to the correct master_backup.sh for this server path if multiple share the same host.
execWait /home/admalledd/minecraft/cur/sh/master_backup.sh
do save-on
do save-all
import serial
import time
import subprocess
def scale(toscale, fromr=[-1,1],tor=[0,100],invert=0):#scale any number in one range to another
#linier only right now. uses y=mx+b
x1=fromr[0]
x2=fromr[1]
y1=tor[0]
y2=tor[1]
@admalledd
admalledd / inexes.cfg
Created November 19, 2010 00:48
a short program i wrote to get the top five songs in a given section of newgrounds.com using urllib2 and BeautifulSoup
[main]
## Easy Listening
Classical=3
Jazz=18
## Electronic
Ambient=5
Dance=6
Drum N Bass=7
Dubstep=41