Skip to content

Instantly share code, notes, and snippets.

View yuna0x0's full-sized avatar
🍥
:3

yuna0x0 yuna0x0

🍥
:3
View GitHub Profile
@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"
@yuna0x0
yuna0x0 / yuna0x0-misskey-dark-theme.json5
Last active March 29, 2025 23:10
yuna0x0 Misskey - Theme
{
id: '8245b134-09c3-4c35-bcbb-1a91af2b3c38',
base: 'dark',
name: 'yuna0x0 Misskey - Dark',
props: {
bg: '#232323',
fg: 'rgb(199, 209, 216)',
link: '@accent',
navBg: '#363636',
panel: '#2d2d2d',
@yuna0x0
yuna0x0 / Unity.gitignore
Last active April 10, 2025 21:01
Unity project ignore config for Git and Perforce (P4)
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
@yuna0x0
yuna0x0 / cloudflare-r2-cli-cors.md
Last active January 1, 2023 19:06
Cloudflare R2 - Static CDN CORS (allow GET and HEAD from any origin)
@yuna0x0
yuna0x0 / ToggleTest.shader
Created May 4, 2022 07:37 — forked from keijiro/ToggleTest.shader
Shows how to use the Toggle material property drawer in a shader. See the reference manual for further details: http://docs.unity3d.com/ScriptReference/MaterialPropertyDrawer.html
Shader "ToggleTest"
{
Properties
{
[Toggle(FILL_WITH_RED)]
_FillWithRed ("Fill With Red", Float) = 0
}
SubShader
{
Pass