Skip to content

Instantly share code, notes, and snippets.

View torkleyy's full-sized avatar

Thomas Schaller torkleyy

  • Wolf GmbH
  • Bavaria, Germany
View GitHub Profile
@torkleyy
torkleyy / mapping.json
Created March 7, 2019 07:07
Mapping from ISO 3166-1 alpha-3 to ISO 639-1 (basic subset)
{
"DEU": "de",
"CHN": "zh",
"GRC": "el",
"EST": "et",
"HRV": "hr",
"LVA": "lv",
"LTU": "lt",
"ROU": "ro",
"ITA": "it",

Keybase proof

I hereby claim:

  • I am torkleyy on github.
  • I am torkleyy (https://keybase.io/torkleyy) on keybase.
  • I have a public key ASBJCJpHMosVjzd4eE0JLDW2XmLwl_68OSO6JR9-PvbtZwo

To claim this, I am signing this object:

#! /usr/bin/env bash
# Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image.
# (tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image).
#
# This script wipes the disk of the server!
#
# Instructions:
#
# 1. Mount the above mentioned ISO image from the Hetzner Cloud GUI
@torkleyy
torkleyy / sha256.rs
Created November 6, 2021 16:01
Get SHA-256 of a Rust type
// Following crates are needed:
// sha2, serde, bincode
use serde::Serialize;
#[derive(Serialize)]
struct MyType {
// some fields
}