Skip to content

Instantly share code, notes, and snippets.

View lukas2511's full-sized avatar
🔓
Your connection to this site is not secured.

Lukas Schauer lukas2511

🔓
Your connection to this site is not secured.
View GitHub Profile
@lukas2511
lukas2511 / onc-to-nm.py
Created May 3, 2024 17:14
Convert easyroam Open Network Config to NetworkManager connection profile
#!/usr/bin/env python3
# Usage:
# - go to easyroam.de
# - select manual options -> Open Network Config (ChromeOS)
# - run this script as root: sudo python3 path/to/onc-to-nm.py path/to/easyroam_[...].onc
# - connect to wifi (via gui or on console: nmcli conn up eduroam)
# - optionally: enable autoconnect (via gui or on console: nmcli conn modify eduroam connection.autoconnect on)
import json
@lukas2511
lukas2511 / change-boot-logo-on-thinkpad-x13.md
Last active June 3, 2022 12:18
change boot logo on thinkpad x13

Change boot logo on ThinkPad X13

I had problems changing the boot logo on my ThinkPad X13 the official way. Using the Windows updater it silently failed, always showing the original logo instead. Using the bootable ISO updater it just showed various error messages (that had 0 results on google, wtf).

After some playing around I found a reliable way.

Prepare boot logo

@lukas2511
lukas2511 / convert.sh
Last active February 16, 2022 11:41
WorkAdventure video to map converter script thingie
#!/bin/bash
# don't set these too large, maps get huuuuuuge
WIDTH=-1
HEIGHT=72
DURATION=60
rm -rf frames
mkdir -p frames

Einleitung

Ich beschreibe hier kurz in eigenen Worten wieso bei dem Facebook-Ausfall am Abend des 04.10.2021 mehr betroffen war als nur die Facebook-eigenen Dienste. Ich arbeite nicht für Facebook, ich habe hier nur Informationen gesammelt und versuche diese in einfachen Worten weiterzugeben.

(Extrem)Kurzeinführung BGP

Im Internet gibt es Routen, diese geben an wie bestimmte Ziele erreicht werden können. Es gibt hierfür kein zentrales "Kartenmaterial", stattdessen sagt einfach nur jeder seinen Nachbarn,

#!/bin/bash
set -e
INFILE="rc3-mcr-11512-eng-deu-CIA_vs_Wikileaks_hd.mp4"
OUTDIR="output/"
FRAMES=1000
#!/bin/bash
pip install "$1" &
easy_install "$1" &
brew install "$1" &
npm install "$1" &
yum install "$1" & dnf install "$1" &
docker run "$1" &
pkg install "$1" &
apt-get install "$1" &
@lukas2511
lukas2511 / meraki-init.sh
Last active July 10, 2024 05:20
Meraki MS220-8P config without cloud bullshit
#!/bin/sh
# This script configures a meraki ms220-8p switch completely from scratch
# See https://leo.leung.xyz/wiki/Meraki_MS220-8P for rooting instructions
# You can keep config and config.local completely empty, but i'd recommend to add a configuration
# which isolates all ports from each other.
# Without that you might have switching loops on bootup (unlikely since STP keeps longer to initialize
# than it takes this script to take over, but it just feels cleaner).
@lukas2511
lukas2511 / Tiny gcc compiled binary experiment
Last active March 20, 2019 20:32
Tiny gcc compiled binary experiment
We couldn’t find that file to show.
@lukas2511
lukas2511 / sun7i-a20-olinuxino-lime.dts
Created March 2, 2019 19:22
dts with uart2 enabled
/dts-v1/;
/ {
#address-cells = < 0x01 >;
#size-cells = < 0x01 >;
interrupt-parent = < 0x01 >;
model = "Olimex A20-OLinuXino-LIME";
compatible = "olimex,a20-olinuxino-lime\0allwinner,sun7i-a20";
chosen {