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
@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

SSH key authentication for the TUM Rechnerhalle

Author: Friedjof Noweck

*write a comment if you have any questions or suggestions

Demonstration

After this guide you should be able to connect to the Rechnerhalle via SSH without a password or username like this:

ssh tum

Steps

How to mount TUM Rechnerhalle using SSHFS

Installation

Ubuntu/Debian:

sudo apt-get install sshfs

CentOS/RHEL:

sudo yum install sshfs
@Friedjof
Friedjof / brainfuck.c
Last active May 7, 2023 22:08
This is an interpreter for Brainfuck written in C.
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PROGRAM_SIZE 8192
#define LOOP_DEPTH 256
from threading import *
from time import sleep
class States:
loop: bool = False
class Loop(Thread):
def __init__(self, states: States, *args, **kwargs):

Audible Download

Show Books

audible library list

Download all Books

audible download --aaxc --pdf --cover --cover-size 1215 --chapter --annotation --all