Skip to content

Instantly share code, notes, and snippets.

@unixfox
unixfox / jool.conf
Last active June 5, 2023 14:29
IPv6 only NAT64 (Jool) with RA (radvd) + DNS64 (bind9)
{
"comment": "Sample configuration for the NAT64 Jool service.",
"instance": "default",
"framework": "netfilter",
"global": {
"comment": "Sample pool6 prefix",
"pool6": "64:ff9b::/96"
}
@mafredri
mafredri / smb.conf
Last active January 10, 2025 00:16
Samba config for Open PS2 Loader (PlayStation 2)
# This setup works pretty well for OPL with a network link that travels through
# two UniFi switches and connects to a Samba server running inside Docker. The
# host OS is Debian with a ZFS filesystem and the container OS is also Debian.
# Latest Samba (4.11+).
[global]
# ======================
# General Samba settings
# ======================
log level = 1

Minecraft on Apple Silicon

In this gist, you can find the steps to run Minecraft 1.16.4 natively on Apple Silicon (AS), without needing Rosetta 2 translation of the dependencies (mainly LWJGL and related libraries).

While it's possible to use a launcher like MultiMC to have a prettier way to run the game on AS, it requires installing even more dependencies (like QT) which take time and are difficult to distribute. Therefore, I've put together a command line-based launcher tool using a couple shell & Python scripts.

To get up and running quickly, follow the steps below. Otherwise, for more detail, watch my YouTube video.

Download my package

@matusnovak
matusnovak / README.md
Last active May 2, 2025 01:55
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@jurajlutter
jurajlutter / z2m
Last active November 15, 2024 12:02
FreeBSD rc.d script for zigbee2mqtt
#!/bin/sh
#
# PROVIDE: z2m
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# FreeBSD rc.d script for zigbee2mqtt
#
# (c) 2024 Juraj Lutter <[email protected]>
#
@n1d3v
n1d3v / guide.txt
Last active April 25, 2025 10:39
Revert the new desktop Discord UI (2025)
So, you've probably gotten the new desktop client's UI if you're reading this and wondering how to revert the UI back to the classic look of Discord.
This is pretty easy if followed properly, For context, this new UI is called the "Desktop Visual Refresh" and was experimented with by Discord from May 2024.
Anyway, back to the actual guide.
1. Download Vencord's installer from https://vencord.dev (This is the only official Vencord link!)
2. Open the installer, install Vencord (It should show your Discord install path)
3. Once installed, relaunch your Discord client and go to settings, you should see a "Vencord" category.
4. Go to plugins, search for the plugin called "Experiments" and restart the Discord client.
5. Go back to settings, scroll down in the menu and you should see alot of new options in the category "Developer Only"