Skip to content

Instantly share code, notes, and snippets.

View YuanLiou's full-sized avatar
:octocat:
a museum enthusiast.

Jui Yuan Liu (Ray Yuan) YuanLiou

:octocat:
a museum enthusiast.
View GitHub Profile
@YuanLiou
YuanLiou / organize_posix.sh
Last active September 13, 2025 05:58
organize_posix.sh
#!/bin/sh
# --- 設定區 ---
# 目標資料夾就是目前的資料夾
TARGET_DIR="$(pwd)"
# --- 執行區 ---
SCRIPT_NAME="$(basename "$0")"
echo "--- 開始整理資料夾: $TARGET_DIR ---"
#!/bin/bash
# --- 設定區 ---
# 目標資料夾就是目前的資料夾
TARGET_DIR="$(pwd)"
# --- 執行區 ---
SCRIPT_NAME="$(basename "$0")"
echo "--- 開始整理資料夾: $TARGET_DIR ---"
@YuanLiou
YuanLiou / boot-to-linux.bat
Created June 13, 2025 13:01
boot-to-linux.bat
// use bcdedit /enum firmware to find the id of Linux EFI id
// in administrator mode
bcdedit /set {fwbootmgr} bootsequence {id}
shutdown /r /t 3
@YuanLiou
YuanLiou / reboot-to-win.sh
Created June 11, 2025 13:41
Reboot to Windows from Linux in UEFI
#!/bin/bash
sudo efibootmgr -n $(echo $(efibootmgr) | grep -Po "(?<=Boot)\S{4}(?=( |\* )Windows)") && reboot
@YuanLiou
YuanLiou / config.kdl
Last active April 1, 2025 03:49
Ray's zellij Config 0.2
//
// THIS FILE WAS AUTOGENERATED BY ZELLIJ, THE PREVIOUS FILE AT THIS LOCATION WAS COPIED TO: /Users/rliu04/.config/zellij/config.kdl.bak
//
default_shell "fish"
keybinds clear-defaults=true {
normal {
bind "Shift left" { GoToPreviousTab; }
bind "Shift right" { GoToNextTab; }
@YuanLiou
YuanLiou / config
Last active January 6, 2025 04:36
ghostty config 0.0.2
# Linux
command = /usr/bin/fish --login --interactive
shell-integration = fish
theme = Dracula+
quick-terminal-position = top
keybind = alt+shift+f12=toggle_quick_terminal
===== ==== ====== ==============================
# macOS
@YuanLiou
YuanLiou / omp_theme.toml
Created October 12, 2024 06:32
My Oh my posh theme 0.1
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
[[blocks.segments]]
@YuanLiou
YuanLiou / user_profile.ps1
Last active March 14, 2025 02:19
Ray's PowerShell settings 1.0.1
# Oh my posh
oh-my-posh init pwsh --config "~/.config/ohmyposh/omp_theme.toml" | Invoke-Expression
# Custom Modules
Enable-PoshTooltips
Import-Module posh-git
Install-Module -Name posh-alias
Import-Module Terminal-Icons
# Enable Auto complete
@YuanLiou
YuanLiou / tmux.conf
Last active January 4, 2025 06:07
Ray's tmux Config 0.2
# Tmux Plugins Manager
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# plugins: Vim Tmux navigation
set -g @plugin 'christoomey/vim-tmux-navigator'
# plugins: tmux-yank
set -g @plugin 'tmux-plugins/tmux-yank'
@YuanLiou
YuanLiou / nord_vimium.css
Created September 12, 2024 03:18
Nord theme for Vimium
/* Nord Vomnibar CSS */
/* Installation: Open Vimium Options -> Click "Show Advanced Options" and paste this into the CSS for Vimium UI text area. */
#vomnibar ol, #vomnibar ul {
list-style: none;
display: none;
}
#vomnibar {
background: rgba(46, 52, 68, 0.9);