Skip to content

Instantly share code, notes, and snippets.

Section "ServerLayout"
Identifier "Dualhead"
Screen 0 "SamsungScreen"
Screen 1 "BelineaScreen" LeftOf "SamsungScreen"
InputDevice "Mouse0" "CorePointer"
InputDevice "CherryCyMotionMasterXpress"
Option "Xinerama" "0"
EndSection
Section "Screen"
<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>
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,
% 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
module BitlyApi
class BitlyError < StandardError
end
class Bitly
attr_accessor :login
attr_accessor :api_key
attr_accessor :api_version
def initialize(options = {})
>> api = BitlyApi::Bitly.new(:login => BITLY_LOGIN, :api_key => BITLY_API_KEY)
=> #<BitlyApi::Bitly:0x7f93177c87e0 @api_version="2.0.1", @api_key=BITLY_API_KEY, @login=BITLY_LOGIN>
>> api.shorten "http://pickhost.eu"
=> {"userHash"=>"2wzb4d", "hash"=>"zNgN6", "shortKeywordUrl"=>"", "shortUrl"=>"http://bit.ly/2wzb4d"}
>> api.expand "2wzb4d"
=> {"longUrl"=>"http://pickhost.eu/"}
>> api.stats "2wzb4d"
=> {"userClicks"=>1, "referrers"=>{""=>{"direct"=>1}}, "userHash"=>"2wzb4d", "hash"=>"zNgN6", "clicks"=>1, "userReferrers"=>{""=>{"direct"=>1}}}
>> api.info "2wzb4d"
=> {"thumbnail"=>{"small"=>"http://s.bit.ly/bitly/zNgN6/thumbnail_small.png", "medium"=>"http://s.bit.ly/bitly/zNgN6/thumbnail_medium.png", "large"=>"http://s.bit.ly/bitly/zNgN6/thumbnail_large.png"}, "id3"=>{}, "userHash"=>"2wzb4d", "hash"=>"zNgN6", "mirrorUrl"=>"", "htmlMetaDescription"=>"An image hosting service with simplicity and speed in mind.", "version"=>1.0, "htmlTitle"=>"Pic(k)host :: Upload your Images!", "globalHash"=>"zNgN6", "calaisId"=>"
Rails CMS alternatives
======================
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
"the cutting edge Rails CMS platform"
Rails CMS alternatives
======================
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
"the cutting edge Rails CMS platform"
Rails CMS alternatives
======================
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
"the cutting edge Rails CMS platform"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
<title>G&#228;stehaus Zitt</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Abstract" content="G&#228;stezimmer mit allem Komfort in Oy-Mittelberg im Allg&#228;u.">