This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
/** | |
### Exercises for the viewer | |
- Phase interrupt handling. | |
- Use Swift concurrency. | |
- Color scheme awareness. | |
- Rework animations to be more spring-like à la what shipped in `0.90.0`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Useful for improving Time Machine backup prep. times, Mac App Store install speeds, etc. | |
sudo sysctl debug.lowpri_throttle_enabled=0 | |
# To restore defaults | |
sudo sysctl debug.lowpri_throttle_enabled=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl rsa -outform der -in privkey.pem -out privkey.key | |
openssl x509 -outform der -in fullchain.pem -out fullchain.crt | |
openssl x509 -outform der -in cert.pem -out cert.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Changes by Erik Kristensen | |
# | |
# Changelog (2018/01/31) | |
# - Improved debugging, just set DEBUG=true in shell env | |
# - Can set critical, warning and service name via ENV vars or command line opts | |
# - Improved if statements for checking warning, critical conditions | |
# - Errors unknown if `bc` command line tool is not installed | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
softwareupdate --clear-catalog | |
Enabling is a bit more tricky, because you need to choose your channel/source. The options are: | |
OS X Public Beta | |
sudo softwareupdate --set-catalog https://swscan.apple.com/content/catalogs/others/index-10.12beta-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz | |
OS X Developer Beta catalog | |
sudo softwareupdate --set-catalog https://swscan.apple.com/content/catalogs/others/index-10.12seed-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz |