Skip to content

Instantly share code, notes, and snippets.

View morphy2k's full-sized avatar

Markus Wiegand morphy2k

View GitHub Profile
@morphy2k
morphy2k / kube-cloud-init.yaml
Last active July 20, 2025 03:18
Cloud Init config for Kubernetes node with private network (Ubuntu 22.04 LTS)
#cloud-config
package_update: true
package_upgrade: true
package_reboot_if_required: true
packages:
- gnupg2
- software-properties-common
- apt-transport-https
@morphy2k
morphy2k / armor-damage.md
Last active April 2, 2021 02:39
Tarkov Ammunition Statistics

Armor Damage Statistics

Average armor damage against armor classes

Format: MEAN (STDDEV)

name caliber class1 class2 class3 class4 class5 class6
366 AP .366 TKM 10.2 (0.0) 9.4 (0.0) 13.5 (0.0) 12.8 (0.0) 12.0 (0.0) 11.6 (0.0)
EKO .366 TKM 4.9 (0.0) 4.5 (0.0) 6.4 (0.0) 5.1 (0.0) 4.1 (0.0) 3.9 (0.0)
package main
import (
"fmt"
"strings"
)
func kebabToCamel(kebab string) string {
var camel string
@morphy2k
morphy2k / example.nginxconf
Last active June 4, 2019 22:04
NGINX template - Modern and strong SSL config
## For NGINX >=v1.16 and OpenSSL >=1.1.1 with Letsencrypt ##
### HTTPS redirect
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name *.example.com;
return 301 https://$host$request_uri;

Keybase proof

I hereby claim:

  • I am Morphy2k on github.
  • I am morphy2k (https://keybase.io/morphy2k) on keybase.
  • I have a public key whose fingerprint is DE48 B176 DF12 57E3 1FDE EBDA 2228 F442 74D0 284F

To claim this, I am signing this object:

@morphy2k
morphy2k / authentication.js
Last active July 18, 2017 23:22
Very simple and modern NodeJS user authentication script with hash function
'use strict';
// VERY SIMPLE NODEJS USER AUTHENTICATION
// Author: Morphy2k (markus.wiegand@outlook.com)
// Created: Di 18. Jul 00:50:18 CEST 2017
// Last update: Mi 19. Jul 01:18:44 CEST 2017
// *** NodeJS v7.6 or higher required ***
const createHmac = require('crypto').createHmac;