Skip to content

Instantly share code, notes, and snippets.

View dennisreimann's full-sized avatar
still hungry. still foolish.

d11n dennisreimann

still hungry. still foolish.
View GitHub Profile
@dennisreimann
dennisreimann / changelog
Created November 20, 2013 21:10
CHANGELOG generator
#!/usr/bin/env ruby
#
# CHANGELOG generator
#
# Usage:
#
# $ changelog [SINCE UNTIL]
#
# This script collects git commits from a given range (SINCE and UNTIL
# are optional refs, SINCE defaults to the last tag, UNTIL to HEAD).
@dennisreimann
dennisreimann / gist:5556707
Created May 10, 2013 19:16
Nothing to see, move along....
Test
@dennisreimann
dennisreimann / delete_contact_notes.scpt
Last active October 11, 2015 15:38
AppleScript snippet to delete contact notes in Address Book
tell application "Address Book"
activate
set thePeople to selection
repeat with thePerson in thePeople
set note of thePerson to ""
end repeat
save
end tell
@dennisreimann
dennisreimann / .htaccess
Created September 6, 2012 14:30
Uberspace htaccess for Rails apps
RewriteEngine On
RewriteBase /
# ensure the browser supports gzip encoding
RewriteCond %{HTTP:Accept-Encoding} \b(x-)?gzip\b
RewriteCond %{REQUEST_FILENAME}.gz -s
RewriteRule ^(.+) $1.gz [L]
# ensure correct Content-Type and add encoding header
<FilesMatch \.css\.gz$>
@dennisreimann
dennisreimann / plopp.rb
Created July 23, 2012 14:04 — forked from halfbyte/ploppconvert.rb
ploppcast conversion
#!/usr/bin/env ruby
# dependencies:
# - ffmpeg (`brew install ffmpeg`)
puts "Usage: plopp DIR" and exit unless dir = ARGV[0]
Dir["#{dir}/*.mov"].each do |input|
output = File.basename(input, '.mov')
system "ffmpeg -i '#{input}' -map 0:0 -vn -acodec copy #{output}-1.m4a -map 0:1 -vn -acodec copy #{output}-2.m4a"
@dennisreimann
dennisreimann / manifesto.md
Created April 23, 2012 18:42 — forked from hmans/whatever-manifesto.md
The Manifesto

THE MANIFESTO

Whatever it is that you choose to do, follow these two simple rules:

  1. Be friendly.
  2. Have fun.
@dennisreimann
dennisreimann / my.zsh-theme
Created March 22, 2012 21:44
My ZSH theme, mix of various other themes, standing on the shoulders of clever people
autoload -U colors && colors
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green}●'
zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' enable git
theme_precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
@dennisreimann
dennisreimann / manual_passenger_nginx.sh
Created December 6, 2011 13:57
Manual Nginx installation via Passenger
# download and untar nginx
wget -O /tmp/nginx.tar.gz http://www.nginx.org/download/nginx-1.0.11.tar.gz
tar xzvf /tmp/nginx.tar.gz
rm /tmp/nginx.tar.gz
# download and untar extra modules
wget -O /tmp/nginx-echo-module.tar.gz https://github.com/agentzh/echo-nginx-module/tarball/v0.38rc1
tar xzvf /tmp/nginx-echo-module.tar.gz
rm /tmp/nginx-echo-module.tar.gz
@dennisreimann
dennisreimann / rails-app-template.rb
Created February 28, 2011 22:37
My template for generating new rails apps
# Helpers
def git_update(message)
git :add => ".", :commit => "-m '#{message}'"
end
def git_remove(file)
git :rm => file
end
@dennisreimann
dennisreimann / devise.de.yml
Created February 28, 2011 20:59
German locale file for the devise gem
de:
errors:
messages:
not_found: "nicht gefunden"
already_confirmed: "wurde bereits bestätigt"
not_locked: "war nicht gesperrt"
devise:
omniauth_callbacks:
success: 'Sie wurden erfolgreich eingeloggt.'