Skip to content

Instantly share code, notes, and snippets.

# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.0.2'
gem 'activesupport', '4.0.2'
require 'active_record'
require 'active_support/time_with_zone'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
#!/bin/bash
#===============================================================================
# FILE: infopark_system_check.sh
#
# USAGE: infopark_system_check.sh
#
# DESCRIPTION: Checks various system components on whether they are installed
# in a version needed to participate in the Infopark workshops.
#
# AUTHOR: Falk Köppe, falk.koeppe@infopark.de
@awendt
awendt / find_cloud.user.js
Created May 16, 2012 08:17
Greasemonkey/Tampermonkey script for Scalarium: Filter cloud list by name
// ==UserScript==
// @name Find Cloud
// @namespace Scalarium
// @include https://manage.scalarium.com/clouds
// @include https://manage.scalarium.com/
// @include https://manage.scalarium.com
// @version 2
// ==/UserScript==
(
@awendt
awendt / gist:2215555
Created March 27, 2012 12:53
Brew update broken
homebrew ((8d9fd73...)) $ git co master
Switched to branch 'master'
Your branch is behind 'upstream/master' by 13 commits, and can be fast-forwarded.
homebrew (master) $ brew update
Already up-to-date.
homebrew (master) $
@awendt
awendt / my_client.rb
Created September 8, 2011 10:07
HTTParty: Using native json parser instead of Crack
# This was proposed by @ericgj in
# https://github.com/jnunemaker/httparty/issues/75#issuecomment-1258914
# using native json parser instead of Crack
class JsonParser < HTTParty::Parser
def json
::JSON.parse(body)
end
end
@awendt
awendt / custom.css
Created September 2, 2011 07:32
Like und +1 mit Datenschutz
.custom img#plusone {
cursor: pointer;
}
.custom #fbl {
cursor: pointer;
color:#2361A1;
font:0.65em Verdana, sans-serif;
border: 1px solid #CAD4E7;
border-radius: 3px;
@awendt
awendt / github.rb
Created July 11, 2011 11:53
Open the GitHub repository for the current working dir (assuming their names match)
#!/usr/bin/env ruby
url = "https://github.com/#{%x(git config github.user).chomp}/#{File.basename(Dir.pwd)}"
exec "/usr/bin/open #{url}"
@awendt
awendt / snippet.js
Created May 13, 2011 21:24
How to get the GPS coordinates from Google Maps
prompt('',gApplication.getMap().getCenter());
source 'http://rubygems.org'
gem 'rails', '3.0.3'
group :development do
gem 'ruby-prof', '< 0.9.0'
gem 'rack-contrib' #, :require => 'rack/contrib'
end
@awendt
awendt / scooby-doo.rb
Created September 24, 2010 13:09 — forked from fronx/scooby-doo.rb
def scooby(&block)
`say #{yield}`
end
scooby do
"be-doo-be-doo"
end