Skip to content

Instantly share code, notes, and snippets.

View rafl's full-sized avatar

Florian Ragwitz rafl

View GitHub Profile
@rafl
rafl / nopaste
Created December 11, 2014 18:35
# for so in $(find -L extlib -type f -name '*.so'); do ldd $so |grep -q 'not found' && echo $so && ldd $so; done
extlib/lib/perl5/x86_64-linux-thread-multi/auto/Net/SSLeay/SSLeay.so: /usr/lib/x86_64-linux-gnu/libssl.so.0.9.8: version `OPENSSL_0.9.8' not found (required by extlib/lib/perl5/x86_64-linux-thread-multi/auto/Net/SSLeay/SSLeay.so)
extlib/lib/perl5/x86_64-linux-thread-multi/auto/Net/SSLeay/SSLeay.so
extlib/lib/perl5/x86_64-linux-thread-multi/auto/Net/SSLeay/SSLeay.so: /usr/lib/x86_64-linux-gnu/libssl.so.0.9.8: version `OPENSSL_0.9.8' not found (required by extlib/lib/perl5/x86_64-linux-thread-multi/auto/Net/SSLeay/SSLeay.so)
linux-vdso.so.1 => (0x00007fff0b5ff000)
libssl.so.0.9.8 => /usr/lib/x86_64-linux-gnu/libssl.so.0.9.8 (0x00007f3f3907c000)
libcrypto.so.0.9.8 => not found
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3f38e64000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3f38ad9000)
libcrypto.so.1.0.0 => /usr/lib/x86_64-linux-gnu
use strict;
use warnings;
my $base = 8;
my %size = (
y => $base + 1,
x => $base * 2 + 1,
);
my $palette = " .o+=*BOX@%&#/^SE";
@rafl
rafl / nopaste
Created September 3, 2013 21:17
Bareword found where operator expected at -e line 1, near "$.bar"
(Missing operator before bar?)
syntax error at -e line 1, near "$.bar
| note_id | revision_number | marker_id | content |
+---------+-----------------+-----------+---------+
| 1 | 1 | 1 | foo |
| 2 | 1 | 1 | bar |
| photo_id | revision_number | marker_id | filename |
+----------+-----------------+-----------+----------+
| 1 | 1 | 1 | foo.jpg |
| 2 | 1 | 1 | bar.jpg |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCchWGpIvLRFZp+RqeoL/IiVZF7OCXkM5npLIKBRiA4y0Eof4jONIFshM3LN0BJGhC2G4Dgz+sF/47x5VhOd/klodhmkbGjORLIvme7AceTJKvKuOa7e67x/tU583Ew54DSpOFPJiNsb9/pCeRIStyooTmIZgtu3YWNOzfJz2YD2gCRUtw2KXrJAnHVxUYEOILEcITBaNYyMR/4TPcyQjBSNzjJfAFfgNAUBEL7vIZYmLIAf+j2mG1KcwZWK5UjWFEvoeeQXnMswAS+/FQeQvcWEN2DY9nWoiSUk67+qYJsKDpH1de4HRKipl76ry7U8HiH2oKIR6Us0QaEpxnW8Y3J
WITH notes AS (
SELECT n.note_id, n.created_by, n.note_content, n.revision_number, t.tag
FROM gphat.marker_notes AS n
LEFT OUTER JOIN gphat.marker_note_tags AS t
ON t.note_id = n.note_id AND t.created_by = n.created_by
WHERE n.marker_id = ? AND n.created_by = ?
), photos AS (
SELECT p.photo_id, p.created_by, mimetype(p.image_content) as mime_type,
p.revision_number, t.tag
FROM gphat.marker_photos AS p
{"phase":1,"error":"timeout","input":"{struct,[{<<\"save_method\">>,<<\"click_save\">>},{<<\"statusDisplayShort\">>,<<\"Sent to Fulfillment\">>},{<<\"return_date\">>,{struct,[{<<\"notes\">>,{struct,[{<<\"external\">>,<<>>},{<<\"internal\">>,<<>>}]}},{<<\"date\">>,<<\"2013/04/12\">>}]}},{<<\"_id\">>,<<\"81DC1590-76D8-11E2-A3E2-30A195B82C6E\">>},{<<\"opportunity_id\">>,<<\"006c0000003MdXCAA0\">>},{<<\"freightTotal\">>,<<\"0\">>},{<<\"opportunity_name\">>,<<\"Bruce Springsteen 2013\">>},{<<\"frequency\">>,<<\"daily\">>},{<<\"consumableTotal\">>,<<\"500000\">>},{<<\"prep_da...\">>,...},...]}","type":"exit","stack":"[{riak_kv_w_reduce,\'-js_runner/1-fun-0-\',3},{riak_kv_w_reduce,reduce,3},{riak_kv_w_reduce,maybe_reduce,2},{riak_pipe_vnode_worker,process_input,3},{riak_pipe_vnode_worker,wait_for_input,2},{gen_fsm,handle_msg,7},{proc_lib,init_p_do_apply,3}]"}
@rafl
rafl / elasticsearch_cache
Created March 22, 2012 16:32
Munin ElasticSearch plugins
#!/usr/bin/env perl
# Parameters supported:
#
# config
# autoconf
#
# Magic markers:
#%# family=auto
#%# capabilities=autoconf
Added EDENC to co-maintainers of Acme::CPANAuthors::German.
Added EDENC to co-maintainers of App::Software::License.
Added EDENC to co-maintainers of Audio::File.
Added EDENC to co-maintainers of Audio::File::AudioProperties.
Added EDENC to co-maintainers of Audio::File::Flac.
hello:
goodbye:
main train station: Hauptbahnhof
airport: Flughafen
thank you: danke
please:
excuse me (I'm sorry for spilling your beer):
excuse me (get out of my way):
excuse me (give me your attention):
one: