Skip to content

Instantly share code, notes, and snippets.

View bsingr's full-sized avatar

bsingr

  • @coliquio - former Sophos, Git Tower, Inovex, 1&1
  • Lake Constance, Germany
View GitHub Profile
@bsingr
bsingr / http.go
Last active May 10, 2017 15:13
java-verify-ssl certificates
package main
import (
"log"
"net/http"
)
func main() {
_, err := http.Get("https://golang.org/")
if err != nil {
@bsingr
bsingr / after_ctrl_c.sh
Created April 24, 2017 06:23
MSpanList_Insert fatal error on osx-sierra 10.12.4 with go
^C
failed MSpanList_Insert 0x2d5000 0xa6f03008469 0x0
fatal error: MSpanList_Insert
runtime stack:
runtime.throw(0x278a4b)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/panic.go:491 +0xad fp=0x7fff5fbff220 sp=0x7fff5fbff1f0
runtime.MSpanList_Insert(0x297e48, 0x2d5000)
/usr/local/Cellar/go/1.4.2/libexec/src/runtime/mheap.c:692 +0x8f fp=0x7fff5fbff248 sp=0x7fff5fbff220
MHeap_FreeSpanLocked(0x294a40, 0x2d5000, 0x100)
@bsingr
bsingr / LICENSE.txt
Last active December 6, 2024 16:54
http json echo server written in python3
Copyright (c) 2016 Jens Bissinger
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@bsingr
bsingr / README.md
Last active March 2, 2016 08:53
Testsetup nginx php sessid for teeproxy shadowing

Run

Backend

nginx -c `pwd`/nginx.conf

Frontend

git clone https://github.com/bsingr/teeproxy

@bsingr
bsingr / nginx.conf
Last active October 23, 2023 05:46
Shadow traffic duplication reverse proxy
daemon off;
error_log /dev/stderr warn;
worker_processes 4;
events {
worker_connections 1024;
multi_accept on;
}
@bsingr
bsingr / browser.txt
Last active February 16, 2016 09:46
DNS Change
# Chrome
chrome://net-internals/#dns
# Firefox
about:config
@bsingr
bsingr / raspberry.sh
Last active February 19, 2016 08:51
Install Raspbian
#!/bin/bash
# login user=pi pass=raspberry
sudo su
# apt-get update
# apt-get install -y --no-install-recommends parted
parted # resize to full disk
@bsingr
bsingr / list_users.sh
Last active January 18, 2016 15:26
List all users in the filesystem
#!/bin/bash
# users
find -printf "%u\n" | sort | uniq -c
# groups
find -printf "%g\n" | sort | uniq -c
@bsingr
bsingr / default.vcl
Created January 16, 2016 17:52
varnish 4 caching backend with basic-auth
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
@bsingr
bsingr / client-example.js
Created December 18, 2014 18:01
hibiscus xmlrpc nodejs client example
// call the hibiscus xml rpc from nodejs
// see http://www.willuhn.de/wiki/doku.php?id=develop:xmlrpc#xml-rpc-aufrufe_im_detail
// install:
// npm install --save xmlrpc underscore
// run:
// node client-example.js
var xmlrpc = require('xmlrpc'),