Skip to content

Instantly share code, notes, and snippets.

View hiddebraun's full-sized avatar

Hidde Braun hiddebraun

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hiddebraun on github.
  • I am hitje (https://keybase.io/hitje) on keybase.
  • I have a public key ASBCvfd-K0DkALGzy1cCAHij4dD4rLyB2jMnaljeMkowxAo

To claim this, I am signing this object:

@hiddebraun
hiddebraun / start.sh
Created February 14, 2017 08:47
Start and Stop scripts for Elasticsearch and Kibana
#!/bin/bash
CWD=`pwd`
ES_BIN="$CWD/es/bin/elasticsearch"
KIBANA_BIN="$CWD/kibana/bin/kibana"
echo "Starting Elastic Search"
$ES_BIN -d
echo "Starting Kibana"
$KIBANA_BIN -Q &
@hiddebraun
hiddebraun / convert.php
Created November 13, 2015 12:39
Fit existing small PDF to A4 with PDFLib
<?php
$outfile = "";
$p = new PDFLib();
if ($p->begin_document($outfile, "") == 0)
throw new Exception("Error: " . $p->get_errmsg());
$indoc = $p->open_pdi_document('label.pdf','');
if ($indoc == 0)