Skip to content

Instantly share code, notes, and snippets.

@hummerbliss
hummerbliss / systemd-in-rkt.sh
Created August 28, 2021 10:35 — forked from tjdett/systemd-in-rkt.sh
Run systemd init in a rkt container
sudo `which rkt` run --interactive \
--volume volume-sys-fs-cgroup,kind=host,source=/sys/fs/cgroup,readOnly=true \
--insecure-options=image,seccomp,capabilities \
docker://fedora/systemd-systemd --exec /bin/bash -- \
-c "exec unshare --pid --fork --mount-proc /sbin/init"
My Apple devices started stating "incorrect password" for my network, even though they had conncted previously.
So how to fix Unifi network "incorrect password" error on iPhone, iPod, iPad and Macbook pro?
The reason for the error is the WiFi management done on iOS devices.
The default settings for the Unifi AP range are not compatible with iOS 11 and 12 and OSX High Sierra (and maybe more).
The reason for the error is the "DTIM Mode" (beacon timing) setting for power saving.
@hummerbliss
hummerbliss / stack_trace.sh
Created March 30, 2022 07:03 — forked from akostadinov/stack_trace.sh
Get stack trace in Bash shell script/program.
# LICENSE: MIT, wtfpl or whatever OSS license you like
function get_stack () {
STACK=""
local i message="${1:-""}"
local stack_size=${#FUNCNAME[@]}
# to avoid noise we start with 1 to skip the get_stack function
for (( i=1; i<$stack_size; i++ )); do
local func="${FUNCNAME[$i]}"
[ x$func = x ] && func=MAIN
local linen="${BASH_LINENO[$(( i - 1 ))]}"