Skip to content

Instantly share code, notes, and snippets.

View yuna0x0's full-sized avatar
🍥
:3

yuna0x0 yuna0x0

🍥
:3
View GitHub Profile
@yuna0x0
yuna0x0 / ufw-allow-vm-nat.sh
Created November 16, 2025 15:14
Firewall allow libvirt VM NAT Network (converted to ufw commands)
#!/bin/bash
# Firewall allow libvirt VM NAT Networking (converted to ufw commands)
# Ref: https://wiki.archlinux.org/title/Libvirt#Using_nftables
# The old solution is to set `firewall_backend=iptables` in `/etc/libvirt/network.conf`
# instead of setting firewall rules in nftables, ufw, etc.
# However, this uses the legacy iptables backend and should be considered deprecated.
sudo ufw allow in on virbr0 to any port 53 proto udp comment 'allow VM DNS requests to host'
@yuna0x0
yuna0x0 / Godot.gitattributes
Created November 15, 2025 23:20
Godot .gitattributes file for Git LFS
# Normalize EOL for all files that Git considers text files.
* text=auto eol=lf
# Git LFS Tracking (Assets)
# 3D Models
*.fbx filter=lfs diff=lfs merge=lfs -text
*.gltf filter=lfs diff=lfs merge=lfs -text
*.glb filter=lfs diff=lfs merge=lfs -text
*.blend filter=lfs diff=lfs merge=lfs -text
@yuna0x0
yuna0x0 / build-dotnet-project.sh
Last active August 8, 2025 17:14
.NET Project Build Script ( {UseAppHost, self-contained, PublishSingleFile} = true )
#!/bin/bash
# .NET Project Build Script
# Builds cross-platform executables for Windows, macOS, and Linux
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@yuna0x0
yuna0x0 / UnityExplorerUIScale.cs
Created April 21, 2025 06:27
UnityExplorer UI Scale Factor (HiDPI) - Run this in the C# console or startup.cs
// Reference: https://github.com/sinai-dev/UnityExplorer/issues/181#issuecomment-1296365106
UnityExplorer.UI.UIManager.UICanvas.scaleFactor = 2.0f;
@yuna0x0
yuna0x0 / harden-ssh.sh
Last active April 9, 2025 14:29
Harden SSH (Force public key auth and deny root login)
#!/bin/bash
# Force public key authentication
cat > /etc/ssh/sshd_config.d/20-force_publickey_auth.conf <<EOF
PasswordAuthentication no
AuthenticationMethods publickey
EOF
# Deny root login
echo "PermitRootLogin no" > /etc/ssh/sshd_config.d/20-deny_root.conf
@yuna0x0
yuna0x0 / config.yaml
Last active January 2, 2025 22:35
Verdaccio Setup - Private Unity Scoped Registry (with OpenUPM fallback)
storage: /verdaccio/storage/data
plugins: /verdaccio/plugins
auth:
htpasswd:
file: /verdaccio/storage/htpasswd
algorithm: bcrypt
uplinks:
# npmjs:
# url: https://registry.npmjs.org/
openupm:
/**
* @name system24-yuna0x0
* @description A tui-style discord theme. Customized by yuna0x0.
* @author refact0r
* @version 1.0.0
* @invite nz87hXyvcy
* @website https://github.com/refact0r/system24
* @source https://github.com/refact0r/system24/blob/master/system24.theme.css
* @authorId 508863359777505290
* @authorLink https://www.refact0r.dev
@yuna0x0
yuna0x0 / mirrorlist
Created June 25, 2024 18:58
Arch Linux pacman mirrorlist (Taiwan)
## Taiwan
Server = https://archlinux.cs.nycu.edu.tw/$repo/os/$arch
## Taiwan
Server = https://mirror.archlinux.tw/ArchLinux/$repo/os/$arch
## Taiwan
Server = https://free.nchc.org.tw/arch/$repo/os/$arch
## Taiwan
Server = https://ncuesaweb.ncue.edu.tw/linux/archlinux/$repo/os/$arch
## Taiwan
Server = http://archlinux.cs.nycu.edu.tw/$repo/os/$arch
@yuna0x0
yuna0x0 / .env.example
Last active March 24, 2025 10:31
Vaultwarden (Caddy) Docker Compose for Synology NAS
TIMEZONE=Asia/Taipei
VAULTWARDEN_ADMIN_TOKEN=
VAULTWARDEN_LOCALHOST_PORT=6699
CADDY_HOSTNAME=example.com:7777
SYNO_CERT_PATH=/usr/syno/etc/certificate/system/default
SYNO_CERT_TYPE=ECC
@yuna0x0
yuna0x0 / cuda_12.6_linux_modulefile_fedora
Last active January 23, 2025 23:19
CUDA 12.6 Linux (Modulefile)
#%Module1.0
# /usr/share/modulefiles/cuda/12.6
proc ModulesHelp {} {
puts stderr "Add NVIDIA CUDA Toolkit 12.6 to your environment variables"
}
module-whatis "Add NVIDIA CUDA Toolkit 12.6 to your environment variables"