Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
How to Use This Script | |
1. Open Finder | |
2. Hit ⌘⇧L (Command + Shift + L) | |
3. Locate the Scripts folder | |
4. Move Stop_Media_When_AirPods_Disconnect_For_Tooth_Fairy.scpt to ~/Library/Scripts/ | |
5. Open Tooth Fairy preferences | |
6. Select your AirPods and click “Advanced” | |
7. Make sure that “Run shell script after disconnecting” is ticked | |
8. Paste this in there: |
#!/bin/bash -e | |
BOARD=e300 | |
if [ ! $(dpkg-query --show wireguard) ]; then | |
tag=$(curl "https://api.github.com/repos/Lochnair/vyatta-wireguard/releases" | jq -r '.[0].tag_name') | |
deb_url="https://github.com/Lochnair/vyatta-wireguard/releases/download/$tag/wireguard-$BOARD-$tag-1.deb" | |
curl -L -o "/tmp/wireguard-$BOARD-$tag.deb" "$deb_url" | |
dpkg -i "/tmp/wireguard-$BOARD-$tag.deb" | |
rm "/tmp/wireguard-$BOARD-$tag.deb" | |
source /opt/vyatta/etc/functions/script-template | |
configure |
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
# | |
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
# | |
ssh -i <your private key.pem> ec2-user@<your public ip address> | |
# | |
# On the Mac |