Skip to content

Instantly share code, notes, and snippets.

View jeffzhkw's full-sized avatar

Kewei Zhang jeffzhkw

  • New York University
  • New York, NY
View GitHub Profile
@jeffzhkw
jeffzhkw / MacOS 14 Custom System Appearance
Last active November 30, 2023 17:54
MacOS 14 Custom System Appearance
# Forcing the system to use light theme appearance
defaults write -g NSRequiresAquaSystemAppearance -bool Yes
# "Except" the following...
defaults write com.apple.HIToolbox NSRequiresAquaSystemAppearance -bool No
defaults write com.apple.OSDUIHelper NSRequiresAquaSystemAppearance -bool No
defaults write com.apple.Spotlight NSRequiresAquaSystemAppearance -bool No
defaults write com.apple.menuextra.textinput NSRequiresAquaSystemAppearance -bool No
defaults write com.apple.notificationcenterui NSRequiresAquaSystemAppearance -bool No
defaults write com.apple.TextInputSwitcher NSRequriesAquaSystemAppearance -bool No
#!/bin/bash
read -p "Enter command: " input
api_key="YOUR_OPENAI_API_KEY_HERE"
prompt="\n\nHuman: please analyze the input text: '$input', \
and provide only the text that would fit directly into an osascript -e command to perform this action. \
DO NOT INCLUDE osascript -e itself and DO NOT return whitespace in front of the answer and DO NOT RETURN new line \
DO NOT add string escape for slash or double quote or single quote at all \
\n\nAssistant:"