This file contains 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
# | |
# A script for watching and reporting progress of iOS update file downloads. | |
# | |
# Supported platforms: macOS | |
# | |
# Once your update begins downloading, run | |
# * on macOS: | |
# python3 /path/to/ios-update-watcher.py | |
# | |
import collections |
This file contains 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
// WARNING: this script is very brittle and may not do what you intend. | |
// | |
// | |
// To run: | |
// 1. On github.com/watching, copy/paste the function into the console | |
// 2. Call the function, passing a function to filter repos to unwatch, e.g., | |
// unfollowMatches((repoName) => repoName.startsWith('rosston')) | |
// 3. Check the output of the function to make sure it looks right | |
// 4. Run the function again with `true` at the end to really for real make the changes, e.g., | |
// unfollowMatches((repoName) => repoName.startsWith('rosston'), true) |
This file contains 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 ruby | |
# Usage: | |
# sudo delete_old_tm_backups <path to backup volume> <regex> | |
# | |
# Example: | |
# sudo delete_old_tm_backups /Volumes/backup ^2019 | |
backup_volume = ARGV.shift | |
delete_regex = Regexp.new(ARGV.shift) |
This file contains 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 | |
# Built only to support macOS, almost certainly doesn't work on Linux | |
lan_mac='<your LAN MAC address>' | |
wifi_mac='<your Wi-Fi MAC address>' | |
test_url='<some test URL, which should fully support both IPv4 and IPv6>' | |
interfaces=$(ifconfig | grep -E '^[A-z0-9]+: ' | sed 's/: .*$//g') |
OlderNewer