Skip to content

Instantly share code, notes, and snippets.

View benr75's full-sized avatar
Serenity Now.

Ben Reubenstein benr75

Serenity Now.
View GitHub Profile
benr75 / gist:216911
Created October 23, 2009 14:06
Bump CFBundleVersion in a .plist file
# Copyright (c) 2009 Ben Reubenstein <>
# Description:
# This script is designed to auto increment PList CFBundleVersion versions.
# It supports incrementing version in a three part format:
# 100.99.3
# Permission is hereby granted, free of charge, to any person obtaining a copy of
require 'curb'
Facebooker.use_curl = true
class Facebooker::Service::CurlService < Facebooker::Service::BaseService
def post_form(url,params,multipart=false)
curl = do |c|
c.headers["Expect:"] = ""
c.multipart_form_post = multipart
c.timeout = Facebooker.timeout
benr75 /
Created July 19, 2011 17:40
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
benr75 / gist:1141103
Created August 11, 2011 23:51
Error with Sprockets Fix
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 / jv.rb
Created August 4, 2012 21:17
Display JSON nicely from the command line using ruby
#!/usr/bin/env ruby
# Example usage:
# curl | jv.rb
require 'rubygems'
require 'awesome_print'
require 'json'
benr75 / gist:5646723
Created May 24, 2013 21:47
JSON pretty from commandline
#!/usr/bin/env ruby
# Example usage:
# curl | jsonviewer.rb
require 'rubygems'
require 'awesome_print'
require 'json'
benr75 / send_phish_pushes.rb
Created September 11, 2016 16:59
# Script to send push notifications for each song in a Phish Setlist via an updateable Push Notification.
# 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 / checkfeed.rb
Last active November 22, 2016 19:15
Quick script to check how long it takes to get an http resource
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 /
Last active March 14, 2018 21:42 — 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

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: