Skip to content

Instantly share code, notes, and snippets.

View yuna0x0's full-sized avatar
🍥
:3

yuna0x0 yuna0x0

🍥
:3
View GitHub Profile
/**
* @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 September 4, 2023 00:20
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/_archive/$(cat /usr/syno/etc/certificate/_archive/DEFAULT)
@yuna0x0
yuna0x0 / cuda_12.1_linux_modulefile
Created May 24, 2023 06:25
CUDA 12.1 Linux (Modulefile)
#%Module1.0
# /usr/share/modules/modulefiles/cuda/12.1
proc ModulesHelp {} {
puts stderr "\t Adds NVIDIA CUDA Toolkit 12.1 to your environment variables,"
}
module-whatis "adds NVIDIA CUDA Toolkit 12.1 to your environment variables"
@yuna0x0
yuna0x0 / edisonlee55-misskey-dark-theme.json5
Created April 18, 2023 10:28
edisonlee55 Misskey - Theme
{
id: '3661c367-97c9-4ec4-a046-e3cd709ebd03',
base: 'dark',
name: 'edisonlee55 Misskey - Dark',
props: {
bg: '#232323',
fg: 'rgb(199, 209, 216)',
link: '@accent',
navBg: '#363636',
panel: '#2d2d2d',
@yuna0x0
yuna0x0 / Unity.gitignore
Last active January 13, 2023 06:38
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
@yuna0x0
yuna0x0 / rgbaToVec.js
Created May 4, 2022 07:30 — forked from m4n1ok/rgbaToVec.js
Convert a rgba/rgb color to vec4. Convert vec4 color to rgba
const normalize = (min, max, value) => {
if (value < min) return min
else if (value > max) return max
else return value
}
const splitChannels = (color, split) => {
color = color.replace(split, '').replace(')', '').trim()
let channels = color.split(',')
@yuna0x0
yuna0x0 / prng.cginc
Created May 4, 2022 06:52 — forked from keijiro/prng.cginc
One liner pseudo random generator with HLSL
float nrand(float2 uv)
{
return frac(sin(dot(uv, float2(12.9898, 78.233))) * 43758.5453);
}