Skip to content

Instantly share code, notes, and snippets.

View siebertm's full-sized avatar

Michael Siebert siebertm

  • Berlin, Germany
View GitHub Profile
@siebertm
siebertm / curl
Created December 13, 2011 10:59
tomcat encoding problem
# curl http://192.168.10.13:8080/solr/test.jsp --data q=Orthop%C3%A4die
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Character encoding test page</title>
</head>
<body>
<p>Data posted to this form was:
Orthopädie
class munin::host {
Munin::Node_config <<||>> {
target => $confdir,
}
}
@siebertm
siebertm / Questions
Created September 6, 2011 16:58
GOTO Amsterdam
Day job:
Rails / Javascript developer at samedi in Berlin
What is your language of choice:
Whatever fits the job. Mostly Ruby, Javascript and Coffeescript
Open Source contributions:
Various small libs and tools others could find useful and a few smallish things in Rails
How do you use GitHub:
# mongo_template.rb
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842)
#
# To use:
# rails project_name -m http://gist.github.com/gists/219223.txt
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
DEPRECATION WARNING: require "activerecord" is deprecated and will be removed in Rails 3. Use require "active_record" instead.. (called from /var/lib/gems/1.8/gems/activerecord-2.3.5/lib/activerecord.rb:2)
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/validations.rb:381: warning: `*' interpreted as argument prefix
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/validations.rb:29: warning: method redefined; discarding old message
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/dirty.rb:40: warning: `*' interpreted as argument prefix
/var/lib/gems/1.8/gems/activerecord-2.3.5/lib/active_record/callbacks.rb:228: warning: `*' interpreted as argument prefix
@siebertm
siebertm / gist:192658
Last active September 19, 2024 10:50
sample fake names for filling your fake databases during software development. Any relation to real people is a coincidence!
This file has been truncated, but you can view the full file.
GivenName,Surname,StreetAddress,City,ZipCode,EmailAddress,TelephoneNumber
Karolin,Gottlieb,Am Borsigturm 61,Dormagen Zons,41541,[email protected],02133 01 62 83
Philipp,Schaefer,Schmarjestrasse 82,Bahnitz,14715,[email protected],033870 32 38
Claudia,Maurer,Wallstrasse 72,Hammerstein,56598,[email protected],02635 99 06 20
Luca,Neustadt,Ellmenreichstrasse 10,Obertrubach,91286,[email protected],09197 39 92 27
Frank,Schmitz,Borstelmannsweg 32,Coburg,96409,[email protected],09561 78 15 75
Ute,Mehler,Flughafenstrasse 59,Weiding,92557,[email protected],09673 12 09 48
Marko,Reiniger,Augsburger Straße 20,Herne,44629,[email protected],02323 95 65 13
Anja,Theissen,Leipziger Straße 78,Zierenberg,34289,[email protected],05606 71 60 26
Franziska,Bürger,Prenzlauer Allee 6,Markkleeberg,04409,Franziska.Bü[email protected],0341 86 02 37
class Post < ActiveRecord::Base
belongs_to :user
end
micha@ms:~$ rvm use 1.9
<i> Switching to ruby 1.9 ...
micha@ms:~$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.7.0]
micha@ms:~$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.3)
micha@ms:~$ rvm use 1.9
<i> Switching to ruby 1.9 ...
micha@ms:~$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin9.7.0]
micha@ms:~$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.3)
rvm use jruby --debug
+ case "$action" in
+ rvm-use jruby
+ implementation=jruby
+ case "$implementation" in
+ version=1.3.1
+ '[' 1.3.1 = 1.2.0 -o 1.3.1 = 1.3.1 ']'
+ MY_RUBY_HOME=/Users/micha/.rvm/jruby-1.3.1
+ GEM_HOME=/Users/micha/.gem/jruby/1.8
+ alias 'ruby_ng=jruby --ng'