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 / obs_deps.sh
Last active September 20, 2016 10:03
Helper script to compile obs-studio. Gets the needed depenancies for you!
#!/bin/bash
set -e #quit on error stuff!
#This script was only testing on linux mint 16, with a large pile of custom tweaking.
#This file should be used more as a "guide line" than anything else...
# PLEASE edit certain settings before going around and running this! to make sure of that I
# have the next line kill the script unless commented out!
echo "You forgot to set up this file! Edit it with correct paths to use!" && exit 0
'''Read SValue object streams and convert to XML'''
import struct
class SValueType:
Array =1
Object =2
Boolean =3
@admalledd
admalledd / sw_calc.py
Created January 12, 2014 01:15
swerve calc tests
import math
import pygame
from pygame.locals import *
FONT = None
import math
class wheelVector:
@admalledd
admalledd / readme.md
Last active January 2, 2016 18:59
server move checklist/info

List of things to help me remember what I am doing while re-installing the server. I will also use this to post details about the update procedure. Those details will be in a separate file called "status.md" and will only be created once the process has started.

**TODO list in order: **

  1. download all data (see next two lists)
  2. reinstall OS with 64bit and GRsec disabled (attempt deb-bootstrap, see here, see note on deb-bootstrap at end of file)
  3. if deb-bootstrap succeeds ignore the data restore steps, only copy configurations and non-home'd data
  4. first step of new OS: set up remote high speed access (sftp/ssh/pubkeyauth)
  5. copy over old host keys
@admalledd
admalledd / tb_fail.py
Created October 15, 2013 06:11
pypy3 traceback issue
import traceback
try:
raise Exception("fail")
except Exception as e:
traceback.print_tb(e)
@admalledd
admalledd / gist:5351998
Last active December 16, 2015 00:59
"Monkey Timer" project. Times speed of a projectile and at the same time triggers a relay to drop a stuffed animal monkey.
/*
V0.1 initial github upload. working timer, shift register display (4 digit 7 segment).
V0.2 working code, needs better docs/comments
v0.3 changed display, tested with real monkey system and v1.0 of embeded hardware (no longer on breadboard)
out a-f of shift register is to segment a-f of 7segment.
four pins on arduino are the digit select pins
pin 2 is start timer IR barrier interrupt
pin 3 is stop timer IR barrier interrupt
default: Guest
groups:
Guest:
Permissions:
- bukkit.command.give
- bukkit.command.time
groups: #cant have the "groups" be defined, but without anything. see the comment on reddit for what i mean
meta:
prefix: '[Guest]'
suffix: '' #cant have the "suffix" be defined, but without anything. see the comment on reddit for what i mean
import math
import pygame
from pygame.locals import *
FONT = None
class robot_(object):
def __init__(self,joystick):
self.joystick=joystick
@admalledd
admalledd / ts_to_mp4.bat
Created December 7, 2012 01:09
vlc convert
@echo off
rem save this file somewhere on your computer with the file name "ts_to_mp4.bat" (or anything so long as it ends in .bat
set output=%1
set output='%output:~1,-4%.mp4'
echo about to convert %1 to %output% with vlc. continue?
pause
rem below the @echo on line is the VLC transcode command. the first part that is in quotes is the path to
@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