Skip to content

Instantly share code, notes, and snippets.

View Hasnep's full-sized avatar
🦦

Hannes Hasnep

🦦
View GitHub Profile
const fs = require("fs");
const numberToLetters = (num) => {
let letters = "";
while (num >= 0) {
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"[num % 26] + letters;
num = Math.floor(num / 26) - 1;
}
return letters;
};
users.users.hannes = {
isNormalUser = true;
extraGroups = ["wheel"];
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFLnJfxLDy7PgM2UJUk2H0TkwTqSuOGUJE9zoGmi8LOm"];
};
services.openssh = {
enable = true;
settings={
PasswordAuthentication = false;
@Hasnep
Hasnep / _resticprofile.toml
Last active August 31, 2023 03:07
Resticprofile setup
[global]
password-file = "password.txt"
[global.backup]
exclude-file = "excludes.txt"
exclude-if-present = ".resticignore"
schedule-permission = "user"
schedule-lock-wait = "1h"
[global.retention]
@Hasnep
Hasnep / resume.json
Last active February 10, 2023 08:05
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"email": "h@nnes.dev",
"label": "Data Engineer",
"location": {
"city": "New Taipei CIty",
"countryCode": "TW"
},
"name": "Johannes Smit",
@Hasnep
Hasnep / RaguseaMeatWashingSurveyResponsesRaw.csv
Created January 30, 2022 16:10
RaguseaMeatWashingSurveyResponsesRaw
We can't make this file beautiful and searchable because it's too large.
Timestamp,Do you prepare meat for yourself or others ?,What is your current age? ,What is your gender ? (Self-describe using 'other.'),Identify your country or territory of origin,Identify your current country or territory of residency,Current U.S. state of residence ,"What is your ""race""? (Categories are those used by the U.S. Census Bureau — check all that apply.)","Are you of Hispanic, Latino, or Spanish origin?",How often do you prepare a meal in your household?,How many people are in your household?,How important is food safety to you when you cook?,"Which of the following do you do regularly when cooking, preparing and consuming food products? (Check all that apply)","Before you begin to prepare food in your kitchen, how often do you wash your hands with soap and warm water for at least 20 seconds?",Please indicate how often you do each of the following [Use different plates for handling raw meat and cooked meat],"Please indicate how often you do each of the following [Use a food thermometer to check
@Hasnep
Hasnep / example.txt
Created October 11, 2021 12:05
Unicode test file
C0 Controls and Basic Latin U+0000 – U+007F (0–127)
! 5 A a
C1 Controls and Latin–1 Supplement U+0080 – U+00FF (128–255)
¥ ¼ Ñ ñ
Latin Extended-A U+0100 – U+017F (256–383)
Ą ą IJ ij
Latin Extended-B U+0180 – U+024F (384–591)
Ə Ɛ ƕ ƺ
IPA Extensions U+0250 – U+02AF (592–687)
ɖ ɞ ɫ ɷ