Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips and Traps¶
The package
maintells the Go compiler that the package should compile as an executable program instead of a shared library. Themainfunction in themainpackage is the entry point of the program.
Tips on macOS
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
Print Mac OS X operating system version information.
sw_vers -productName -
You can use Homebrew to install applications in Mac similar to the command
apt-getor wajig in Debian series of Linux …
Enable and Disable Key Repeating in macOS
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
Run the following command in terminal and then restart your Mac to enable key repeating by pressing and holding.
defaults write -g ApplePressAndHoldEnabled -bool false -
Run the following command in terminal …
Tips on Keyboard in macOS
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Shortcuts in macOS
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Customize Keybindings
You can customize keybindings by editing the file
~/Library/KeyBindings/DefaultKeyBinding.dict
.
For example,
to disable the system keybinding
Alt + e
and
Alt + .
(so that they can be used …
Manage Python Projects Using uv
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Installation
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
curl -LsSf https://astral.sh/uv/install …