I hereby claim:
- I am benr75 on github.
- I am benr75 (https://keybase.io/benr75) on keybase.
- I have a public key ASB2ww6bsuj3_628Gq_qq9QqB97irfrU8lPnSVhV1Q4I4Ao
To claim this, I am signing this object:
# | |
# 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 |
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)) |
#!/usr/bin/perl -w | |
# We're strict | |
use strict; | |
# Get list of installed gems | |
my @gems = qx(gem list); | |
chomp(@gems); | |
# Create commands |
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 ----*/ |
#!/usr/bin/env ruby | |
# Example usage: | |
# curl https://api.twitter.com/1/statuses/show.json?id=231426135903305728 | jv.rb | |
# | |
require 'rubygems' | |
require 'awesome_print' | |
require 'json' |
#!/usr/bin/env ruby | |
# Example usage: | |
# curl https://api.twitter.com/1/statuses/show.json?id=231426135903305728 | jsonviewer.rb | |
# | |
require 'rubygems' | |
require 'awesome_print' | |
require 'json' |
# 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' |
require 'curb' | |
if ARGV[0].nil? || ARGV[1].nil? | |
puts "usage 'ruby checkfeed.rb FEEDURL TIMESTORUN'" | |
else | |
ttr = ARGV[1].to_i | |
x = 0 | |
while x < ttr | |
http = Curl.get(ARGV[0]) | |
puts http.total_time |
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |
I hereby claim:
To claim this, I am signing this object: