Skip to content

Instantly share code, notes, and snippets.

View felsenhower's full-sized avatar
☀️

Ruben Felgenhauer felsenhower

☀️
  • Hamburg
View GitHub Profile
@felsenhower
felsenhower / censor.md
Created August 27, 2025 10:55
Quick and dirty Python script to censor command output

This is a very simple python script that removes the PWD and username from a command output.

I wrote it to copy and paste Python errors to ChatGPT without giving it all of my personal data.

Put this into ~/bin/censor and have ~/bin on PATH:

#!/usr/bin/env python3
@felsenhower
felsenhower / latex-logo.typ
Last active May 20, 2026 20:27
LaTeX-Logo in Typst
// © 2023 Ruben Felgenhauer
// Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.
#let LaTeX = {
let A = (
offset: (
x: -0.33em,
y: -0.3em,
),
size: 0.7em,
@felsenhower
felsenhower / texstudio+latexmk+output-directory.md
Last active July 22, 2026 09:31
Setting up TeXstudio with latexmk and a build directory

Setting up TeXstudio with latexmk and a build directory

Warning

This has only been tested on Linux. Since it relies on ln, rm, and bash, additional steps may be required on Windows.

It's annoying that LaTeX creates so many auxiliary files and TeXstudio offers no possibility to delete them automatically on program exit.

I also want to use latexmk, since it caches results and therefore builds very quickly, since it doesn't always have to compile everything.

Modpack: https://www.curseforge.com/minecraft/modpacks/valhelsia-3
Installieren: https://aur.archlinux.org/packages/multimc5
Herunterladen: https://www.curseforge.com/minecraft/modpacks/valhelsia-3/files/3165371
- MultiMC starten
- Einstellungen
- Konten
- Minecraft-Konto hinzufügen
@felsenhower
felsenhower / gist:ee64ff35345d6632fb8189d9f28afe85
Created September 7, 2018 09:30
Steam System Information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4790S CPU @ 3.20GHz
CPU Family: 0x6
@felsenhower
felsenhower / prepare-commit-msg
Last active March 3, 2021 12:24
Prepare your git commit messages with bullshit
#!/bin/sh
# This git hook prepares your commit messages with five lines of technology bullshit in full-width characters to choose from.
# For information about bullshit on Arch Linux:
# See https://github.com/fceschmidt/bullshit-arch
# For information on the full-width character converter:
# See https://gist.github.com/felsenhower/e103a0f6c2354b9d74afd9e6e60c16c5
# For information about how to install a global git hook for all repos:
# See https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
@felsenhower
felsenhower / full-width
Last active March 3, 2021 11:02
Script to convert letters to their full-width counterparts
#!/bin/perl
# This perl script converts ASCII characters between 0x21 ("!") and 0x7E ("~") to full-width characters.
# https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms
# All other characters will be ignored!
# Examples:
# $ echo 'Lorem ipsum dolor sit amet, consectetur, adipisci velit' | ./full-width
# Lorem ipsum dolor sit amet, consectetur, adipisci velit
# $ echo 'Hello, Mr. Schrödinger! What does "ħ" mean?' | ./full-width
# Hello, Mr. Schrödinger! What does "ħ" mean?