Skip to content

Instantly share code, notes, and snippets.

View whi-tw's full-sized avatar
🌐
YAY, STATUS FROM API

whi-tw

🌐
YAY, STATUS FROM API
View GitHub Profile
@whi-tw
whi-tw / README.MD
Last active April 14, 2024 14:54
UTM dynamic resolution fix (workaround)

Steps

  1. mkdir /opt/utm-resolution-fix/
  2. cp watch-and-fix.sh /opt/utm-resolution-fix/watch-and-fix.sh
  3. chmod +x /opt/utm-resolution-fix/watch-and-fix.sh
  4. cp utm-resolution-fix.service /etc/systemd/user/utm-resolution-fix.service
  5. systemctl --user daemon-reload
  6. systemctl --user enable --now utm-resolution-fix.service

Now, resizing the UTM window should actually resize the guest automatically.

@rhowe-gds
rhowe-gds / vpn
Last active June 4, 2019 15:44
VPN connection script
#!/usr/bin/env bash
set -euo pipefail
usage="$0: <up|down> [connection name]"
action="${1?$usage}"
connection="${2:-GDS VPN Developer}"
oath_key=vpn
pass_key=gds/vpn