Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
am familiar

snapcase snapcase

:octocat:
am familiar
View GitHub Profile
View keybase.md

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:

View rubycat.rb
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')
View meepmerp.user.js
// ==UserScript==
// @name Meep Merp
// @namespace lulz
// @match http://meepmerp.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
setInterval(function() { meepMerp() }, 500);
View affixes_data.rb
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']
View armory.rb
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 Dec 8, 2016
Fixes a major issue with the steam store
View steam_store_khimera.user.js
// ==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/"
View 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 / badranks.user.js
Last active Oct 17, 2015
Highlight 'bad' ranks on the Horizon Surf Servers
View badranks.user.js
// ==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 Aug 29, 2015
Query Source Servers
View source_query.rb
#!/usr/bin/ruby
require 'socket'
class SourceQuery
def initialize(ip, port)
query(ip, port)
end
def to_s
@snapcase
snapcase / cinch-youtube.rb
Last active Aug 29, 2015
cinch-bot fetching youtube titles
View cinch-youtube.rb
require 'bundler/setup'
require 'open-uri'
require 'json'
require 'cinch'
API_KEY = 'meep'
class Youtube
include Cinch::Plugin
You can’t perform that action at this time.