Skip to content

Instantly share code, notes, and snippets.

@rblaine95
Last active February 9, 2021 09:07
Show Gist options
  • Save rblaine95/26269f58141724ccbc196509bb754ed8 to your computer and use it in GitHub Desktop.
Save rblaine95/26269f58141724ccbc196509bb754ed8 to your computer and use it in GitHub Desktop.
Get the latest Arch Linux mirrorlist for the country that corresponds to your IP
#!/bin/sh
curl -s https://archlinux.org/mirrorlist/\?country\=$(curl -s https://ifconfig.co/country-iso)\&protocol\=http\&protocol\=https\&ip_version\=4 | sed 's/\#S/S/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment