mirror of
https://github.com/xvxx/phd
synced 2024-11-04 18:00:22 +00:00
fix download urls
This commit is contained in:
parent
a08b63a22c
commit
f16abf9c15
26
README.md
26
README.md
@ -8,7 +8,7 @@
|
||||
|
||||
`phd` is an esoteric gopher server for small gopherholes.
|
||||
|
||||
point it at a directory and it'll serve up all its text files, sub-directories, and binary files over gopher. any `.gph` files will be served up as [gopermaps](https://en.wikipedia.org/wiki/Gopher_(protocol)#Source_code_of_a_menu), and executable `.gph` files will be run as a script with their output served to the client, like cgi!
|
||||
point it at a directory and it'll serve up all its text files, sub-directories, and binary files over gopher. any `.gph` files will be served up as [gopermaps](https://en.wikipedia.org/wiki/Gopher_(protocol)#Source_code_of_a_menu), and executable `.gph` files will be run as a script with their output served to the client, like cgi!
|
||||
|
||||
special files:
|
||||
|
||||
@ -18,9 +18,9 @@ special files:
|
||||
- **??.gph**: visiting gopher://yoursite/1/dog/ will try to render `dog.gph` from disk.
|
||||
- **.reverse**: if this exists, the directory contents will be listed in reverse alphanumeric order. useful for phloggin'.
|
||||
|
||||
any line in a `.gph` file that doesn't contain tabs (`\t`) and doesn't start with an `i` will get an `i` automatically prefixed, turning it into a gopher information item.
|
||||
any line in a `.gph` file that doesn't contain tabs (`\t`) and doesn't start with an `i` will get an `i` automatically prefixed, turning it into a gopher information item.
|
||||
|
||||
any `.gph` file that is marked **executable** with be run as if it were a shell script and its output will be sent to the client. it will be passed three arguments: the query string (if any, the host, and the port. do with them what you will.
|
||||
any `.gph` file that is marked **executable** with be run as if it were a shell script and its output will be sent to the client. it will be passed three arguments: the query string (if any, the host, and the port. do with them what you will.
|
||||
|
||||
for example:
|
||||
|
||||
@ -44,12 +44,12 @@ or more seriously:
|
||||
then:
|
||||
|
||||
$ gopher-client gopher://localhost/1/figlet?hi gopher
|
||||
[INFO] _ _ _
|
||||
[INFO] | |__ (_) __ _ ___ _ __ | |__ ___ _ __
|
||||
[INFO] _ _ _
|
||||
[INFO] | |__ (_) __ _ ___ _ __ | |__ ___ _ __
|
||||
[INFO] | '_ \| | / _` |/ _ \| '_ \| '_ \ / _ \ '__|
|
||||
[INFO] | | | | | | (_| | (_) | |_) | | | | __/ |
|
||||
[INFO] |_| |_|_| \__, |\___/| .__/|_| |_|\___|_|
|
||||
[INFO] |___/ |_|
|
||||
[INFO] | | | | | | (_| | (_) | |_) | | | | __/ |
|
||||
[INFO] |_| |_|_| \__, |\___/| .__/|_| |_|\___|_|
|
||||
[INFO] |___/ |_|
|
||||
|
||||
|
||||
## usage
|
||||
@ -78,9 +78,9 @@ then:
|
||||
|
||||
binaries for linux, mac, and raspberry pi are available at https://github.com/dvkt/phd/releases:
|
||||
|
||||
- [phetch-v0.1.2-linux-x86_64.tar.gz](https://github.com/dvkt/phd/releases/download/v0.1.2/phetch-v0.1.2-linux-x86_64.tar.gz)
|
||||
- [phetch-v0.1.2-linux-armv7.tar.gz (RPi)](https://github.com/dvkt/phd/releases/download/v0.1.2/phetch-v0.1.2-linux-armv7.tar.gz)
|
||||
- [phetch-v0.1.2-macos.zip](https://github.com/dvkt/phetch/phd/download/v0.1.2/phetch-v0.1.2-macos.zip)
|
||||
- [phd-v0.1.2-linux-x86_64.tar.gz][0]
|
||||
- [phd-v0.1.2-linux-armv7.tar.gz (RPi)][1]
|
||||
- [phd-v0.1.2-macos.zip][2]
|
||||
|
||||
just unzip/untar the `phd` program into your $PATH and get going!
|
||||
|
||||
@ -100,3 +100,7 @@ just unzip/untar the `phd` program into your $PATH and get going!
|
||||
- [ ] systemd config, or something
|
||||
- [ ] TLS support
|
||||
- [ ] man page
|
||||
|
||||
[0]: https://github.com/dvkt/phd/releases/download/v0.1.2/phd-v0.1.2-linux-x86_64.tar.gz
|
||||
[1]: https://github.com/dvkt/phd/releases/download/v0.1.2/phd-v0.1.2-linux-armv7.tar.gz
|
||||
[2]: https://github.com/dvkt/phd/releases/download/v0.1.2/phd-v0.1.2-macos.zip
|
||||
|
Loading…
Reference in New Issue
Block a user