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
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@YuanLiou
YuanLiou / android_studio_mcp_server.json
Created November 15, 2025 03:41
android studio mcp server json
{
"mcpServers": {
"mobile-mcp": {
"command": "npx",
"args": ["-y", "@mobilenext/mobile-mcp@latest"]
},
"memory": {
"command": "npx",
"args": [
"-y",
@YuanLiou
YuanLiou / quotes.csv
Created November 3, 2025 13:31
quotes.csv
梅莉·史翠普(Meryl Streep) 我的生命已到了一個階段,我不想再浪費時間,在一些讓我感到不愉快或傷害我的事情上。.
卓拉.霍爾(Kindra Hall) 阻止你說故事的最大障礙,不是拖延、害怕分享,也不是怯場,而是你從一開始就認定自己沒故事可說。.
塔雷伯:隨機騙局 資本主義的優點,在於社會能夠利用人們的貪婪而運作,不是靠他們的慈悲。.
na 一個人在任何年齡,都應提防的四大陷阱:不讀書愛思考、不獨立愛自由、沒經濟談真愛、缺理智想發財。撐下去的方法很簡單:愛具體的人、做具體的事。只有這樣才能抵抗那些宏大的、抽象的,試圖讓我們變消極的東西。.
na 缺乏愛的人會遇到的問題,就是他們無法判斷愛是什麼樣子。所以他們很容易被騙,去相信一些謊言。但大概我們都常常欺騙自己。.
na 「不要試圖在爭論中『獲勝』。發現你自己是錯的往往比你是對的更有價值,因為你正在學習。」重要的是,要知道何時應該撇開分歧繼續前進,不要花太多時間在瑣碎的細節上。.
na 總是有一群倒楣鬼會在你看不到的地方承受本不該由他們付出的代價。.
卡馬爾‧ 拉維坎特 (Kamal Ravikant):讓愛自己變成好習慣 最好先矯正自己,免得人生來矯正你,等到人生出手干預,過程往往痛苦許多。.
na 你生下來,唯一的責任就是顧好你自己。.
Wesley Snipes Don't let the internet rush you No one is posting their failure.
@YuanLiou
YuanLiou / auto_archive_to_gdrive.sh
Created October 20, 2025 04:06
auto_archive_to_gdrive and send notification for mac
#!/bin/bash
# ==============================================================================
#
# Title: auto_archive_to_gdrive.sh
# Description: A non-interactive script to compress a folder and move it to
# a destination. Designed to be run by an automated service
# like launchd on macOS. Now includes native notifications.
# Author: Gemini and ray liu
#
@YuanLiou
YuanLiou / auto_archive_to_gdrive.sh
Last active October 20, 2025 03:59
auto_archive_to_gdrive.sh
#!/bin/bash
# ==============================================================================
#
# Title: auto_archive_to_gdrive.sh
# Description: A non-interactive script to compress a folder and move it to
# a destination. Designed to be run by an automated service
# like launchd on macOS.
# Author: Gemini and ray liu
#
#!/bin/bash
# ==============================================================================
#
# Title: archive_to_gdrive.sh
# Description: Compresses a specified folder, adds a timestamp to the filename,
# and moves the resulting .zip file to a user-defined
# Google Drive folder on macOS.
# Author: Gemini and ray liu
#
@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