Skip to content

Instantly share code, notes, and snippets.

Josh trueheart78

Block or report user

Report or block trueheart78

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trueheart78 / issue-puller.rb
Last active Aug 29, 2015
Github Issue Retriever for a particular user (exercism)
View issue-puller.rb
require 'json'
require 'open-uri'
class Github
def auth_token
"access_token="+OAUTH_TOKEN unless OAUTH_TOKEN.empty?
trueheart78 / fs-monitor.rb
Last active Aug 29, 2015
A simple ruby script to monitor filesizes during a large transfer. Setup to run through cron. Requires the mandrill-api gem to be installed, as well as a mandrill API key in your enviroment in MANDRILL_APIKEY
View fs-monitor.rb
require 'mandrill'
files = ["mh-files-wo-lb-20141026_0009.tar.gz","mh-files-lb-only-20141026_0009.tar.gz"]
files.each do |f|
if File.exist?(f)
size = File.stat(f).size
gb = 1024 ** 3
mb = 1024 ** 2
status = "#{size / gb} gb (#{size / mb} mb)"
puts "File #{f} - as of #{}:\n"
You can’t perform that action at this time.