Skip to content

Instantly share code, notes, and snippets.

Avatar

Hayden Schiff oxguy3

View GitHub Profile
@oxguy3
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: 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
View youbrokeit.sh
#!/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 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">
<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 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
oxguy3 / gist:400bf90c1e3984e69d82
Created Feb 23, 2015
Phedran Patreon server waypoints
View gist:400bf90c1e3984e69d82
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 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
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 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 Aug 29, 2015
CoeBot date parsing
View CoebotDateParsing.java
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 Jun 26, 2015
scrape property tax PINs from Cook County IL's website
View cook_scraper.py
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")