Skip to content

Instantly share code, notes, and snippets.

View oxguy3's full-sized avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
oxguy3 / gist:9987433
Last active August 29, 2015 13:58
Console log for aidancbrady/Mekanism issue #1280
Find this console log on Google and looking for the relevant bug report? It's here: https://github.com/aidancbrady/Mekanism/issues/1280
11:32:51 PM CONSOLE: [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
11:33:49 PM CONSOLE: [WARNING] EnergyNet.removeTileEntity: TileMultipart_cmp$$35@44bcabe4 (TileMultipart_cmp$$35@44bcabe4) wasn't found (added), skipping
11:33:49 PM CONSOLE: [WARNING] EnergyNet.removeTileEntity: TileMultipart_cmp$$35@1f3f041b (TileMultipart_cmp$$35@1f3f041b) wasn't found (added), skipping
11:33:49 PM CONSOLE: [WARNING] EnergyNet.removeTileEntity: TileMultipart_cmp$$35@1ff003a9 (TileMultipart_cmp$$35@1ff003a9) wasn't found (added), skipping
11:33:49 PM CONSOLE: [WARNING] EnergyNet.removeTileEntity: TileMultipart_cmp$$35@f6087a9 (TileMultipart_cmp$$35@f6087a9) wasn't found (added), skipping
11:33:49 PM CONSOLE: [WARNING] EnergyNet.removeTileEntity: TileMultipart_cmp$$35@47bcab28 (TileMultipart_cmp$$35@47bcab28) wasn't found (added), skipping
11:33:49 PM CONS
@oxguy3
oxguy3 / youbrokeit.sh
Created May 8, 2014 12:59
You broke it!
#!/bin/bash
FILES=/usr/bin/*
COLOR=1
while true
do for f in $FILES
do cat $f
tput setaf $COLOR
tput bel
@oxguy3
oxguy3 / hide-recommended-posts.js
Created July 9, 2014 05:00
Hide recommended posts on Tumblr via xkit's Servant extension
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>University of Rochester Playing Game: Year 1</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
@oxguy3
oxguy3 / htmlDecode
Created December 7, 2014 07:00
A function for decoding html entities in an html string
function htmlDecode( input ) {
return String(input)
.replace(/&amp;/g, '&')
.replace(/&quot;/g, '"')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>');
}
@oxguy3
oxguy3 / gist:400bf90c1e3984e69d82
Created February 23, 2015 17:42
Phedran Patreon server waypoints
filetimestamp:201502231052
name:Unstable1,x:568,z:800,y:63,enabled:false,red:0.46034193,green:0.54231054,blue:0.29657978,suffix:,world:,dimensions:0#
name:SPAWN,x:244,z:254,y:70,enabled:true,red:0.23921569,green:0.007843138,blue:0.003921569,suffix:,world:,dimensions:0#
name:oxguy3,x:265,z:430,y:13,enabled:false,red:0.003921569,green:0.5058824,blue:0.023529412,suffix:,world:,dimensions:0#
name:Phedran,x:644,z:317,y:69,enabled:false,red:0.5215317,green:0.12488675,blue:0.7475541,suffix:,world:,dimensions:0#
name:Malkavian_Mime,x:285,z:337,y:70,enabled:false,red:0.6037983,green:0.9702504,blue:0.4332052,suffix:,world:,dimensions:0#
name:PORTAL,x:216,z:264,y:47,enabled:true,red:0.6039216,green:0.03529412,blue:0.003921569,suffix:,world:,dimensions:-1#
name:blazes,x:1016,z:-912,y:60,enabled:true,red:0.84313726,green:0.85490197,blue:0.0,suffix:,world:,dimensions:-1#
name:Fortress 2,x:1176,z:-72,y:48,enabled:true,red:0.35793942,green:0.70589083,blue:0.35481787,suffix:,world:,dimensions:-1#
name:Fortress 1,x:-144,z:-544
@oxguy3
oxguy3 / gist:5608b69a30132ae16291
Created March 11, 2015 16:43
better command restrict logic for coebot
} else if (msg[1].equalsIgnoreCase("restrict")
&& msg.length >= 4) {
String command = msg[2].toLowerCase();
String levelStr = msg[3].toLowerCase();
int level = -1;
String cleanLevelStr = "";
if (channelInfo.getCommand(command) != null) {
if (levelStr.equalsIgnoreCase("owner")
|| levelStr.equalsIgnoreCase("owners")) {
level = 3;
@oxguy3
oxguy3 / gist:30b4ad5ca5a00291cfb2
Created March 24, 2015 02:01
Custom artist icons for Google Play Music
// ==UserScript==
// @name Custom artist icons for Google Play Music
// @namespace https://play.google.com/music/
// @version 0.1
// @description Allows for custom icons for your artists in Google Play Music
// @author Hayden Schiff (oxguy3)
// @match https://play.google.com/music/*
// @grant unsafeWindow
// @require https://code.jquery.com/jquery-1.11.2.min.js
// ==/UserScript==
@oxguy3
oxguy3 / CoebotDateParsing.java
Last active August 29, 2015 14:19
CoeBot date parsing
import java.util.Scanner;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.Period;
import org.joda.time.PeriodType;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.PeriodFormatter;
import org.joda.time.format.PeriodFormatterBuilder;
@oxguy3
oxguy3 / cook_scraper.py
Created June 26, 2015 02:07
scrape property tax PINs from Cook County IL's website
from lxml import html
import requests
import sqlite3
import sys
con = sqlite3.connect("cook_county.db")
con.execute("CREATE TABLE IF NOT EXISTS properties(pin TEXT(18) UNIQUE, number TEXT(63), street TEXT(255), unit TEXT(255), city TEXT(255), zip TEXT(5))")
con.execute("DELETE FROM properties")