Skip to content

Instantly share code, notes, and snippets.

@JonasGao
Created August 23, 2023 11:10
Show Gist options
  • Save JonasGao/97aea612fbc9480f50c28c37965c3541 to your computer and use it in GitHub Desktop.
Save JonasGao/97aea612fbc9480f50c28c37965c3541 to your computer and use it in GitHub Desktop.
#!/bin/bash
PROF="$1"
OUT="$2"
SERVER="$3"
[ "$PROF" = "" ] && echo "Missing Parameter 1: Profile name" && exit 1
[ "$OUT" = "" ] && OUT="${PROF}.yaml"
[ "$SERVER" = "" ] && SERVER="http://127.0.0.1:25500"
curl -vvo "$OUT" "${SERVER}/getprofile?name=profiles/${PROF}.ini&token=password&config=config/ACL4SSR_Online_Full.ini"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment