I hereby claim:
- I am b10m on github.
- I am b10m (https://keybase.io/b10m) on keybase.
- I have a public key whose fingerprint is 8D40 C460 B102 E684 D24A 4449 BAC0 170E 5A07 F801
To claim this, I am signing this object:
use strict; | |
use Config::Simple; | |
use Crypt::Rijndael; | |
use Gearman::Client; | |
use MIME::Base64; | |
use POE; | |
use POE::Component::Server::NSCA; | |
my $c = Config::Simple->new('/etc/nagios/nsca2gearman.cfg.erb') or die Config::Simple->error(); | |
my $cipher = Crypt::Rijndael->new($c->param('gearman'), Crypt::Rijndael::MODE_ECB()); |
<VirtualHost *:80> | |
ServerName www.flickr.com | |
SSLProxyEngine On | |
ProxyPass / https://www.flickr.com/ | |
CustomLog /var/log/apache2/flickr-access combined | |
ErrorLog /var/log/apache2/flickr-error | |
</VirtualHost> |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/perl | |
use strict; | |
use LWP::Simple qw( get ); | |
use XML::Simple qw( XMLin ); | |
use Nagios::Plugin; | |
use Net::Graphite; | |
my $np = Nagios::Plugin->new; | |
$np->set_thresholds(ok => '~:900', warning => '@800:900', critical => '799:'); |
use strict; | |
use LWP::UserAgent; | |
my $url = 'https://webauthentication.hogent.be/login.html'; | |
my @passwords = qw( insert passwords here o_O ); | |
my $ua = LWP::UserAgent->new(); | |
for( my $i = 0; $i < @passwords; $i++) { | |
my $user = sprintf("hgguest%02d", $i+1); |
menno@samael:~$ curl 'https://api.linode.com/?api_key=abc123&api_action=test.echo&api_responseFormat=json' | |
{"ERRORARRAY":[{"ERRORCODE":4,"ERRORMESSAGE":"Authentication failed"}],"DATA":{},"ACTION":"test.echo"} | |
menno@samael:~$ curl -s 'https://api.linode.com/?api_key=abc123&api_action=test.echo&api_responseFormat=json' | python -mjson.tool | |
{ | |
"ACTION": "test.echo", | |
"DATA": {}, | |
"ERRORARRAY": [ | |
{ | |
"ERRORCODE": 4, |
#!/usr/bin/perl | |
use DateTime; | |
use Mojo::UserAgent; | |
my $price = | |
Mojo::UserAgent->new | |
->get( 'http://www.ah.nl/appie/producten?rq=Gauloises+Blondes+Blue' ) | |
->res->dom->find("p.price")->first->all_text; | |
$price =~ s/[^0-9\.]//g; |
$ perl -MMojo::UserAgent -le 'Mojo::UserAgent->new->detect_proxy | |
->get("http://en.wikipedia.org/wiki/Chart_of_English_animal_nouns") | |
->res->dom->find("table.wikitable tr td a") | |
->shuffle->slice(0..2)->each(sub { print $_->text } );' |