Skip to content

Instantly share code, notes, and snippets.

@bebna
bebna / english.md
Last active March 12, 2020 09:33
The most important differences between Covid-19, cold and flu.
Symptoms Covid-19 cold flu
Fever frequently rarely frequently
Fatigue sometimes sometimes frequently
Cough frequently (dry) few frequently (dry)
Sneezing no frequently no
Limb pain sometimes frequently frequently
Sniffles rarely frequently sometimes
Sore throat sometimes frequently sometimes
Diarrhoea rarely no sometimes (kids)
@bebna
bebna / compare_oneliners.sh
Last active February 20, 2020 17:09
oneliner compare 3
#!/bin/env bash
#columns=$(( ( RANDOM % 10 ) + 2 ))
columns=3
# create file
tmpfile_dict=$(mktemp /tmp/compare_oneliners_dict.XXXXXX)
tmpfile_time=$(mktemp /tmp/compare_oneliners_time.XXXXXX)
for i in {1..5}; do
shuf /usr/share/dict/ngerman >> $tmpfile_dict;
@bebna
bebna / compare_oneliners.sh
Last active February 20, 2020 15:04
oneliner compare 2
#!/bin/env bash
#columns=$(( ( RANDOM % 10 ) + 2 ))
columns=3
# create file
tmpfile_dict=$(mktemp /tmp/compare_oneliners_dict.XXXXXX)
#tmpfile_time=$(mktemp /tmp/compare_oneliners_time.XXXXXX)
for i in {1..5}; do
shuf /usr/share/dict/ngerman >> $tmpfile_dict;
@bebna
bebna / compare_oneliners.sh
Last active February 20, 2020 13:21
one liner comp
#!/bin/env bash
# create file
tmpfile_dict=$(mktemp /tmp/compare_oneliners_dict.XXXXXX)
#tmpfile_time=$(mktemp /tmp/compare_oneliners_time.XXXXXX)
for i in {1..5}; do
shuf /usr/share/dict/ngerman >> $tmpfile_dict;
done
@bebna
bebna / docker-compose.yml
Created July 6, 2018 12:07
php config via env variabels docker
version: '3.1'
services:
joomla:
image: php
restart: always
environment:
PHP_MEMORY_LIMIT: 512M
PHP_MAX_EXECUTION_TIME: 180
volumes:
Ziel Anfang Ende Werktage Ort
2016
FrOSCon 20.08.16 21.08.16 0 Sankt Augustin
mmrcd 02.09.16 04.09.16 1 Darmstadt
Kieler Linux Tage 16.09.16 17.09.16 1 Kiel
Hackover 50 07.10.16 09.10.16 1 Hannover
Datenspuren 22.10.16 23.10.16 0 Dresden
OpenReinRuhr 05.11.16 06.11.16 0 Oberhausen
33C3 27.12.16 30.12.16 4 Hamburg
2017
@bebna
bebna / openpgp.txt
Created June 28, 2016 12:08
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:db1a22c68e780f1e31d52762379a35452ccb34c3]
!! drop in Solarized colorscheme for Xresources/Xdefaults
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB
!!--------- ------- ---- ------- ----------- ---------- ----------- -----------
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63
!!base2 #eee8d5 7/7 white 254 #e4e4e4 92 -00 10 238 232 213 44 11 93

Keybase proof

I hereby claim:

  • I am bebna on github.
  • I am bebna (https://keybase.io/bebna) on keybase.
  • I have a public key whose fingerprint is DB1A 22C6 8E78 0F1E 31D5 2762 379A 3545 2CCB 34C3

To claim this, I am signing this object:

@bebna
bebna / server__api__api.go
Created April 20, 2015 09:46
Basic golang HTTP server test skeleton, __ means / in file names
package api
import (
"fmt"
"net/http"
)
type Handler struct{}
func (handler *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {