Skip to content

Instantly share code, notes, and snippets.

View Friedjof's full-sized avatar
👨‍💻
at work

Friedjof Noweck Friedjof

👨‍💻
at work
View GitHub Profile

Audible Export Guide

This guide walks you through the process of downloading and converting your Audible audiobooks using audible-cli and AAXtoMP3.

Requirements

You’ll need the following tools:

  • audible-cli: A command-line tool for downloading Audible audiobooks.
  • AAXtoMP3: A script to convert AAX files into MP3 or M4B formats.
@Friedjof
Friedjof / generate_wireguard_peer.sh
Last active November 5, 2024 02:31
Generates a WireGuard peer configuration file, including private, public, and pre-shared keys for secure VPN connections. Prompts the user for server address, port, peer details, and routing preferences, then outputs a ready-to-use configuration and server setup instructions.
#!/bin/bash
# Function to create a WireGuard peer configuration
create_peer_config() {
# Prompt the user for the VPN server address and port
read -p "Please enter the VPN server address (e.g., vpn.example.com): " SERVER_ADDRESS
read -p "Please enter the VPN server port (e.g., 51820): " SERVER_PORT
# Ask the user for the name of the peer
read -p "Please enter the name of the peer: " PEER_NAME
@Friedjof
Friedjof / cert-erstellen.md
Last active October 4, 2024 21:00
Generierung und Signierung durch eigener CA von TLS Zertifikaten für zB das Heimnetzwerk

Zertifikat für eine Domain/IP erstellen

Wichtig: cert ggf. durch den Namen des zu zertifizierenden Services ersetzen. Um ein Zertifikat zu generieren muss die CA Datei vorliegen, wie oben generiert. Auch muss das Password der CA-Datei bekannst sein.

openssl genpkey -algorithm RSA -out cert.key -outform PEM -pkeyopt rsa_keygen_bits:2048

Im Anschluss an die cert.key Datei muss nun die server.csr Datei erzeugt werden mit folgendem Befehl.

@Friedjof
Friedjof / Makefile
Created August 23, 2024 11:54
Diese Makefile kann dazu genutzt werden eigene Python-Pakete auf PyPI.org zu veröffentlichen. Ändere den Prjektnamen in der ersten Zeile.
PACKAGE_NAME = <Mein-Projekt-Name>
PYTHON = python3
BUILD_DIR = build
DIST_DIR = dist
.PHONY: all build install uninstall clean test
all: build
@Friedjof
Friedjof / pyproject.toml
Created August 23, 2024 11:46
Beispieldatei für eine pyproject.toml
[build-system]
requires = ["setuptools>=72.1.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "Mein-Projekt-Name"
version = "0.0.0"
description = "Beschreibung des Projekts"
readme = "README.md"
requires-python = ">=3.6"
@Friedjof
Friedjof / AveryLabels.py
Last active December 9, 2023 18:44 — forked from timrprobocom/AveryLabels.py
A class to manage printing on Avery labels with ReportLab
import os
from collections.abc import Iterator
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import LETTER, landscape
from reportlab.lib.units import inch, mm, cm
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
# Usage:
# label = AveryLabels.AveryLabel(5160)
@Friedjof
Friedjof / xss-merkblatt.md
Created November 5, 2023 15:07
XSS Merkblatt

Merkzettel: Netcat, ngrok, URL-Kodierung & Cookie-Extraktion in JavaScript

1. Netcat (nc)

Grundlegende Verwendung

  • Lauschen auf einem Port:
    nc -l -p [PORT]

Docker Merkzettel

Installation

Debian/Ubuntu:

sudo apt update
sudo apt install docker.io
"""
EIST 2023 Grading
Versions:
- GOE 1: grade + (1.0 + (.25 * hw_points / 90.0))
Since: beginning of the first lecture
- GOE 2: grade + (1.0 + (.25 * hw_points / 101.0))
Since: slack message from 2023-07-22 23:47:27
- GOE 3: grade + (1.0 + (.35 * hw_points / 101.0))
Since: since mail from 2023-08-02 14:48
version: '3'
services:
shlink:
container_name: shlink
image: shlinkio/shlink:stable
restart: unless-stopped
environment:
DEFAULT_DOMAIN: shlink.7fi.re
IS_HTTPS_ENABLED: 'false' # Wird ja durch den Proxy Manager gemacht