NB: to list keys: gpg --list-keys
If you have the key, delete it
gpg --delete-key keyIDhereReplaceMeFetch it
gpg --keyserver keys.gnupg.net --recv-keys keyIDhereReplaceMeWith this example you will be able to use modern PHP code and have multiple clients connected.
The code is inspired and sourced from the of the posted notes here.
If you CTRL-C stopped the server, run the script twice. The first time will clean up the left over socket. Or just remove the socket file before starting the server.
There is a "magic" command (STOP) in the code to stop the server, you can easily remove it.
| #!/bin/sh | |
| # Source: https://gist.github.com/williamdes/7a63ba6af24ea91edaf988ba8078b0fa | |
| set -eu | |
| if [ -z "${1:-}" ]; then | |
| echo "Missing the domain name to add" | |
| echo "Use: ~/add-cert.sh mynewdomain.tld" | |
| echo "To add multiple domains you can use: ~/add-cert.sh \"mynewdomain.tld -d www.mynewdomain.tld\"" |
| /** | |
| * @source https://github.com/errwischt/stacktrace-parser/blob/9b2d5b6114e7a3b3596f7092f0d1160738125374/src/stack-trace-parser.js | |
| * @copyright Copyright (c) 2014-2019 Georg Tavonius | |
| * @license MIT | |
| * This is the same code but only with removed parsing for all browsers or JS platforms else than NodeJS | |
| */ | |
| const StackTraceParser = { | |
| UNKNOWN_FUNCTION: '<unknown>', | |
| /** |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Minimal PHP paste client for paste.debian.net | |
| * Only implements add paste functionality from stdin | |
| * Inspired by https://github.com/gebi/debianpaste-clients/blob/master/paste.py | |
| * | |
| * @source https://paste.debian.net/1389513 | |
| * @source https://gist.github.com/williamdes/9f1739cfb786be40d00812cdb8a5e772 | |
| * @see https://paste.debian.net/rpc-interface.html |
| # See: https://netmeister.org/tldstats/index.html | |
| # See: https://netmeister.org/tldstats/all.html | |
| # Restriction: 50 patterns | |
| # Excluded: .cn - Not relevant in Europe | |
| # Excluded: .ru - Not relevant in Europe | |
| # Excluded: .top - Who uses this ? | |
| # Excluded: .xyz - Who uses this ? | |
| *.com | |
| *.de |