Skip to content

Instantly share code, notes, and snippets.

View marhan's full-sized avatar

Markus Hanses marhan

View GitHub Profile
@marhan
marhan / gist:1326995
Created October 31, 2011 06:11 — forked from thilko/gist:1326295
code retreat links
how to organize a code retreat from alex boloaca
http://bit.ly/9nzhql
... and another page
http://bit.ly/bRTX5D
introduction about code retreats from the inventor
http://coderetreat.com
the role of the facilitator
@marhan
marhan / config_loader.rb
Created December 11, 2011 09:25
Loads config from yaml file
require "yaml"
require "hashie"
module ConfigLoader
class Config
def initialize(config_file)
self.config_file = config_file
end
@marhan
marhan / install_debugger.sh
Created January 21, 2012 08:58
Ruby debugger installation fix for 1.9.3
#/bin/bash
#
# NOT WORKING, yet!!!
#
# based uppen https://gist.github.com/1331533
#
# bash < <(curl -s https://raw.github.com/gist/1652066/8e6c3e4b67d572f8f673e3d3950d94cfcd1e0954/install_debugger.sh)
#
DOWN_LOAD_DIR=/Users/markus/Downloads
wget -P $DOWN_LOAD_DIR http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
@marhan
marhan / gist:1886674
Created February 22, 2012 19:02
Heroku Log after Rails Update to Version 3.2
2012-02-22T18:14:43+00:00 app[web.1]: app/templates/test/unit/.empty_directory", "lib/rails/generators/rails/generator/templates/templates/.empty_directory", "lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory", "lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory"]
2012-02-22T18:14:43+00:00 app[web.1]: s.homepage = %q{http://www.rubyonrails.org}
2012-02-22T18:14:43+00:00 app[web.1]: s.rdoc_options = ["--exclude", "."]
2012-02-22T18:14:43+00:00 app[web.1]: s.require_paths = ["lib"]
2012-02-22T18:14:43+00:00 app[web.1]: s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
2012-02-22T18:14:43+00:00 app[web.1]: s.rubygems_version = %q{1.3.7}
2012-02-22T18:14:43+00:00 app[web.1]: s.summary = %q{Tools for creating, working with, and running Rails applications.}
2012-02-22T18:14:43+00:00 app[web.1]:
2012-02-22T18:14:43+00:00 app[web.1]: if s.respond_to? :specification_version then
2012-02-22T18:14:43+00:00 app[web.1]: current_version = Gem::
@marhan
marhan / heroku.log
Created March 12, 2012 07:02
Error after deployment at Heroku
2012-03-11T21:19:08+00:00 app[web.1]: app/templates/test/unit/.empty_directory", "lib/rails/generators/rails/generator/templates/templates/.empty_directory", "lib/rails/generators/rails/plugin_new/templates/app/mailers/.empty_directory", "lib/rails/generators/rails/plugin_new/templates/app/models/.empty_directory"]
2012-03-11T21:19:08+00:00 app[web.1]: s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
2012-03-11T21:19:08+00:00 app[web.1]: s.rubygems_version = %q{1.3.7}
2012-03-11T21:19:08+00:00 app[web.1]:
2012-03-11T21:19:08+00:00 app[web.1]: s.summary = %q{Tools for creating, working with, and running Rails applications.}
2012-03-11T21:19:08+00:00 app[web.1]: if s.respond_to? :specification_version then
2012-03-11T21:19:08+00:00 app[web.1]: current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
2012-03-11T21:19:08+00:00 app[web.1]: s.specification_version = 3
2012-03-11T21:19:08+00:00 app[web.1]:
2012-03-11T21:19:08+00:00 app[web.1]: if Gem::Version.new(Gem::VERSI
@marhan
marhan / install_rvm.sh
Created March 18, 2012 11:01
Install RVM on Ubtunu
#!/bin/bash
# install necessary packages on ubuntu
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# prevent webkit gem installation problem
# https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit
sudo apt-get install libqt4-dev libqtwebkit-dev
# install rvm
# http://beginrescueend.com/
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
@marhan
marhan / gist:2070778
Created March 18, 2012 11:41
Installing capybara webkit native extension on ubuntu - error
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-generic-pae i686)
* Documentation: https://help.ubuntu.com/
System information as of Sun Mar 25 21:32:05 CEST 2012
System load: 0.03 Processes: 58
Usage of /: 13.3% of 28.04GB Users logged in: 1
Memory usage: 5% IP address for eth0: 192.168.178.39
Swap usage: 0%
@marhan
marhan / gist:2844225
Created May 31, 2012 15:39
rvm_ruby_1_9_3_installation.sh
#!/bin/bash
# get ruby 1.9.3 for ubuntu rvm
curl -o /usr/share/ruby-rvm/archives/ruby-1.9.3-.tar.bz2 http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.bz2
rvm install 1.9.3
@marhan
marhan / config_sublime_text.yaml
Created August 17, 2012 04:50
My Sublime Text 2 Configuration
{
"color_scheme": "Packages/Color Scheme - Default/Cobalt.tmTheme",
"font_size": 11.0,
"tab_size": 2,
"translate_tabs_to_spaces": true
}
@marhan
marhan / eclipse.ini
Created September 10, 2012 11:02
Eclipse 4.2 Juno on MacOS Snow Leopard
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform