Skip to content

Instantly share code, notes, and snippets.

module BitlyApi
class BitlyError < StandardError
end
class Bitly
attr_accessor :login
attr_accessor :api_key
attr_accessor :api_version
def initialize(options = {})
% git clone git@github.com:Hoodow/restful-authentication.git
Initialized empty Git repository in /home/hoodow/scm/restful-authentication/.git/
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates.
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates.
error: object directory /data/git/repositories/2/a2/a6/a0/glongman-otv/restful-authentication.git/objects does not exist; check .git/objects/info/alternates.
error: object directory /data/git/repositories/5/dc/1f/6c/Radar/restful-authentication.git/objects does not exist; check .git/objects/info/alternates.
error: object directory /data/git/r
class AwsWorker < Workling::Base
def upload(options)
image = Image.find(options[:image_id])
data = File.open("#{RAILS_ROOT}/public#{image.public_filename}").read
chksum = Digest::MD5.hexdigest(data)
if S3.interface.store_object(:bucket => Bucket.full_name,
:key => image.public_filename.sub(/\//, ''),
:data => data,
<div class="userinfo">
<div class="uinfoblock">
<%= image_tag @user.photo.url(:medium) %>
</div>
<% if current_user %>
<div class="uinfoblock">
<% if @user === current_user %>
<div class="button"><%= link_to "edit profile", edit_user_path(@user) %></div>
Section "ServerLayout"
Identifier "Dualhead"
Screen 0 "SamsungScreen"
Screen 1 "BelineaScreen" LeftOf "SamsungScreen"
InputDevice "Mouse0" "CorePointer"
InputDevice "CherryCyMotionMasterXpress"
Option "Xinerama" "0"
EndSection
Section "Screen"