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 python3 | |
# | |
# Copyright (c) 2020 Brenden Matthews <[email protected]> under the MIT license | |
# at https://opensource.org/licenses/MIT | |
# | |
# This script converts existing Route53 records into Terraform HCL. I created | |
# this for a one-off job. The script uses the AWS CLI to fetch Route53 info, | |
# and prints the corresponding TF code to stdout. | |
# | |
# Example usage: |
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
#cloud-config | |
repo_update: true | |
repo_upgrade: all | |
package_upgrade: true | |
bootcmd: | |
- test -z "$(blkid /dev/nvme0n1)" && mkfs -t ext4 -L scratch /dev/nvme0n1 | |
- mkdir -p /mnt/tmp | |
- mount /dev/nvme0n1 /mnt/tmp |
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/sh | |
# run with sudo | |
# Change this if your interface is not en0 (check with `ifconfig`) | |
if="en0" | |
# Will disassociate WiFi | |
/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -z | |
ifconfig $if ether `openssl rand -hex 6 | sed 's/\(..\)/:\1/g; s/^.\(.\)[0-3]/\12/; s/^.\(.\)[4-7]/\16/; s/^.\(.\)[89ab]/\1a/; s/^.\(.\)[cdef]/\1e/'` |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadDescription</key> | |
<string>Configures restrictions</string> | |
<key>PayloadDisplayName</key> |
OlderNewer