Skip to content

Instantly share code, notes, and snippets.

View Niklp09's full-sized avatar

Niklp Niklp09

  • Hesse, Germany
  • 18:36 (UTC +01:00)
View GitHub Profile
@vintprox
vintprox / minetest-better-fonts-2023.md
Last active November 7, 2025 02:44
Better (unicode) fonts for Minetest 2023

Better (unicode) fonts for Minetest 2023

  • Tired of boring default font in Minetest?
  • Have the text become increasingly harder to read?
  • Does the current font wear you off, stealing all your concentration?
  • Do you want one that you can recommended to anyone else, for any language?

Try something different, with this guide! Showing you how to setup a few beatiful fonts for Minetest today.

I just think they're neat.

@SmallJoker
SmallJoker / pr_apply.sh
Last active August 24, 2025 12:09
Applies PRs to any repository. Place into ~/.local/bin and run in the target git directory
#!/usr/bin/env bash
remote="upstream"
url=$(LANG=C git remote -v get-url $remote 2>&1)
if [[ "$url" == fatal* || "$url" == error* ]]; then
remote="origin"
url=$(LANG=C git remote -v get-url $remote 2>&1)
fi
if [[ "$url" == fatal* || "$url" == error* ]]; then
@0xjac
0xjac / private_fork.md
Last active December 5, 2025 18:37
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@julianxhokaxhiu
julianxhokaxhiu / pagespeed_optimize_images.sh
Last active December 7, 2024 21:46
Recursively optimize all PNG and JPG files wherever they are from the script position and inner ( based on OPTING, PNGCRUSH, ADVANCECOMP and JPEGOPTIM )
#!/bin/bash
# Improved as per feedback from @pascal - https://gist.github.com/julianxhokaxhiu/c0a8e813eabf9d6d9873#gistcomment-3086462
find . -type f -iname "*.png" -exec optipng -nb -nc {} \;
find . -type f -iname "*.png" -exec advpng -z4 {} \;
find . -type f -iname "*.png" -exec pngcrush -rem gAMA -rem alla -rem cHRM -rem iCCP -rem sRGB -rem time -ow {} \;
find . -type f \( -iname "*.jpg" -o -iname "*.jpeg" \) -exec jpegoptim -f --strip-all {} \;
@xero
xero / irc.md
Last active November 29, 2025 00:04
irc cheat sheet