Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Mayr hatorikibble

  • Köln
View GitHub Profile
@hatorikibble
hatorikibble / main.go
Created Mar 7, 2017
healthchecker in golang
View main.go
package main
import (
"flag"
"fmt"
"net/http"
"os"
)
func main() {
@hatorikibble
hatorikibble / gist:6b3d937cd447f617f9a0
Created Nov 30, 2015
Testcase for $dbh->quote_identifier with special column names
View gist:6b3d937cd447f617f9a0
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
use DBI;
use File::Temp qw/ tempfile /;
use Test::More tests => 3;
use Try::Tiny;
View keybase.md

Keybase proof

I hereby claim:

  • I am hatorikibble on github.
  • I am hatorikibble (https://keybase.io/hatorikibble) on keybase.
  • I have a public key whose fingerprint is 3F36 BD00 0A2B 5752 C021 7028 802C CB76 0503 5905

To claim this, I am signing this object:

@hatorikibble
hatorikibble / moose parameters
Created Mar 5, 2015
Moose modify parameters
View moose parameters
package Info2FLRequest;
use namespace::autoclean;
use MooseX::App::Simple;
use Moose::Util::TypeConstraints;
has 'sigelnb' => ( is => 'rw', isa => 'Str');
@hatorikibble
hatorikibble / tweets_topten
Created Oct 26, 2014
Create a Top 10 list of your tweets
View tweets_topten
#/usr/bin/env perl
use strict;
use warnings;
use Text::xSV;
my $file = "tweet_activity_metrics.csv";
my $csv = new Text::xSV;
my $i = 0;
@hatorikibble
hatorikibble / dbd_beispiel
Created Sep 22, 2012
Beispiel fuer eine SQL-Abfrage mit DBD::CSV auf eine CSV-Datei
View dbd_beispiel
#!/usr/bin/env perl
use strict;
use warnings;
use DBD::CSV;
use Data::Dumper;
# DBD::CSV normiert die Spaltennamen
my @programme =