A complete guide to kill, remove, and prevent Microsoft AutoUpdate from running on macOS.
pkill -9 -f "Microsoft AutoUpdate"
pkill -9 -f "Microsoft AU"| hellow gist |
| #!/bin/bash | |
| # | |
| # Claude Code Statusline Script | |
| # A custom statusline for Claude Code CLI with real-time usage metrics | |
| # | |
| # ============================================================================ | |
| # INSTALLATION | |
| # ============================================================================ | |
| # | |
| # 1. Download this script: |
| {"name":"lizard.quarto.basic","settings":"{\"settings\":\"{\\n \\\"files.associations\\\": {\\n \\\"renv.lock\\\": \\\"json\\\"\\n },\\n \\\"workbench.preferredHighContrastColorTheme\\\": \\\"Catppuccin Latte\\\",\\n \\\"positron.assistant.enable\\\": true,\\n \\\"positron.assistant.alwaysEnableApplyInEditorAction\\\": true,\\n \\\"positron.assistant.followups.enable\\\": true,\\n \\\"claudeCode.preferredLocation\\\": \\\"panel\\\",\\n \\\"window.newWindowProfile\\\": \\\"Default\\\"\\n}\"}","extensions":"[{\"identifier\":{\"id\":\"anthropic.claude-code\",\"uuid\":\"3c13ae49-babe-45fe-8c48-5e45077a62bf\"},\"displayName\":\"Claude Code for VS Code\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc\",\"uuid\":\"69264e4d-cd3b-468a-8f2b-e69673c7d864\"},\"displayName\":\"Catppuccin for VSCode\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"catppuccin.catppuccin-vsc-icons\",\"uuid\":\"625b9abd-dfac-405b-bf34-e65f46e2f22f\"},\"displayName\":\"Ca |
| @article{Clegg2006, | |
| author = {Clegg, D. O. and Reda, D. J. and Harris, C. L. and others}, | |
| title = {Glucosamine, chondroitin sulfate, and the two in combination for painful knee osteoarthritis}, | |
| journal = {New England Journal of Medicine}, | |
| year = {2006}, | |
| volume = {354}, | |
| number = {8}, | |
| pages = {795--808}, | |
| doi = {10.1056/NEJMoa052771}, | |
| note = {葡萄糖胺/軟骨素(膝關節炎):整體族群無減痛效益,僅中重度疼痛亞組顯示可能有效。} |
| #!/bin/bash | |
| # Downloads Organizer Script | |
| # Organizes files by age (3d, 7d, 14d, 30d, old) and then by file type | |
| set -e | |
| # Configuration | |
| DOWNLOADS_DIR="/Users/htlin/Downloads" | |
| DRY_RUN=${DRY_RUN:-false} |
| /** | |
| * Adds a menu to run the converter. | |
| */ | |
| function onOpen() { | |
| DocumentApp.getUi() | |
| .createMenu('Markdown') | |
| .addItem('Convert #, **, and lists', 'convertMarkdownHeadingsAndBold') | |
| .addToUi(); | |
| } |
| #!/bin/bash | |
| echo "Removing Microsoft AutoUpdate..." | |
| # Kill any running Microsoft AutoUpdate processes | |
| echo "Killing Microsoft AutoUpdate processes..." | |
| # Find PIDs of Microsoft AutoUpdate processes | |
| PIDS=$(ps aux | grep -i "Microsoft AutoUpdate" | grep -v grep | awk '{print $2}') |
| #!/bin/bash | |
| # 讀取 JSON 輸入 | |
| json_input="$(cat)" | |
| # 擷取 message 欄位(需要 jq) | |
| message="$(echo "$json_input" | jq -r '.message')" | |
| # 如果 jq 或訊息抓不到,就退出 | |
| if [[ -z "$message" || "$message" == "null" ]]; then |
| START=1 | |
| END=100 | |
| for i in $(seq -w $START $END); do | |
| echo "Now processing note ${i}..." | |
| claude -p --verbose "Now Process ${i}.md, YOUR_PROMPT_HERE" | |
| osascript -e "display notification \"Finished ${i}\" with title \"Claude Processing\"" | |
| done | |
| osascript -e "display notification \"All notes from ${START} to ${END} processed.\" with title \"Done\"" |