Skip to content

Instantly share code, notes, and snippets.

@hatorikibble
hatorikibble / main.go
Created March 7, 2017 09:00
healthchecker in golang
package main
import (
"flag"
"fmt"
"net/http"
"os"
)
func main() {
@hatorikibble
hatorikibble / gist:6b3d937cd447f617f9a0
Created November 30, 2015 20:25
Testcase for $dbh->quote_identifier with special column names
#!/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;

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 March 5, 2015 12:10
Moose modify 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 October 26, 2014 17:02
Create a Top 10 list of your tweets
#/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 September 22, 2012 17:53
Beispiel fuer eine SQL-Abfrage mit DBD::CSV auf eine CSV-Datei
#!/usr/bin/env perl
use strict;
use warnings;
use DBD::CSV;
use Data::Dumper;
# DBD::CSV normiert die Spaltennamen
my @programme =