SMOLNET PORTAL home about changes
get-random-ad.sh - tgtimes - The Gopher Times
(URL) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes (git://bitreich.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
get-random-ad.sh (215B)
---
1 #!/bin/sh
2
3 source ./opus
4
5 cd opus${v}
6 adfilename="$(($RANDOM % 8 + 2))-advertisement-$RANDOM.raw"
7 curl -s gophers://bitreich.org/0/ads/random \
8 > $adfilename
9 printf "opus%s/%s generated.\n" "${v}" "${adfilename}"
10
Response: application/gopher-menu
Original URLgopher://bitreich.org/1/scm/tgtimes/file/auto-content/get...
Content-Typeapplication/gopher-menu; charset=utf-8