Skip to content

Instantly share code, notes, and snippets.

View oggy's full-sized avatar

George Ogata oggy

  • Rhino
  • New York, NY
View GitHub Profile
@oggy
oggy / git-prune-remote-branches
Created October 8, 2015 18:32
Command to delete old remote branches
#!/usr/bin/env ruby
require 'time'
class App
CUTOFF_DAYS = 30
def initialize(args)
args.size <= 1 or
abort "USAGE: #$0 [remote]"
@oggy
oggy / make-mtg-deck
Created January 29, 2017 04:48
Generate a Magic: The Gathering deck from a Cockatrice card database.
#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'
require 'set'
require 'nokogiri'
CARDS_PATH = '~/Library/Application Support/Cockatrice/Cockatrice/cards.xml'
@oggy
oggy / deathsie-previews.user.js
Last active September 16, 2021 07:31
Hover previews for Deathsie's tier lists
// ==UserScript==
// @name Deathsie Card Previews
// @namespace Violentmonkey Scripts
// @include https://docs.google.com/spreadsheets/d/e/2PACX-1vR1eo40sfGoZ-MLxXZsGRHEeAWlKBHYxLFGbTY64l0ZFmsXN25iXOHRYvN7Dt4AsCalgj_RK7KAMr9G/pubhtml
// @grant none
// @version 1.0
// @author George Ogata
// @description 9/13/2021, 1:34:27 AM
// ==/UserScript==