magnet.cgi (204B)
1 #!/bin/sh 2 uri="$QUERY_STRING" 3 referer="$HTTP_REFERER" 4 5 [ -z "$uri" ] && printf "Error: No URI\n" >&2 && exit 1 6 7 open "$uri" 8 9 [ -n "$referer" ] && printf "HTTP/1.1 303 See Other\nLocation %s\n" "$referer"
dotfilesMy personal shell configs and stuff | |
git clone git://git.alex.balgavy.eu/dotfiles.git | |
Log | Files | Refs | Submodules | README | LICENSE |