Skip to content

Instantly share code, notes, and snippets.

View admalledd's full-sized avatar

Eric Driggers admalledd

  • Vancouver, WA, USA
View GitHub Profile
@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
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 / 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
@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)

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 {

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

@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)
@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
#!/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:4037893
Created November 8, 2012 09:58
LoL playonlinux log
[11/08/12 01:56:46] - Running wine-1.5.5-LeagueOfLegends rads_user_kernel.exe run lol_launcher 0.0.0.0 LoLLauncher.exe (Working directory : /home/admalledd/.PlayOnLinux/wineprefix/LeagueOfLegends/drivp11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directoryfixme:dwmapi:DwmIsCompositionEnabled 0x6ac8a440
fixme:iphlpapi:NotifyAddrChange (Handle 0x100e8ec, overlapped 0x100e8d0): stub
wine: configuration in '/home/admalledd/.PlayOnLinux//wineprefix/LeagueOfLegends' has been updated.
fixme:win:EnumDisplayDevicesW ((null),0,0x33f918,0x00000000), stub!
fixme:d3d9:Direct3DShaderValidatorCreate9 stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared obje