Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View willbchang's full-sized avatar
📝
Learning & Creating

Will B Chang willbchang

📝
Learning & Creating
  • Shanghai, China
  • 00:47 (UTC +08:00)
View GitHub Profile
@willbchang
willbchang / yunshu_uninstaller.sh
Created October 13, 2023 02:44
卸载 云枢 app
sudo chflags -R noschg /Applications/Yunshu.app
sudo rm -rf /opt/yunshu \
/opt/.yunshu \
/Library/PrivilegedHelperTools/com.eagleyun.sase.helper \
/Applications/Yunshu.app
function cleanup() {
local target="$1"
@willbchang
willbchang / azure_tts.sh
Last active November 11, 2023 04:55
A simple example to use Azure text to speech REST API with shell script in macOS via Popclip Snippet. You can get the newest version from: https://github.com/willbchang/popclip-azure-text-to-speech
#!/bin/zsh
# #popclip
# name: Azure TTS
# icon: symbol:message.and.waveform
# Please apply for your own key
AZURE_REGION=
AZURE_SUBSCRIPTION_KEY=
# Create a temporary audio file
// https://developer.chrome.com/docs/devtools/overview/
// Get Nav Tree as Org Mode Headings
const navtree = document.querySelector('navigation-tree .direction-column')
const title = [...navtree.children].map(getInnerText)
.join('\n')
// You HAVE TO click the webpage after run this code in console.
setTimeout(async () => {
await window.navigator.clipboard.writeText(title)
}, 3000)
@willbchang
willbchang / ReadingListReader.swift
Created January 10, 2021 08:17 — forked from yaakov-h/ReadingListReader.swift
Read your Safari Reading List and dump to plain text
import Foundation
func fatalerror(_ text : String) {
fputs(text, __stderrp)
exit(-1)
}
struct ReadingListItem {
init(title: String?, previewText: String?, url: URL, dateAdded: Date) {
self.title = title
@willbchang
willbchang / .gitignore
Created January 9, 2021 12:13 — forked from Akhu/.gitignore
Xcode 12 + Swift UI Gitignore
# Created by https://www.toptal.com/developers/gitignore/api/swiftpackagemanager,swift,xcode,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=swiftpackagemanager,swift,xcode,macos
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
#!/bin/zsh
# AegeanSymphonicOrchestra-v2_2.sf2
# GeneralUser-v1.471.sf2
# SGM-V2.01.sf2
SOUNDFONT='/Users/Will/.config/.soundfont/SGM-V2.01.sf2'
if [ -e "$SOUNDFONT" ]
then
for i in "$@"

Install VSCode Extension: Custom CSS and JS Loader

/* Original Colors: https://www.schemecolor.com/matrix-code-green.php */
.mtk1,
.mtk10 {
  color: #FAFCFE;
  text-shadow: 0 0 1px #00FF41, 0 0 2px #008F11, 0 0 3px #003B00, 0 0 4px #0D0208;
}