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
| #!/usr/bin/env bash | |
| # | |
| # fix-t2-macbook.sh | |
| # Script to restore Apple T2 drivers, kernel, Touch Bar, and audio support after an OS upgrade. | |
| # | |
| set -euo pipefail | |
| # Ensure the script is run with root privileges | |
| if [ "${EUID}" -ne 0 ]; then |
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
| def is_prime(num): | |
| if num <= 1: | |
| return False | |
| if num <= 3 or num < 9 and num % 2 != 0: | |
| return True | |
| # If the last digit contain one of the following | |
| # or if the number is divisible by 2 or 3 |
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
| auto lo | |
| iface lo inet loopback | |
| iface eth0 inet dhcp | |
| auto wlan0 | |
| allow-hotplug wlan0 | |
| iface wlan0 inet dhcp | |
| wpa-scan-ssid 1 | |
| wpa-ap-scan 1 |