Skip to content

Instantly share code, notes, and snippets.

View benhubert's full-sized avatar

Benjamin Hubert benhubert

View GitHub Profile
@benhubert
benhubert / archlinuxarm-rpi3-cheatsheet.md
Last active April 3, 2025 18:02
Chat Sheet for ArchlinuxARM installation on Raspberry Pi 3

ArchlinuxARM Cheat Sheet

Default credentials:

  • alarm / alarm
  • root / root

Basic setup with btrfs

The following setup requires qemu-arm-static and arch-chroot to be installed on the system where the SD card is prepared. So, start with

@benhubert
benhubert / install-archlinux-on-rock-pi-4.md
Created April 27, 2019 17:41
Install ArchLinuxARM on Rock Pi 4 (not working)

Installing Archlinux on Rock Pi 4

Does not work. This is just a documentation of my results, what I found out and what might be a good starting point for someone else, trying the same thing. Hope it helps.

https://www.armbian.com/rock-pi-4/

Useful links

@benhubert
benhubert / generate-phrase-4096.sh
Created April 28, 2019 19:27
Generate passphrase of 4096 characters
head -c 409600 /dev/urandom | tr -dc 'A-Za-z0-9!"#$%&\'\\\'\'()*+,-./:;<=>?@[\\]^_`{|}~' | head -c 4096
@benhubert
benhubert / 00-docker-shorewall.md
Created July 6, 2019 20:50 — forked from lukasnellen/00-docker-shorewall.md
setup shorewall for docker networking beyond the default bridge network, e.g., for docker-compose

Docker(-compose) with shorewall

The shorewall documentation explains in http://shorewall.org/Docker.html how to configure shorewall for use with docker. The problem with the configuration is that it only allows connections from the host to the main bridge docker0. Connections to other networks on dynamically created bridges, with names starting by default with br-, is blocked. Instead of the recommended contents of /etc/shorewall/interfaces, use wild-card interface names as follows:

#ZONE	INTERFACE	OPTIONS
#dock	docker0		bridge     # disabled default recommendation
dock 	docker0		physical=docker+,routeback=1
dock 	br		physical=br-+,routeback=1
@benhubert
benhubert / howto-use-obs-for-video-conferences.md
Last active October 28, 2020 21:13
Use OBS Studio for video conferences

How to use OBS Studio for professional video conferences

(for ArchLinux)

Install OBS studio

yay -S obs-studio

Virtual Camera

@benhubert
benhubert / Car.java
Last active January 18, 2021 15:51
Be careful with members of members
@Override
public String toString() {
return "Car{" +
"id=" + id +
", name='" + name + '\'' +
", owner=" + owner.getId() +
'}';
}