Skip to content

Instantly share code, notes, and snippets.

View Fryguy's full-sized avatar
💻
Codin'

Jason Frey Fryguy

💻
Codin'
View GitHub Profile
@movitto
movitto / db-dia.rb
Last active April 5, 2016 12:25
DB / Dia Diagram Comparison & Updater Tool
#!/usr/bin/ruby
# Read / write db related metadata to/from dia diagram
#
# Copyright (C) 2015-2016 - Red Hat Inc.
require 'zlib'
require 'nokogiri'
require 'optparse'
require 'active_record'
require 'active_support/core_ext/string'
@durandom
durandom / pre-commit.rb
Created July 7, 2016 12:52
git pre-commit hook that runs rubocop on staged files
#!/usr/bin/env ruby
# make sure you have gem 'rubocop-git' in your Gemfile
require 'readline'
def input(prompt="", newline=false)
prompt += "\n" if newline
Readline.readline(prompt, true).squeeze(" ").strip
end
@syncrou
syncrou / pivotal_hook.rb
Last active July 13, 2016 19:31
Pivotal Tracker Hook
#! /usr/bin/env ruby
require 'rubygems'
require 'net/https'
class PivotalHook
PT_API_KEY = raise "Please add PT API KEY"
def self.post
commit_log = `git log -1`