Skip to content

Instantly share code, notes, and snippets.

View kogakure's full-sized avatar
🏠
Working from home

Stefan Imhoff kogakure

🏠
Working from home
View GitHub Profile

ruby-1.9.3-p484 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p484 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@kogakure
kogakure / .slate
Created November 10, 2014 09:22
Slate configuration
# =============================================================================
# Configuration
# =============================================================================
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config windowHintsShowIcons true
@kogakure
kogakure / SassMeister-input.scss
Created February 20, 2015 11:53
Generated by SassMeister.com.
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
@mixin attention($self: false) {
@if($self != false) {
&,
&:hover,
&:active,
@kogakure
kogakure / commit_latest_revisions.py
Created December 9, 2008 17:19
Python: Commits all Git and Git-SVN repositories
#!/usr/env/python
import os
import os.path
from subprocess import call
if __name__ == "__main__":
apps_dir = os.path.abspath('.')
for app_name in os.listdir(apps_dir):
app_dir = os.path.abspath(os.path.join(apps_dir, app_name))
git_path = os.path.join(app_dir, '.git')
@kogakure
kogakure / fabfile.py
Created December 9, 2008 17:50
Python: Fabric (< 0.9) – Server-Backup
#!/usr/bin/python
# -*- coding: utf-8 -*-
from time import *
lt = localtime()
config.fab_hosts = ['server.com'],
config.fab_host = 'server.com',
config.fab_user = 'user',
config.postgres_bin = '/usr/local/pgsql/bin',
@kogakure
kogakure / update_latest_revisions.py
Created December 9, 2008 17:16
Python: Updates Subversion, Git, Mercurial and Bazaar repositories recursive
#!/usr/bin/python
import os
import os.path
from subprocess import call
if __name__ == "__main__":
apps_dir = os.path.abspath('.')
for app_name in os.listdir(apps_dir):
app_dir = os.path.abspath(os.path.join(apps_dir, app_name))
git_path = os.path.join(app_dir, '.git')
@kogakure
kogakure / .gitconfig
Created December 9, 2008 17:25
Git: .gitconfig, .gitignore, .gitk
[user]
name = John Doe
email = john.doe@gmail.com
[core]
excludesfile = /Users/doe/.gitignore
[color]
status = auto
diff = auto
branch = auto
interacitve = auto
@kogakure
kogakure / .hgrc
Created December 9, 2008 17:32
Mercurial: .hgrc
[ui]
username = John Doe <john.doe@gmail.com>
[defaults]
cdiff = -q
[extdiff]
cmd.cdiff = colordiff
opts.cdiff = -uprN
@kogakure
kogakure / delpyc.sh
Created December 9, 2008 17:45
Bash: Delete Python compiled files recursive
#!/bin/bash
find ./ -type f -name "*.pyc" -exec rm -f {} \;
@kogakure
kogakure / pylink.sh
Created December 9, 2008 17:45
Bash: Link Python package into `site-packages`