Skip to content

Instantly share code, notes, and snippets.

View tunalad's full-sized avatar
🎸
https://tunalad.xyz/

Новица tunalad

🎸
https://tunalad.xyz/
View GitHub Profile
@tunalad
tunalad / fc-install.py
Created January 15, 2024 23:26
Helps with installing fonts on linux. You can install a font by either calling directly on the font file, or on archive where the font files can be found
#!/usr/bin/env python3
import os
import sys
import subprocess
import patoolib # `patool` package
import tempfile
import shutil
FONT_EXTENSIONS = (".ttf", ".otf")
@tunalad
tunalad / bandcampReleaseIdentifier.js
Last active January 28, 2024 23:01
Helps with identifying if the release is a track or an album, right under the release's title
// ==UserScript==
// @name Bandcamp Release Identifier
// @version 1.1
// @description tells you if the release is a track or album under its title
// @author tunalad
// @match *://*.bandcamp.com/*
// @exclude *://bandcamp.com/
// @grant none
// ==/UserScript==
@tunalad
tunalad / pistatus.sh
Last active May 15, 2026 22:23
statusbar for the shell, written for my raspberry pi (but works everywhere
#!/bin/sh
pistatus() {
temp="NaN"
if [ -r /sys/class/thermal/thermal_zone0/temp ]; then
raw=$(cat /sys/class/thermal/thermal_zone0/temp)
deg=$((raw / 1000))
temp="${deg}C°"
[ "$raw" -ge 80000 ] && temp="WARN:${temp}"
fi