Skip to content

Instantly share code, notes, and snippets.

View snapcase's full-sized avatar
:shipit:
aye

snapcase snapcase

:shipit:
aye
View GitHub Profile

Keybase proof

I hereby claim:

  • I am snapcase on github.
  • I am snapcase (https://keybase.io/snapcase) on keybase.
  • I have a public key ASDkIJSRYE_IsYIAWl5DsTQKaG_bjffPUy7OHuDwf7j0oAo

To claim this, I am signing this object:

@snapcase
snapcase / rubycat.rb
Created August 8, 2017 18:44
rubycat
class RubyCat < Sinatra::Base
@@db_conns = []
#
# current implementation
#
# creates a new connection to mysql
get '/create' do
@@db_conns << Mysql2::Client.new(host: '127.0.0.1', username: 'root', password: 'derp')
@snapcase
snapcase / meepmerp.user.js
Last active June 6, 2017 20:35
meep merp
// ==UserScript==
// @name Meep Merp
// @namespace lulz
// @match http://meepmerp.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
setInterval(function() { meepMerp() }, 500);
@snapcase
snapcase / affixes_data.rb
Created March 9, 2017 09:13
wow affixes
module Affixes
DATA = [
['Raging', 'Necrotic', 'Fortified'],
['Bolstering', 'Overflowing', 'Tyrannical'],
['Sanguine', 'Volcanic', 'Fortified'],
['Teeming', 'Necrotic', 'Tyrannical'],
['Raging', 'Volcanic', 'Tyrannical'],
['Bolstering', 'Skittish', 'Fortified'],
['Sanguine', 'Overflowing', 'Tyrannical'],
['Teeming', 'Skittish', 'Fortified']
@snapcase
snapcase / armory.rb
Created March 9, 2017 08:45
armory profile
require 'httparty'
class Armory
include HTTParty
base_uri 'https://eu.api.battle.net/wow'
CLASS = {
1 => { name: 'Warrior', color: 'C79C6E' },
2 => { name: 'Paladin', color: 'F58CBA' },
3 => { name: 'Hunter', color: 'ABD473' },
@snapcase
snapcase / steam_store_khimera.user.js
Created December 8, 2016 19:23
Fixes a major issue with the steam store
// ==UserScript==
// @name steam store Khimera bug fix
// @namespace snapcase.net
// @description sif this is free, something's fucky
// @include http://store.steampowered.com/app/467380*
// @version 1
// @grant none
// ==/UserScript==
var paypal = "http://www.paypal.me/syaxamaphone/"
@snapcase
snapcase / politiken.user.js
Created November 24, 2016 19:06
politiken.user.js
// ==UserScript==
// @name get rekt
// @namespace animetiddi.es
// @description wat
// @include http://politiken.dk/*
// @version 1
// @run-at document-end
// @grant none
// ==/UserScript==
@snapcase
snapcase / reflex_update
Last active October 23, 2015 12:42
update reflex server
#!/bin/bash
#
# update (a single) reflex server
# snapcase 2015
#
REFLEX_DIR="$HOME/reflex"
APPID=329740
die() { error "$*"; exit 1; }
@snapcase
snapcase / badranks.user.js
Last active October 17, 2015 17:35
Highlight 'bad' ranks on the Horizon Surf Servers
// ==UserScript==
// @name Bad Ranks
// @namespace http://snapcase.net
// @description Highlight bad ranks on the Horizon Surf Servers
// @include https://www.horizonservers.net/stats/*
// @version 1.7
// @grant none
// @require http://www.kryogenix.org/code/browser/sorttable/sorttable.js
// ==/UserScript==
@snapcase
snapcase / source_query.rb
Last active August 29, 2015 14:22
Query Source Servers
#!/usr/bin/ruby
require 'socket'
class SourceQuery
def initialize(ip, port)
query(ip, port)
end
def to_s