https://github.com/adsr/rw.rs
free shell account and web 1.0 hosting @ http://rw.rs/~you
https://github.com/adsr/rw.rs
hacktoberfest
Last synced: about 1 year ago
JSON representation
free shell account and web 1.0 hosting @ http://rw.rs/~you
- Host: GitHub
- URL: https://github.com/adsr/rw.rs
- Owner: adsr
- Created: 2019-04-13T21:07:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-07T03:45:51.000Z (about 1 year ago)
- Last Synced: 2025-05-07T04:32:01.922Z (about 1 year ago)
- Topics: hacktoberfest
- Language: Shell
- Homepage: http://rw.rs
- Size: 1.2 MB
- Stars: 100
- Watchers: 9
- Forks: 147
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rw.rs
An experimental software community with a 199X aesthetic.
To join, submit a pull request with your public key at `users//authorized_keys`[^1].
### Quickstart
$ # Fork rw.rs repo on GitHub
$ git clone https://github.com//rw.rs.git
$ cd rw.rs
$
$ # Generate key pair (or use an existing key)
$ ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_rwrs
$
$ # Add pub key to repo
$ mkdir users/ # Note: should be <= 10 chars
$ cp ~/.ssh/id_ed25519_rwrs.pub users//authorized_keys
$ git add users//authorized_keys
$ git commit -m 'add user '
$ git push
$
$ # Visit https://github.com//rw.rs.git
$ # Create pull request and wait until merged
$ # ...
$
$ # After ~10 minutes, account is auto-created
$ # Login!
$ ssh -i ~/.ssh/id_ed25519_rwrs @rw.rs
$
$ # Set your motd
$ echo hello users >~/motd
$
$ # Make your web page at http://rw.rs/~
$ mkdir ~/public_html
$ echo hello internet >~/public_html/index.html
$
$ # Idle in tilde.chat IRC
$ # Want a new feature? Feel free to submit PRs
$ # Enjoy
### CGI-like setup
In quasi-nostalgic fashion, rw.rs also supports CGI-like web apps if you want
to go beyond static HTML. Below is an example of a CGI-like PHP app, but you
can use whatever language you wish.
adsr@rwrs:~$ cat ~/.config/systemd/user/proxy.service
[Service]
ExecStart=/bin/bash -c 'socat UNIX-LISTEN:$HOME/public_html/proxy.sock,fork,perm-early=0666 "SYSTEM:timeout 2 $HOME/proxy"'
[Install]
WantedBy=default.target
adsr@rwrs:~$ ls -l ~/proxy
-rwxr-xr-x 1 adsr adsr 229 Dec 23 22:51 /home/adsr/proxy
adsr@rwrs:~$ cat proxy
#!/usr/bin/env php
Array
(
[host] => adsr
[user-agent] => curl/7.68.0
[accept] => */*
[x-forwarded-for] => ::1
[x-forwarded-host] => localhost
[x-forwarded-server] => default
[connection] => Keep-Alive
)
[content] =>
[verb] => GET
[uri] => /~adsr/proxy/test
[protocol] => HTTP/1.1
[uri_parts] => Array
(
[path] => /~adsr/proxy/test
)
[params] => Array
(
)
)
adsr@rwrs:~$ curl -s -X POST -d 'param=1' 'localhost/~adsr/proxy/test'
Array
(
[headers] => Array
(
[host] => adsr
[user-agent] => curl/7.68.0
[accept] => */*
[content-type] => application/x-www-form-urlencoded
[x-forwarded-for] => ::1
[x-forwarded-host] => localhost
[x-forwarded-server] => default
[content-length] => 7
[connection] => Keep-Alive
)
[content] => param=1
[verb] => POST
[uri] => /~adsr/proxy/test
[protocol] => HTTP/1.1
[uri_parts] => Array
(
[path] => /~adsr/proxy/test
)
[params] => Array
(
[param] => 1
)
)
[^1]: Due to abuse, only GitHub accounts with some sort of legit activity will
be accepted. If you don't have any GitHub activity, please link _to_ your
GitHub account _from_ some other established identity (e.g., another
tilde host, GitLab, a personal web site, etc.) and make a note of such in
your PR. For genuine beginners with no established identity, or people
wishing to preserve anonymity, I apologize. Unfortunately scammers have
used this service for spam and other crap, which has almost resulted in
the hosting provider terminating us.