Skip to content

Instantly share code, notes, and snippets.

View phoet's full-sized avatar
:shipit:
Shippin Stuffs 🚀

Peter Schröder phoet

:shipit:
Shippin Stuffs 🚀
View GitHub Profile
@phoet
phoet / helper.sh
Created January 18, 2012 09:35
bash helper snippets
# find all unique %uXXXX in a log-file
grep "(err)" /var/log/appsse/production.log | grep "%u" | sed 's/.*\(%u.\{4\}\).*/\1/g' | sort | uniq
@phoet
phoet / Gemfile
Created February 21, 2012 19:11
basic cassandra setup
# A sample Gemfile
source "http://rubygems.org"
# gem "rails"
gem 'cassandra'
gem 'thrift_client', '0.7.1'
@phoet
phoet / links.html
Created March 5, 2012 09:48
munin graphs for wlw
@phoet
phoet / Gemfile
Created April 10, 2012 12:31
rails namespace issue
source 'https://rubygems.org'
gem 'rails', '3.2.3'
group :test do
gem "rspec-rails"
end
@phoet
phoet / readme.md
Created July 9, 2012 14:20
Señor Developer Competition at BaRuCo

Ever seen these T-Shirts?

Señor Developer T-Shirt

Want one?

Get one for free at BaRuCo!

If you are an attendee of BaRuCo 2012, you get the chance to win a FREE Señor Developer t-shirt.

@phoet
phoet / gist:3568944
Created September 1, 2012 10:23
OS X you are annoying

once upon a time, OS X was a very usable piece of software...

  • spaces
    • switching between apps on different spaces does not bring focus to that app
    • modal dialogs get lost in a space
    • modal dialogs don't get focused with CMD+TAB
  • keys
    • function-keys and shortcuts are cluttered with MissionControl and other unusable stuff
    • keybord-navigation is broken in so many apps
  • mouse / trackpad
@phoet
phoet / gist:3608368
Created September 3, 2012 10:19
Rails-Anti-Pattern-Buch-Verlosung
1.9.3p125 :003 > %w(@tielefeld @jedbeard @duckdable @gitmonkey @mediafinger @TheAxelerator @titanoboa42 @Stefan_Rohde @benediktdeicke @jkwebs).sample
=> "@mediafinger"
@phoet
phoet / release.rb
Last active October 12, 2015 06:48
jenkins release workflow script
#!/usr/bin/env ruby
# encoding: UTF-8
require 'json'
require 'pry'
class ReleaseError < StandardError; end
class Logger
def self.log(*output)
@phoet
phoet / foreman.dump.txt
Created November 29, 2012 15:25
Foreman Stackdump when running at 100%
Sampling process 27665 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling ruby (pid 27665) every 1 millisecond
Process: ruby [27665]
Path: /Users/uschi/.rvm/rubies/ruby-1.9.3-p286/bin/ruby
Load Address: 0x1014f1000
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [289]
@phoet
phoet / sinnlos.html
Created December 3, 2012 11:54
sinnlose dropdowns
<option value="001">Herr</option>
<option value="002">Frau</option>
<option value="Dr.">Dr.</option>
<option value="Prof.">Prof.</option>
<option value="Dr. Dr.">Dr. Dr.</option>
<option value="Prof. Dr.">Prof. Dr.</option>
<option value="Prof. Dr. Dr.">Prof. Dr. Dr.</option>
<option value="Konsul">Konsul</option>
<option value="Generalkonsul">Generalkonsul</option>