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
benr75 / gem_list.pl
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);
chomp(@gems);
# Create commands
require 'curb'
Facebooker.use_curl = true
class Facebooker::Service::CurlService < Facebooker::Service::BaseService
def post_form(url,params,multipart=false)
curl = Curl::Easy.new(url.to_s) do |c|
c.headers["Expect:"] = ""
c.multipart_form_post = multipart
c.timeout = Facebooker.timeout
end
curl.http_post(*to_curb_params(params))
@benr75
benr75 / gist:216911
Created October 23, 2009 14:06
Bump CFBundleVersion in a .plist file
#
# Copyright (c) 2009 Ben Reubenstein <benr@x-cr.com>
#
# 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