Skip to content

Instantly share code, notes, and snippets.

View tippfehlr's full-sized avatar

tippfehlr tippfehlr

View GitHub Profile
@tippfehlr
tippfehlr / config.bash
Last active February 25, 2024 15:40
Think of a port 💭
# bash function to generate ports for projects
# use the first four non-zero digits from the sha256sum of the project’s name
# infer the name from the current directory if no argument is given
thinkofport() {
if [ "$#" -gt 0 ]; then
echo -n "$1" | sha256sum | grep -o '[1-9]' | head -n 4 | tr -d '\n'
else
basename "$(pwd)" | sha256sum | grep -o '[1-9]' | head -n 4 | tr -d '\n'
fi
}
@tippfehlr
tippfehlr / bin
Last active February 8, 2024 10:11
Pipe output to bin.gy
#!/bin/bash
curl -X PUT --data "$(cat -)" https://bin.gy/
echo # bin.gy does not return a newline after the link
# use: cat <file> | bin
# or: some-command | bin
@tippfehlr
tippfehlr / README.md
Created January 1, 2024 14:20
my custom css for Jellyfin

This is my custom css for Jellyfin. these are not my modifications, I copied them from reddit

Features:

  • more appropriately sized episode images
  • rounded corners and square play button
  • minimalistic play buttons
  • blue checkmark and like button

image

@tippfehlr
tippfehlr / Tasks.md
Last active January 14, 2024 18:17
My Obsidian Tasks display configuration
not done
tags include #next

Overdue!

not done
(due before today) OR (scheduled before today)

hide recurrence rule