Skip to content

Instantly share code, notes, and snippets.

@tobiasweede
tobiasweede / __init__.py
Created November 8, 2023 15:59 — forked from ultrafunkamsterdam/__init__.py
Python 3 main module template including shebang, docstring, metadata and boilerplate
View __init__.py
#!/usr/bin/env python3
# *_* coding: utf-8 *_*
"""
module docstring - short summary
If the description is long, the first line should be a short summary that makes sense on its own,
separated from the rest by a newline
"""
@tobiasweede
tobiasweede / mapwacom
Created January 7, 2023 12:15 — forked from tom-galvin/mapwacom
Mapwacom script
View mapwacom
#!/bin/bash
# mapwacom script
MAPWACOM=$(basename $0)
EXIT_CODE_BAD_DEVICE=82
EXIT_CODE_NO_SUCH_DEVICE=80
EXIT_CODE_NO_SUCH_SCREEN=81
EXIT_CODE_MISSING_DEPS=83
EXIT_CODE_USAGE=64
@tobiasweede
tobiasweede / bluetooth-a2dp.png
Created June 15, 2022 09:57 — forked from lazyfrosch/bluetooth-a2dp.png
Toggle Bluetooth Profiles with Pulseaudio
@tobiasweede
tobiasweede / .gitignore
Created January 6, 2022 02:07 — forked from gregplaysguitar/.gitignore
Some simple Ubuntu server monitoring tools
View .gitignore
*.pyc
conf.py
@tobiasweede
tobiasweede / gist:9458dbafa0f7a96562eb616ab7314261
Created September 3, 2021 21:52
Uni Jena Eduroam 2.4GHz Config for netctl
View gist:9458dbafa0f7a96562eb616ab7314261
Description='2.4GHz eduroam'
Connection='wireless'
Interface=wlan0
Security='wpa-configsection'
IP='dhcp'
NETCTL_DEBUG=no
WPAConfigSection=(
'ssid="2.4GHz eduroam"'
'key_mgmt=WPA-EAP'
'eap=TTLS'
@tobiasweede
tobiasweede / instructions.md
Created July 9, 2020 06:03 — forked from johnko/instructions.md
Installing FreeBSD on a USB drive with ZFS using bsdinstall unattended
View instructions.md

Installing FreeBSD on a USB drive with ZFS using bsdinstall unattended

I typically wrap all these commands into a shell script that I can reuse, but here they are in steps.

Please read through all the instructions before actually performing the commands, just to avoid any surprises

Requirements:

  • careful typing and copy/paste skills
  • USB drive (8 GB+ ?) Make sure you don't need anything on that drive