Skip to content

Instantly share code, notes, and snippets.

View needToRoll's full-sized avatar

Florian Bürgi needToRoll

  • Solved Development GmbH
  • Bern, Switzerland
View GitHub Profile
@needToRoll
needToRoll / copy-keys.sh
Created May 9, 2026 00:28
initramfs-hook-key
#!/bin/sh
PREREQ=""
prereqs() { echo "$PREREQ"; }
case $1 in prereqs) prereqs; exit 0;; esac
. /usr/share/initramfs-tools/hook-functions
copy_exec /etc/luks-keys/home.key /etc/luks-keys/home.key
#!/bin/bash
set -e # Exit on any error
set -x
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
import kotlin.math.pow
fun main(args: Array<String>) {
println(solveDay07Part1("07.txt"))
println(solveDay07Part2("07.txt"))
}
val DECK_OF_CARDS = setOf(
'2', '3', '4', '5', '6', '7', '8', '9', 'T', 'J', 'Q', 'K', 'A'
)
@needToRoll
needToRoll / dateStructure_generic.py
Last active January 24, 2022 18:42
Python learning example for teaching eipr
day = 153
month = 17
year = 2023
## Funktioniert für jeden Input
def structureDate(day, month, year):
if len(str(day)) == 1:

Keybase proof

I hereby claim:

  • I am needToRoll on github.
  • I am needtoroll (https://keybase.io/needtoroll) on keybase.
  • I have a public key whose fingerprint is 3AA6 9489 80C6 9FF9 40EE 7A3E 8410 09CE F5A0 A2B3

To claim this, I am signing this object:

{
"id": 1,
"value": 5.0,
"weight": 2.0,
"groupId": 1
}
spring.profiles: development
spring.profiles.include:
- load_test_data
- disable_auth_filter
- basic_auth_security_mock
- h2_database_with_console
---