Skip to content

Instantly share code, notes, and snippets.

Serenity Now.

Ben Reubenstein benr75

Serenity Now.
Block or report user

Report or block benr75

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
benr75 /
Last active Dec 19, 2019
Instructions for getting a Rails Environment setup on macOS

Instructions to setup a Rails Environment on macOS

Supporting Software

Install Xcode. Be sure to open it once an install the additional components.

Install Homebrew.

/usr/bin/ruby -e "$(curl -fsSL"
View cloud-delete.rb
#!/usr/bin/env ruby
# gem install cloudapp_api
# ruby cloud-delete.rb
EMAIL_ADDRESS = "**************"
PASSWORD = "**************"
ROOT = File.expand_path('../cloudapp-export', __FILE__)

Keybase proof

I hereby claim:

  • I am benr75 on github.
  • I am benr75 ( on keybase.
  • I have a public key ASB2ww6bsuj3_628Gq_qq9QqB97irfrU8lPnSVhV1Q4I4Ao

To claim this, I am signing this object:

benr75 /
Last active Mar 14, 2018 — forked from XueshiQiao/
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install
benr75 / checkfeed.rb
Last active Nov 22, 2016
Quick script to check how long it takes to get an http resource
View checkfeed.rb
require 'curb'
if ARGV[0].nil? || ARGV[1].nil?
puts "usage 'ruby checkfeed.rb FEEDURL TIMESTORUN'"
ttr = ARGV[1].to_i
x = 0
while x < ttr
http = Curl.get(ARGV[0])
puts http.total_time
benr75 / send_phish_pushes.rb
Created Sep 11, 2016
# Script to send push notifications for each song in a Phish Setlist via an updateable Push Notification.
View send_phish_pushes.rb
# Script to send push notifications for each song in a Phish Setlist via an updateable Push Notification.
# Place a config.yml in the same directory as the script and your push notification PEM file.
# Config Format:
# push_token: XXXXXXXXXXXXXX
# phish_api_key: XXXXXXXXXXXXXX
# push_mode: XXXXXXXXXXXXXX # development or production
require 'apnotic'
benr75 / gist:5646723
Created May 24, 2013
JSON pretty from commandline
View gist:5646723
#!/usr/bin/env ruby
# Example usage:
# curl | jsonviewer.rb
require 'rubygems'
require 'awesome_print'
require 'json'
benr75 / jv.rb
Created Aug 4, 2012
Display JSON nicely from the command line using ruby
View jv.rb
#!/usr/bin/env ruby
# Example usage:
# curl | jv.rb
require 'rubygems'
require 'awesome_print'
require 'json'
benr75 / gist:1141103
Created Aug 11, 2011
Error with Sprockets Fix
View gist:1141103
Seeing errors like this?
" NoMethodError: undefined method `process_Reset_directive' for #<Sprockets::DirectiveProcessor:0x007fc96d8de918> (in ../app/assets/stylesheets/style.css.scss:1)02f assets\002f stylesheets\002f style.css.scss:1)"
"/gems/sprockets-2.0.0.beta.13/lib/sprockets/directive_processor.rb:191:in `block in process_directives'ctive_processor.rb:191:in `block in process_directives'"
Don't make comments like this:
/* =Something ----*/
benr75 /
Created Jul 19, 2011
Create gem install command list (not mine found it somewhere on the internet)
#!/usr/bin/perl -w
# We're strict
use strict;
# Get list of installed gems
my @gems = qx(gem list);
# Create commands
You can’t perform that action at this time.