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 / gist:6021600
Created July 17, 2013 15:23
deutsche blacklist
[
"schiss",
"schiß",
"schlamm",
"schlampe",
"schleim",
"schließm",
"schlitz",
"schlong",
"schluck",
@phoet
phoet / init
Last active December 19, 2015 13:59
OMG Rails4!
#! /usr/bin/env ruby
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'computering', github: 'phoet/computering'
GEMFILE
system 'bundle'
end
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@phoet
phoet / ottawa_owned_by_crazy_german_software_engineer.md
Last active December 18, 2015 05:59
drinks, food and other useful stuff in ottawa

I'm now working as as Software Developer at Shopify and this is the list of places I visited in Ottawa.

Food & Drinks

Fastfood

@phoet
phoet / 1.9.3
Last active December 17, 2015 17:19
HTTPClient Ruby 2.0.0 linebreaks and encoding problem
1.9.3-p392:
require 'httpclient'
File.open('blupp.json', 'w') { |file| file.write(HTTPClient.new.get('http://picasaweb.google.com/data/feed/base/user/phoet6/?alt=json', follow_redirect: true).content)}
=> 174217
{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$media":"http://search.yahoo.com/mrss/","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","xmlns$gml":"http://www.opengis.net/gml","xmlns$georss":"http://www.georss.org/georss","id":{"$t":"http://picasaweb.google.com/data/feed/base/user/phoet6"},"updated":{"$t":"2013-05-13T21:13:08.361Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/photos/2007#user"}],"title":{"$t":"Peter Schröder's Photo Gallery","type":"text"},"subtitle":{"$t":"","type":"text"},"icon":{"$t":"http://lh4.ggpht.com/-92-Sa2CMQdc/AAAAAAAAAAI/AAAAAAAAAAA/drlgH21pHbk/s64-c/105552962753029032136.jpg"},"link":[{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href
@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>
@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 / 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 / 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 / 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