Skip to content

Instantly share code, notes, and snippets.

View pxlpnk's full-sized avatar
💭
🧑‍🏭

Andreas Tiefenthaler pxlpnk

💭
🧑‍🏭
View GitHub Profile
"Even though the UNIX system introduces a number of innovative programs and techniques, no single program or idea makes it work well.
Instead, what makes it effective is the approach to programming, a philosophy of using the computer.
Although that philosophy can't be written down in a single sentence, at its heart is the idea that the power of a system comes more from the relationships among programs than from the programs themselves.
Many UNIX programs do quite trivial things in isolation, but, combined with other programs, become general and useful tools."
B. W. Kernighan and R. Pike - The Unix Programming Environment - 1984
@pxlpnk
pxlpnk / keybase.md
Last active October 11, 2018 07:35
keybase.md

Keybase proof

I hereby claim:

  • I am pxlpnk on github.
  • I am pxlpnk (https://keybase.io/pxlpnk) on keybase.
  • I have a public key ASCNYvk8o9WcyvrRWHOlI-4bdfvkTHsk0h0jvpsUJTnwZAo

To claim this, I am signing this object:

We meet on 05.03.2014 at 20:00 CET at
Yorkstrasse 22Ecke Möckernstrasse
10965 Berlin
in the nice and cosy trinidad cuisine!
http://trinidad-cuisine.de/
http://doodle.com/85pehbi39suhdtcw
Please be on time and be hungry!
@pxlpnk
pxlpnk / have_xml.rb
Last active December 26, 2015 22:29
rexml xpath matcher for rspec
# cheap mans xpath matcher
# inspired by: https://gist.github.com/faun/4279964
RSpec::Matchers.define :have_xml do |xpath, text|
match do |body|
doc = REXML::Document.new(body)
nodes = REXML::XPath.match(doc, xpath)
if text
nodes.each do |node|
node.content.should == text
end
{
:key1 => {
:key3 => {
:not_always_there => 'yay'
},
},
:key2 => {
:key3 => "yolo"
}
}
@pxlpnk
pxlpnk / vienna-rb_talk.md
Last active December 25, 2015 23:09
Lightning talk at the DevFest 2013.

Introducing vienna.rb

What is vienna.rb

User group meetly meetups with talks, drinks and social interaction. We have a diverse selection of topics and people

@pxlpnk
pxlpnk / gist:7023731
Created October 17, 2013 12:06
list AAAAAAALLLL the gems!
abstract_type (0.0.6)
actionmailer (4.0.0, 3.2.13)
actionpack (4.0.0, 3.2.13)
activemodel (4.0.0, 3.2.13)
activerecord (4.0.0, 3.2.13)
activerecord-deprecated_finders (1.0.3)
activerecord-import (0.3.1)
activerecord-postgresql-adapter (0.0.1)
activeresource (3.2.13)
activesupport (4.0.0, 3.2.13)
@pxlpnk
pxlpnk / gist:7007745
Last active December 25, 2015 16:39
__FILE__ == $0 with symlinks?
~❯ ls -lah
total 8.0K
drwxr-xr-x 4 at 136 Oct 16 15:26 .
drwxr-xr-x 16 at 544 Oct 16 15:22 ..
-rw-r--r-- 1 at 86 Oct 16 15:26 luke.rb
lrwxr-xr-x 1 at 7 Oct 16 15:26 yoda.rb -> luke.rb
~❯ cat luke.rb
p [__FILE__, $0]
if __FILE__ == $0
puts '__FILE__ == $0'