Skip to content

Instantly share code, notes, and snippets.

View mediafinger's full-sized avatar
🏠
In Köln

Andreas Finger mediafinger

🏠
In Köln
View GitHub Profile
@mediafinger
mediafinger / patch_ruby_1.9.3_for_rbfu.sh
Created February 14, 2012 22:15
There are some nice performance patches for Ruby 1.9.3-p0 and some scripts to install them for rbenv and rvm. As I am using rbfu (by @hmans), I adapted the rbenv script a bit.
VERSION="1.9.3-p0"
curl https://raw.github.com/gist/1688857/2-$VERSION-patched.sh > /tmp/$VERSION-patch
ruby-build /tmp/$VERSION-patch $HOME/.rbfu/rubies/1.9-patch
@mediafinger
mediafinger / gist:6102751
Last active December 20, 2015 08:48
Replace multiple selection while preserving the case

Hey Sublime users,

add this to you key bindings:

{ "keys": ["super+m"], "command": "show_panel", "args": {"panel": "replace", "in_selection": true, "preserve_case": true, "regex": false, "highlight": true} }
  • Select all he occurrences of a word you want to replace with CMD+D
  • CMD+M (or whichever shortcut you chose for this new command)
@mediafinger
mediafinger / 1.9.3-p484-railsexpress
Created November 25, 2013 09:54
ruby-build script to install ruby 1.9.3-p484 with @skaes railsexpress patch
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/1.9.3/p484/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz#36c852831d02cf90508c29852361d01b"
install_package "ruby-1.9.3-p484" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz#8ac0dee72fe12d75c8b2d0ef5d0c2968" patch_ruby_railsexpress autoconf standard
@mediafinger
mediafinger / 2.1.0-p0-railsexpress
Created January 3, 2014 16:36
Install ruby-2.1.0-p0-railsexpress
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.1.0/p0/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.1.0" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz#9e6386d53f5200a3e7069107405b93f7" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
[user]
name = "Your Name"
email = "Your Email"
[github]
user = yourusername
[alias]
st = status
co = checkout
b = branch
com = !git add . && git commit -am
@mediafinger
mediafinger / 2.1.0-p27-railsexpress
Last active August 29, 2015 13:57
2.1.0-p27-railsexpress
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/01-current-2.1.1-fixes.patch
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/02-zero-broken-tests.patch
patch -p1 < rvm-patchsets/patches/ruby/2.1.0/railsexpress/03-improve-gc-stats.patch

Keybase proof

I hereby claim:

  • I am mediafinger on github.
  • I am finger (https://keybase.io/finger) on keybase.
  • I have a public key whose fingerprint is 82FC 37CB 6954 F4D1 CCD0 DF7C 8CDB F19E 6E80 61A1

To claim this, I am signing this object:

@mediafinger
mediafinger / 2.1.3-railsexpress
Last active August 29, 2015 14:05
Install Ruby 2.1.3 with railsexpress patchset for rbfu - just run `install-railsexpress`
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.1.3/railsexpress/* ; do
patch -p1 < $p
done
@mediafinger
mediafinger / barcelona_2015.html
Created October 29, 2014 14:41
The Rails Girls Homepage for Barcelona 2015
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Add your city name, dates and year. -->
<title>Barcelona January 2015</title>
<!-- Write a metatext. This is what will show on the Facebook page and for instance search engines. -->
@mediafinger
mediafinger / 2.1.5-railsexpress
Created December 4, 2014 15:38
Install Ruby 2.1.5 with skaes' railsexpress patchset with ruby-build - just run `install-railsexpress` for chruby (otherwise change install directory first)
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.1.5/railsexpress/* ; do
patch -p1 < $p
done