Skip to content

Instantly share code, notes, and snippets.


Hayden Schiff oxguy3

View GitHub Profile
oxguy3 / gist:9987433
Last active Aug 29, 2015
Console log for aidancbrady/Mekanism issue #1280
View gist:9987433
Find this console log on Google and looking for the relevant bug report? It's here:
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
while true
do for f in $FILES
do cat $f
tput setaf $COLOR
tput bel
oxguy3 / hide-recommended-posts.js
Created Jul 9, 2014
Hide recommended posts on Tumblr via xkit's Servant extension
View hide-recommended-posts.js
View index.html
<!DOCTYPE html>
<html lang="en">
<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=""></script>
oxguy3 / htmlDecode
Created Dec 7, 2014
A function for decoding html entities in an html string
View htmlDecode
function htmlDecode( input ) {
return String(input)
.replace(/&amp;/g, '&')
.replace(/&quot;/g, '"')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>');
oxguy3 / gist:400bf90c1e3984e69d82
Created Feb 23, 2015
Phedran Patreon server waypoints
View gist:400bf90c1e3984e69d82
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 / gist:5608b69a30132ae16291
Created Mar 11, 2015
better command restrict logic for coebot
View gist:5608b69a30132ae16291
} 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 / gist:30b4ad5ca5a00291cfb2
Created Mar 24, 2015
Custom artist icons for Google Play Music
View gist:30b4ad5ca5a00291cfb2
// ==UserScript==
// @name Custom artist icons for Google Play Music
// @namespace
// @version 0.1
// @description Allows for custom icons for your artists in Google Play Music
// @author Hayden Schiff (oxguy3)
// @match*
// @grant unsafeWindow
// @require
// ==/UserScript==
oxguy3 /
Last active Aug 29, 2015
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 /
Created Jun 26, 2015
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")