Skip to content

Instantly share code, notes, and snippets.

View langfingaz's full-sized avatar

Daniel Langbein langfingaz

View GitHub Profile
@gea0
gea0 / arch-rpi-64-full-disk-encryption-ssh-unlock.md
Last active March 24, 2024 14:36
Tutorial for installing a 64-bit Arch Linux ARM system on the Raspberry Pi 3B+, with an encrypted root filesystem, and the option to remotely unlock it via a pre-boot SSH daemon.

Arch Linux ARM 64 on Raspberry Pi 3 B+ With Full Disk Encryption And SSH Unlock: 2018 Edition

There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.

Differences to the 32-bit arch linux arm version:

  • probably better performance
  • can run 64-bit software
  • comes without the proprietary video-driver blobs
@i3v
i3v / cdm_fio.sh
Last active May 15, 2024 13:10
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
@erictapen
erictapen / eduroam.nix
Created February 14, 2019 19:48
My NixOS module for the eduroam at FH Potsdam
{ config, pkgs, ... }:{
networking.wireless = {
enable = true;
userControlled.enable = true;
networks = {
eduroam =
let
# define an awk script, that cuts one certificate out of the
# ca-bundle.crt file
@Rmano
Rmano / xopp-relativize.py
Created March 10, 2021 13:09
Small'n'dirty script to remove the path of the background file in .xopp (xournalpp)
#! /usr/bin/env python3
# -*- coding: utf8 -*-
#
import sys
import os
import re
import argparse
import gzip
@acrylic-style
acrylic-style / root-password-MariaDB-docker-compose.md
Last active September 28, 2022 14:37 — forked from rordi/root-password-MariaDB-docker-compose.md
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack: