Last active
November 12, 2025 09:56
-
-
Save chunheisiu/b3e6f88d930db44cbd77627053233816 to your computer and use it in GitHub Desktop.
Revisions
-
chunheisiu revised this gist
Nov 12, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ APPS=( # "Futubull" "GIMP" "JetBrains Toolbox" # "Spotify" "uSMART Trade" "Zerotier" ) -
chunheisiu revised this gist
Sep 19, 2025 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,13 +2,14 @@ APPLICATIONS_DIR="/Applications/" ICONS_DIR="/Users/chunheisiu/Documents/Icons/" APPS=( # "Dark Mode for Safari" "Days Matter" # "Futubull" "GIMP" "JetBrains Toolbox" "Spotify" "uSMART Trade" "Zerotier" ) for app in "${APPS[@]}"; do -
chunheisiu revised this gist
Jun 23, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ echo # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" read -p "Update app icons [y/N]? " update_icons if [[ "$update_icons" =~ ^[Yy]$ ]]; then . ${0%/*}/update_app_icons.sh fi -
chunheisiu revised this gist
Jun 23, 2025 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,8 +12,7 @@ echo # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" read -p "Update app icons? [y/N]" update_icons if [[ "$update_icons" =~ ^[Yy]$ ]]; then . ${0%/*}/update_app_icons.sh fi -
chunheisiu revised this gist
Jun 22, 2025 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,11 @@ echo # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" echo "Update app icons? [y/N]" read -r update_icons if [[ "$update_icons" =~ ^[Yy]$ ]]; then . ${0%/*}/update_app_icons.sh fi echo # Conda -
chunheisiu revised this gist
Jun 20, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,11 +8,11 @@ brew update brew upgrade brew cu -a brew cleanup echo # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" . ${0%/*}/update_app_icons.sh echo # Conda -
chunheisiu revised this gist
Jun 20, 2025 . 2 changed files with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ brew cleanup # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" . ${0%/*}/update_app_icons.sh echo This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,11 @@ for app in "${APPS[@]}"; do app_path="${APPLICATIONS_DIR}${app}.app" icon_path="${ICONS_DIR}${app}.icns" fileicon set "${app_path}" "${icon_path}" -q # Retry using sudo if the first attempt fails if [ $? -ne 0 ]; then sudo fileicon set "${app_path}" "${icon_path}" -q fi echo "Updated icon for ${app}.app with ${app}.icns" done -
chunheisiu revised this gist
Jun 20, 2025 . 2 changed files with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ brew cleanup # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" sudo ${0%/*}/update_app_icons.sh echo This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,10 @@ APPLICATIONS_DIR="/Applications/" ICONS_DIR="/Users/chunheisiu/Documents/Icons/" APPS=( "Dark Mode for Safari" "Days Matter" "Futubull" "GIMP" "JetBrains Toolbox" "Spotify" "uSMART Trade" -
chunheisiu revised this gist
Jun 20, 2025 . 2 changed files with 20 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,10 @@ brew upgrade brew cu -a brew cleanup # Replace App Icons echo "${RED}##${ENDCOLOR} ${WHITE}Update App Icons${ENDCOLOR}" . ${0%/*}/update_app_icons.sh echo # Conda This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ APPLICATIONS_DIR="/Applications/" ICONS_DIR="/Users/chunheisiu/Documents/Icons/" APPS=( "JetBrains Toolbox" "Spotify" "uSMART Trade" ) for app in "${APPS[@]}"; do app_path="${APPLICATIONS_DIR}${app}.app" icon_path="${ICONS_DIR}${app}.icns" fileicon set "${app_path}" "${icon_path}" echo "Updated icon for ${app}.app with ${app}.icns" done -
chunheisiu revised this gist
Jun 20, 2025 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ brew install brew-cask-completion brew tap buo/cask-upgrade brew tap Homebrew/cask-drivers brew install apparency qlstephen qlcolorcode -
chunheisiu revised this gist
Nov 27, 2022 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,3 +6,6 @@ brew install brew-cask-completion brew tap buo/cask-upgrade brew tap Homebrew/cask-versions brew tap Homebrew/cask-drivers brew install apparency qlstephen qlcolorcode xattr -d -r com.apple.quarantine ~/Library/QuickLook -
chunheisiu revised this gist
Apr 3, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # "$(brew --repository)/Library/Taps/homebrew/homebrew-cask/"" /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install brew-cask-completion -
chunheisiu revised this gist
Apr 3, 2021 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,16 @@ RED="\033[1;91m" WHITE="\033[1;97m" ENDCOLOR="\033[0m" # Brew echo "${RED}##${ENDCOLOR} ${WHITE}Update Brew${ENDCOLOR}" brew update brew upgrade brew cu -a brew cleanup echo # Conda echo "${RED}##${ENDCOLOR} ${WHITE}Update Conda${ENDCOLOR}" conda update --all -
chunheisiu revised this gist
Mar 27, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,10 @@ # Brew echo "## Update Brew" brew update brew upgrade brew cu -a brew cleanup # Conda echo "## Update Conda" conda update --all -
chunheisiu revised this gist
Feb 29, 2020 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,3 @@ brew cleanup # Conda conda update --all -
chunheisiu revised this gist
Feb 29, 2020 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ brew cu -a brew cleanup # Conda conda update --all # Pip -
chunheisiu revised this gist
Feb 29, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,4 @@ conda deactivate conda update --all # Pip pip install -U $(pip freeze | awk '{split($0, a, "=="); print a[1]}') -
chunheisiu revised this gist
Feb 29, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ brew cu -a brew cleanup # Conda conda deactivate conda update --all # Pip -
chunheisiu revised this gist
Feb 26, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ brew cleanup conda update --all # Pip pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U -
chunheisiu revised this gist
Nov 21, 2019 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ brew cu -a brew cleanup # Conda conda update --all # Pip -
chunheisiu revised this gist
Nov 21, 2019 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,12 @@ # Brew brew update brew upgrade brew cu -a brew cleanup # Conda conda deactivate conda update --all # Pip pip install -U $(pip freeze | awk '{split($0, a, "=="); print a[1]}') -
chunheisiu revised this gist
Oct 18, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install brew-cask-completion brew tap buo/cask-upgrade brew tap Homebrew/cask-versions brew tap Homebrew/cask-drivers -
chunheisiu renamed this gist
Oct 18, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chunheisiu renamed this gist
Oct 18, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chunheisiu revised this gist
Oct 18, 2019 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
Empty file.Empty file. -
chunheisiu revised this gist
Oct 18, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
Empty file. -
chunheisiu revised this gist
Oct 18, 2019 . No changes.There are no files selected for viewing
-
chunheisiu revised this gist
Oct 18, 2019 . 2 changed files with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # pandoc_md2html.sh <input filename> <output filename> <output file title> pandoc $1 \ --output=$2 \ --from=gfm \ --to=html5 \ --css=$HOME/git/markdown-css/github.css \ --self-contained \ --metadata=title:$3 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ # pandoc_md2pdf.sh <input filename> <output filename> <output file title> pandoc $1 \ -V geometry:margin=0.5in \ -V mainfont=Arial \ --output=$2 \ --from=gfm \ --to=latex \ --self-contained \ --pdf-engine=xelatex \ --metadata=title:$3 -
chunheisiu revised this gist
Oct 18, 2019 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ Useful shell scripts -
chunheisiu created this gist
Oct 18, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # Brew brew update; brew upgrade; brew cu -a; brew cleanup # Conda conda update --all # Pip pip install -U $(pip freeze | awk '{split($0, a, "=="); print a[1]}')