Skip to content

Instantly share code, notes, and snippets.

View tboerger's full-sized avatar
:shipit:
Getting mad with crazy stuff

Thomas Boerger tboerger

:shipit:
Getting mad with crazy stuff
  • Cloudpunks GmbH
  • Nuremberg, Germany
  • 06:55 (UTC +02:00)
  • X @tboerger
View GitHub Profile
@tboerger
tboerger / docker-compose.yml
Last active January 10, 2019 11:02
Prometheus HetznerCloud SD documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.6.0
restart: always
ports:
@tboerger
tboerger / docker-compose.yml
Created October 6, 2018 11:08
Hetzner exporter documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.4.3
restart: always
ports:
@tboerger
tboerger / docker-compose.yml
Last active October 6, 2018 11:07
Scaleway exporter documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.4.3
restart: always
ports:
@tboerger
tboerger / docker-compose.yml
Last active October 6, 2018 10:43
HetznerCloud exporter documentation
version: '2'
volumes:
prometheus:
services:
prometheus:
image: prom/prometheus:v2.4.3
restart: always
ports:
diff -ruN litmus-0.13-orig/src/props.c litmus-0.13/src/props.c
--- litmus-0.13-orig/src/props.c 2017-03-24 10:31:12.000000000 +0100
+++ litmus-0.13/src/props.c 2017-03-24 10:33:47.000000000 +0100
@@ -453,28 +453,28 @@
}
/* Test ability to parse and persist Unicode characters above UXFFFF. */
-static int prophighunicode(void)
-{
- PRECOND(prop_ok);
version: '2.1'
volumes:
files:
driver: local
mysql:
driver: local
backup:
driver: local
redis:
04be1009ebe52bd0b3aae1dfa1316fe55345430fd5dca788e67f4200162bea9e28db9d356eb96873223ce2e02249d2e29cbb57b31489b007d674a012571dee9676
diff --git a/go.php b/go.php
index e14d87db..4919520b 100644
--- a/go.php
+++ b/go.php
@@ -46,13 +46,11 @@ $mapping = array(
############# Do not edit below this line #################
-$from = $_GET['to'];
+$from = isset($_GET['to']) ? $_GET['to'] : '';
@tboerger
tboerger / main.go
Created April 30, 2017 16:22
Restapi with mgo ang go gin-gonic
I can't seem to findout how to use go gin-gonic to perform CRUD or GET, PUT and POST with MongoDB
Below is my code, please Kindly assist me
package main
import (
//"encoding/json"
"fmt"
"log"
@tboerger
tboerger / gist:4840e1b5464fc26fbb165b168be23345
Created February 17, 2017 09:37
Golang LDAP search and authentication
package main
import (
"fmt"
"strings"
"gopkg.in/ldap.v2"
)
const (
ldapServer = "ad.example.com:389"