- https://www.raspberrypi.org/downloads/raspbian/ Buster lite image
- https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md Raspberry Pi 3B+, CM3+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install packages | |
yay -S esptool | |
sudo pip install rshell | |
# flash micropython | |
- Download: https://micropython.org/download#esp32 (GENERIC : esp32-idf3-20200110-v1.12-45-gbfbd94401.bin) | |
- Erase flash: esptool.py --port /dev/ttyUSB0 erase_flash | |
- Flash firmware: esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z 0x1000 <esp32-....bin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accounts: | |
- name: Musterstadt | |
mail: | |
host: imap.mailprovider.de | |
user: [email protected] | |
password: Feuer! | |
subject: "Einsatzmeldung" | |
connect: | |
token: >- | |
E-pzIiYlxxTdFu8w9a-KWNVHv-4jIqRdg5UKyiwRE24soOJNDHyFi9MHXDzHICJUQ9O |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import base64 | |
import json | |
import logging | |
import os | |
import sys | |
from datetime import datetime as dt | |
import click |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# github.com/bouni i3status/py3status config | |
# i3status configuration file | |
# see "man i3status" for documentation. | |
# It is important that this file is edited as UTF-8. | |
# The following line should contain a sharp s: | |
# ß | |
# If the above line is not correctly displayed, fix your editor first! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
A corona virus status plugin for py3status. | |
Save this into ~/.config/py3status/modules/corona.py | |
This is static for Germany and gets its data from https://github.com/sagarkarira/coronavirus-tracker-cli | |
Can be easily changed for a different country by changing the requests url below. | |
""" | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import errno | |
import json | |
from base64 import b64decode | |
def extract(file, output, challenge): | |
# Read JSON file | |
data = json.loads(open(file).read()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
sgdisk -o -g -n 1::+550M -t 1:ef00 -n 2:: -t 2:8300 /dev/nvme0n1 | |
cryptsetup luksFormat --type luks1 /dev/nvme0n1p2 | |
cryptsetup open /dev/nvme0n1p2 lvm | |
pvcreate /dev/mapper/lvm | |
vgcreate vg /dev/mapper/lvm | |
lvcreate -L 32G -n swap vg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FG0='\e[38;5;0m' | |
FG1='\e[38;5;1m' | |
FG2='\e[38;5;2m' | |
FG3='\e[38;5;3m' | |
FG4='\e[38;5;4m' | |
FG5='\e[38;5;5m' | |
FG6='\e[38;5;6m' | |
FG7='\e[38;5;7m' | |
FG8='\e[38;5;8m' | |
FG9='\e[38;5;9m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place this file in /usr/share/X11/xkb/symbols/usde | |
# Load it with setxkbmap -model pc105 -layout usde -variant intlde -option caps:none | |
default partial alphanumeric_keys modifier_keys | |
xkb_symbols "basic" { | |
name[Group1]= "English (US)"; | |
key <TLDE> { [ grave, asciitilde ] }; | |
key <AE01> { [ 1, exclam ] }; |