GophHub script examples for testing from command-line:

examples assume gophhub.sh is saved at:
 ~/public_gopher/cgi-bin/gophhub.sh
and symlinked to:
 ~/public_gopher/gophhub/gophermap

Adapt these to suit your Gopher server and URL path:
 export SERVER_NAME=tilde.club REQUEST=/~freet/gophhub/

 Display repo "homepage" from GitHub URL
   QUERY_STRING= SEARCHREQUEST="https://www.github.com/torakiki/sejda" ~/public_gopher/gophhub/gophermap

 Download repo README in HTML
   QUERY_STRING='repo=torakiki/sejda&file=readme' ~/public_gopher/gophhub/gophermap

 Display sub-directory from GitHub URL
   QUERY_STRING= SEARCHREQUEST="https://www.github.com/torakiki/sejda/tree/master/sejda-docs/development" ~/public_gopher/gophhub/gophermap

 Display sub-directory listing with HTTPS file downloads from raw.githubusercontent.com
   QUERY_STRING='repo=torakiki/sejda&path=sejda-docs/development' ~/public_gopher/gophhub/gophermap

 Sub-directory listing with links to HTML formatted files retrieved via API
   QUERY_STRING='repo=torakiki/sejda&html=1&path=sejda-docs/development' ~/public_gopher/gophhub/gophermap

 Sub-directory listing with links to raw files retrieved via API
   QUERY_STRING='repo=torakiki/sejda&raw=1&path=sejda-docs/development' ~/public_gopher/gophhub/gophermap

 Download Markdown file with HTML formatting
   QUERY_STRING='repo=torakiki/sejda&path=CONTRIBUTING.md&html=1&file=1' ~/public_gopher/cgi-bin/gophhub.sh

 Download source file with HTML formatting and line numbers
   QUERY_STRING='repo=rodarima/dillo&html=1&num=1&file=1&path=src/file.c' ~/public_gopher/cgi-bin/gophhub.sh

 Download source file raw
   QUERY_STRING='repo=rodarima/dillo&raw=1&file=1&path=src/auth.h' ~/public_gopher/cgi-bin/gophhub.sh

 Display settings menu
   QUERY_STRING='repo=torakiki/sejda&settings=1&html=1&raw=1&num=1&path=' ~/public_gopher/gophhub/gophermap
