Skip to content

Instantly share code, notes, and snippets.

View ryanfb's full-sized avatar

Ryan Baumann ryanfb

View GitHub Profile
anonymous
anonymous / ddb board branches
Created August 23, 2010 14:44
Arthur/P.Sijp.,_44
Bart/O.Heid.,_210
Paola/O.Heid._154
adelattr/P.Brux.Bawit_12
approved/2010/04/30/SB_24_15977
approved/2010/05/14/P.Brux._Bawit,_1
approved/2010/06/16/CPL,_310
approved/2010/06/16/O.Ber._2,_130
approved/2010/06/16/P.Brux._Bawit,_9
approved/2010/07/08/O.Heid.,_330
anonymous
anonymous / rake output on dl-pa
Created August 23, 2010 15:16
Loaded suite /usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.....................................EEEE.F...............
Finished in 96.705 seconds.
1) Error:
test: a publication copied to another owner should be a child of its parent. (PublicationTest):
NoMethodError: You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.destroy
$jruby -S rake --trace
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
(in /data/papyri.info/sosol/editor)
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
@jdfox777
jdfox777 / P.Petra.III
Created April 5, 2011 20:47
complex XML that blows up xsugar
<div xml:lang="grc" type="edition" xml:space="preserve">
<ab>
<lb n="1"/><gap reason="lost" atLeast="10" atMost="15" unit="line"/>
<lb n="1"/><gap reason="lost" quantity="5" unit="character"/> <supplied reason="lost">ὑπομνησ</supplied>τικὸν τῶν συνθε<gap reason="illegible" quantity="1" unit="character"/><gap reason="lost" quantity="12" unit="character" precision="low"/> <supplied reason="lost">π</supplied><unclear>ε</unclear>ρὶ χ<unclear>ρ</unclear><supplied reason="lost">έ</supplied>ους καὶ
<lb n="2"/><gap reason="lost" quantity="13" unit="character" precision="low"/><unclear>ε</unclear>ντων μ<unclear>ε</unclear><gap reason="illegible" quantity="1" unit="character"/><unclear>ε</unclear><gap reason="lost" quantity="2" unit="character"/><gap reason="illegible" quantity="2" unit="character"/><gap reason="lost" quantity="30" unit="character" precision="low"/>
<lb n="3"/><gap reason="lost" quantity="15" unit="character" precision="low"/>ων. ἐπείπερ π<gap reason="illegible" quantity="1" unit="character"/><gap reas
@ryanfb
ryanfb / gist:955889
Created May 4, 2011 19:50
automatic git changelog from tags
# major versions only
prever=""; for ver in `git tag | grep -v rc | gsort -V -r`; do if [ "$prever" != "" ]; then echo $prever; git rev-list --pretty=oneline --abbrev-commit --no-merges $prever ^$ver; echo ""; fi; prever=$ver; done | less
# RC's only
prever=""; for ver in `git tag | grep rc | gsort -V -r`; do if [ "$prever" != "" ]; then echo $prever; git rev-list --pretty=oneline --abbrev-commit --no-merges $prever ^$ver; echo ""; fi; prever=$ver; done | less
@hcayless
hcayless / gist:1328970
Created October 31, 2011 21:12
migration error
13928:
ready
ready
rake aborted!
An error has occurred, all later migrations canceled:
private method `gsub' called for nil:NilClass
/usr/local/rvm/rubies/jruby-1.6.2/lib/ruby/1.8/cgi.rb:342:in `escape'
./db/migrate//20110811204557_escape_comments.rb:5:in `up'
org/jruby/RubyArray.java:1602:in `each'
@raws
raws / hector.conf
Created January 4, 2012 03:36
Hector Upstart config
description "Hector IRC server"
env LC_CTYPE=en_US.UTF-8
env RBENV_VERSION=1.9.3-p0
env HECTOR_ROOT=/home/ross/hector/blolol.hect
script
/home/ross/.rbenv/bin/rbenv exec hector daemon
end script
@codingjester
codingjester / oauth_tumblr.py
Created April 3, 2012 23:33
OAuth Tumblr Getting Access Tokens
import urlparse
import oauth2 as oauth
consumer_key = 'consumer_key'
consumer_secret = 'consumer_secret'
request_token_url = 'http://www.tumblr.com/oauth/request_token'
access_token_url = 'http://www.tumblr.com/oauth/access_token'
authorize_url = 'http://www.tumblr.com/oauth/authorize'
@rrrodrigo
rrrodrigo / instagram-download.txt
Created April 10, 2012 11:45
How to download all your Instagram pictures in highest resolution without using any API
Following the news about Facebook buying Instagram I decided to delete my Instagram account before Facebook claims ownership of my pictures.
Since the Instagram-recommended (in their FAQ): http://instaport.me/export doesn't work for me (probably they can't cope with the high demand),
here is a quick and dirty way to download all my Instagram pictures in their highest resolution in a few easy steps.
You will need: Firefox, Firebug, some text editor, wget
1. Go to http://statigr.am/yourlogin using Firefox with Firebug extension active
2. Scroll down as many times as it is needed to have all yor pictures thumbnails displayed (I had some 3 hundred pictures so it was not that much scrolling, YMMV)
3. In the Firebug JS console run this JS code: $(".lienPhotoGrid a img").each(function(index) { console.log($(this).attr('src')) })
4. JS console will contain urls to all the thumbnails images, like this: http://distilleryimage1.s3.amazonaws.com/4ed46cf2801511e1b9f1123138140926_5.jpg
@valpackett
valpackett / Alfred-Pinboard-INSTANT.md
Last active September 7, 2023 21:01
INSTANT Pinboard search from Alfred 2

INSTANT Pinboard search from Alfred 2

I've had a Python script that makes an HTML Bookmarks file for LaunchBar.
Now that I use Alfred 2, I modified it to make XML for Alfred.
This allows me to search my bookmarks with GREP SPEED!

Installation

First, add your token (from pinboard.in/settings/password) to ~/.netrc