Skip to content

Instantly share code, notes, and snippets.

View tjarksaul's full-sized avatar
🦄

Tjark Saul tjarksaul

🦄
View GitHub Profile
@tjarksaul
tjarksaul / autosetup_external_monitor.py
Created August 3, 2023 12:27 — forked from debsankha/autosetup_external_monitor.py
Automatically setup external monitors
#!/usr/bin/env python3
"""
Automatically setup external monitors at MOIA so that it's to the right of the
internal screen
Prerequisite: [displayplacer](https://github.com/jakehilborn/displayplacer)
```bash
brew tap jakehilborn/jakehilborn && brew install displayplacer
```
@tjarksaul
tjarksaul / set-date-time-formats.sh
Last active July 12, 2024 07:40 — forked from chris-79/set-date-time-formats.sh
Set my preferred date and time formats on OS X
# declare my US locale
defaults write NSGlobalDomain AppleLocale -string "en_US@currency=EUR"
defaults write com.apple.systempreferences AppleIntlCustomFormat -dict-add "AppleIntlCustomLocale" "en_US"
# date string formats
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "1" "dd.MM.yy"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "2" "dd MMM yy"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "3" "dd MMMM yy"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "4" "EEEE, dd MMMM y"