From 5db8118b173d9ff0c4bc2d2c55e72967090ad991 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 30 Jun 2020 00:31:04 -0400 Subject: reducing use of php in favor of shellscript build --- .gitignore | 7 +- _header.html | 45 ----------- _newsdata.html | 43 ---------- _webmention.html | 2 - assets/helloworld.c | 16 ++++ assets/helloworld.cgi | Bin 0 -> 410784 bytes assets/icon.png | Bin 0 -> 1059 bytes assets/kcgi-starter.tar.gz | Bin 0 -> 2208 bytes assets/tilde.css | 196 +++++++++++++++++++++++++++++++++++++++++++++ build.sh | 63 +++++++++++++++ coc.php | 121 ---------------------------- extra/icon-large.png | Bin 0 -> 4059 bytes extra/icon.xcf | Bin 0 -> 5608 bytes faq.php | 61 -------------- helloworld.c | 16 ---- helloworld.cgi | Bin 410784 -> 0 bytes html/coc.html | 115 ++++++++++++++++++++++++++ html/faq.html | 67 ++++++++++++++++ html/index.html | 133 ++++++++++++++++++++++++++++++ html/signup.html | 35 ++++++++ html/stats.php | 26 ++++++ html/submit.php | 144 +++++++++++++++++++++++++++++++++ icon-large.png | Bin 4059 -> 0 bytes icon.png | Bin 1059 -> 0 bytes icon.xcf | Bin 5608 -> 0 bytes inc/_header.html | 7 ++ inc/_logonav.html | 45 +++++++++++ inc/_news.html | 43 ++++++++++ index.php | 138 ------------------------------- kcgi-starter.tar.gz | Bin 2208 -> 0 bytes signup.php | 41 ---------- stats.php | 30 ------- submit.php | 147 ---------------------------------- tilde.css | 196 --------------------------------------------- tilde.json | 1 - 35 files changed, 891 insertions(+), 847 deletions(-) delete mode 100644 _header.html delete mode 100644 _newsdata.html delete mode 100644 _webmention.html create mode 100644 assets/helloworld.c create mode 100755 assets/helloworld.cgi create mode 100644 assets/icon.png create mode 100644 assets/kcgi-starter.tar.gz create mode 100644 assets/tilde.css create mode 100755 build.sh delete mode 100755 coc.php create mode 100644 extra/icon-large.png create mode 100644 extra/icon.xcf delete mode 100755 faq.php delete mode 100644 helloworld.c delete mode 100755 helloworld.cgi create mode 100644 html/coc.html create mode 100644 html/faq.html create mode 100644 html/index.html create mode 100644 html/signup.html create mode 100755 html/stats.php create mode 100755 html/submit.php delete mode 100644 icon-large.png delete mode 100644 icon.png delete mode 100644 icon.xcf create mode 100644 inc/_header.html create mode 100644 inc/_logonav.html create mode 100644 inc/_news.html delete mode 100755 index.php delete mode 100644 kcgi-starter.tar.gz delete mode 100755 signup.php delete mode 100755 stats.php delete mode 100755 submit.php delete mode 100644 tilde.css delete mode 100644 tilde.json diff --git a/.gitignore b/.gitignore index 37ab0db..1521c8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1 @@ -fuzzies.log -ultimate-email -newusers.dat -/table.* -userlist -bannedusers.php +dist diff --git a/_header.html b/_header.html deleted file mode 100644 index 78e5c78..0000000 --- a/_header.html +++ /dev/null @@ -1,45 +0,0 @@ - - diff --git a/_newsdata.html b/_newsdata.html deleted file mode 100644 index 084fae8..0000000 --- a/_newsdata.html +++ /dev/null @@ -1,43 +0,0 @@ -

News

- -2020 June 08 -

Added a new IRC client: catgirl

- -2020 June 06 -

The upgrade to OpenBSD 6.7 was successful! The list of languages has been updated with the new versions that are available.

- -2020 May 03 -

Redesigned the site. News entries are moved to a more visible location, switched to a more readable -color scheme, and got rid of the logo image in favor of just text.

- -2020 May 02 -

git repos can now be served via git.tilde.institute from - your home directory! To get started, check the - wiki page.

- -2020 April 17 -

Some ssh host heys were regenerated and I also deployed SSHFP records. If you receive an error - related to this when connecting, - remove the old host key fingerprint:

-

ssh-keygen -R tilde.institute

-

Then connect and tell ssh to check the sshfp records:

-

ssh -o "VerifyHostKeyDNS ask" <user>@tilde.institute

-
- -2020 April 14 -

Upgraded to OpenBSD 6.6. Everything went smoothly. Enjoy!

- -2019 July 30 -

The server migration happened over the weekend, and there were very few issues resulting from the - migration. Success!

- -2019 July 04 -

We'll be moving to a much larger and more powerful server soon! Currently building it. We're hoping - to have everything ready for next week.

- -2019 June 06 -

Wow, we've hit 150 users! Also, we'll be upgrading to OpenBSD 6.5 on Monday evening around 10:00 PM - US Eastern Time, or 2:00 AM UTC (Tuesday).

- -2019 March 14 -

Welcome to the team, Kneezle!

diff --git a/_webmention.html b/_webmention.html deleted file mode 100644 index ced3288..0000000 --- a/_webmention.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/assets/helloworld.c b/assets/helloworld.c new file mode 100644 index 0000000..fcae386 --- /dev/null +++ b/assets/helloworld.c @@ -0,0 +1,16 @@ +#include +#include +#include +#include + +int +main(void) +{ + if (-1 == pledge("stdio", NULL)) + err(EXIT_FAILURE, "pledge"); + puts("Status: 200 OK\r"); + puts("Content-Type: text/html\r"); + puts("\r"); + puts("Hello, world!\n"); + return(EXIT_SUCCESS); +} diff --git a/assets/helloworld.cgi b/assets/helloworld.cgi new file mode 100755 index 0000000..72d7a16 Binary files /dev/null and b/assets/helloworld.cgi differ diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..d54a060 Binary files /dev/null and b/assets/icon.png differ diff --git a/assets/kcgi-starter.tar.gz b/assets/kcgi-starter.tar.gz new file mode 100644 index 0000000..9875fb5 Binary files /dev/null and b/assets/kcgi-starter.tar.gz differ diff --git a/assets/tilde.css b/assets/tilde.css new file mode 100644 index 0000000..416c6e7 --- /dev/null +++ b/assets/tilde.css @@ -0,0 +1,196 @@ +body { + background-color: #0B173B; + font-family: sans-serif; + color: #ffffff; + margin: 0 auto; + max-width: 90%; + font-size: 1.0em; +} + +pre { + display: block; + white-space: pre; + word-break: break-all; + overflow-x: auto; +} + +.date { + font-weight: bold; +} + +#logo { + text-align: center; + font-family: monospace; + font-size: 1em; +} + +#navigation { + display: flex; + flex-wrap: wrap; + text-decoration: none; + margin: 0; + padding: 0; +} + +#navigation div { + background-color: #0B3861; + flex-grow: 1; + min-width: 3.2rem; + padding: .2em; + margin: .05em; + text-align: center; +} + +#navigation div:hover { + background-color: #045fb4; +} + +#navigation div a { + color: white; + text-align: center; + text-decoration: none; +} + +#content { + margin: 0 auto; +} + +@media (min-width: 1024px) { + body { + max-width: 75%; + } + #news { + float: right; + max-width: 29%; + } + #front-content { + max-width: 69%; + float: left; + } + #sshfp { + float: left; + } +} + +#code { + font-family: monospace; + font-size: 1.0em; + max-width: 75%; + margin: 0 auto; +} + +.code { + font-family: monospace; + font-size: 1.0em; + max-width: 50%; + margin: 0 auto; +} + +.faq { + width: 75%; +} + +.faq .q { + margin-top: 3rem; + font-weight: bold; + font-style: italic; + text-indent: 0rem; + font-size: 1.2em; +} + +.faq p { + text-indent: 2rem; +} + +.faq h1 { + font-size: 1.75em; + text-align: center; + margin-bottom: -1.5rem; +} + +a:link { + text-decoration: underline; + color:#ffffff; +} + +a:visited { + color:#ffffff; + text-decoration: underline; +} + +a:hover { + color:#a4a4a4; + text-decoration: underline; +} + +p { + text-indent: 15px; +} + +code { + text-indent: 2rem; + font-family: monospace; + font-size: 1.0em; + padding-left: 0.3rem; + padding-right: 0.3rem; +} + +em { + font-weight: bold; +} + +h1 { + font-size: 1.75em; + text-align: center; +} + +h2 { + font-size: 1.4em; +} + +h3 { + font-size: 1.2em; +} + +h4 { + font-size: 1.1em; + margin-top: 0.2rem; +} + +.userlist { + margin: 0 auto; +} + +.userlist ul { + list-style-position: inside; + display: flex; + flex-flow: row wrap; + justify-content: space-evenly; + list-style-type: "\00BB\0020"; + padding-left: 3em; +} + +.userlist li { + white-space: nowrap; + flex: 10em; +} + +.userlist p { + text-align: center; +} + +.signup { + text-align: center; +} + +.signup input { + margin-bottom: 1.6rem; +} + +.signup h3 { + margin: 0.5rem; +} + +.signup p { + padding-bottom: 0.3rem; +} diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..841ba8f --- /dev/null +++ b/build.sh @@ -0,0 +1,63 @@ +#!/bin/sh + +set -e + +build() +{ + printf '\n%s\n' 'Starting build ...' + mkdir -p dist + + for FILE in html/*; do + FILENAME=$(basename "$FILE") + printf '\n%s %s\n' 'Building:' "$FILENAME" + + if [ "$FILENAME" != 'index.html' ]; then + sed '/{{HEADER}}/r inc/_header.html' "$FILE" | sed '/{{HEADER}}/D' | sed '/{{LOGONAV}}/r inc/_logonav.html' | sed '/{{LOGONAV}}/D' > "dist/$FILENAME" + else + sed '/{{HEADER}}/r inc/_header.html' "$FILE" | sed '/{{HEADER}}/D' | sed '/{{LOGONAV}}/r inc/_logonav.html' | sed '/{{LOGONAV}}/D' | sed '/{{NEWS}}/r inc/_news.html' | sed '/{{NEWS}}/D' > "dist/$FILENAME" + fi + done + + cp assets/* dist/ + printf '%s\n\n' 'Done!' +} + +installation() +{ + if [ ! -d dist ]; then + printf '\n%s\n\n' 'Please build first: ./build.sh' + exit 1 + fi + + INSTDIR=/var/www/htdocs + + printf '\n%s %s\n' 'Installing to' "$INSTDIR" + + for FILE in dist/*; do + FILENAME=$(basename "$FILE") + EXT=$(echo "$FILENAME" | cut -d'.' -f2) + + if [ "$EXT" = 'php' ] || [ "$EXT" = 'cgi' ]; then + install -m755 "$FILE" "$INSTDIR/$FILENAME" + else + install -m644 "$FILE" "$INSTDIR/$FILENAME" + fi + done + + printf '%s\n\n' 'Done!' +} + +clean() +{ + printf '\n%s\n\n' 'Cleaning ...' + rm -rf dist +} + +case "$1" in + install) + installation; exit ;; + clean) + clean; exit ;; + *) + build +esac \ No newline at end of file diff --git a/coc.php b/coc.php deleted file mode 100755 index afd8496..0000000 --- a/coc.php +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - tilde.institute :: Code of Conduct - - - - - - -
- -
-

tilde.institute code of conduct

-

tl;dr: Be kind to each other. Think carefully about the words you - use. Think carefully about what content you post and promote.

-

1. Purpose

-

A primary goal of tilde.institute is to be inclusive to the largest number of - community members, with the most varied and diverse backgrounds - possible. As such, we are committed to providing a friendly, safe and - welcoming environment for all, regardless of gender, sexual orientation, - ability, ethnicity, socioeconomic status, and religion (or lack - thereof).

-

This code of conduct outlines our expectations for all those who - participate in our community, as well as the consequences for - unacceptable behavior.

-

We invite all those who participate in tilde.institute to help create safe - and positive experiences for everyone.

-

2. Vision of tilde.institute

-

tilde.institute exists to provide a safe, non-judgemental, and fun place to - explore creative projects and to seek intentional digital community.

-

In a post-facebook age, it is up to small communities to gather and work - together to provide a space outside of the advertising-laden, corporate - mediated world of social media.

-

To that end, tilde.institute strives to be a radically inclusive community - where people of all backgrounds and all technological experience levels - can come together for peer education, to delight in one another's - creations and to make good conversation.

-

3. Expected Behavior

-
    -
  • Participate in an authentic and active way. In doing so, you - contribute to the health and longevity of tilde.institute.
  • -
  • Exercise consideration and respect in your speech and actions.
  • -
  • Attempt collaboration before conflict.
  • -
  • Refrain from demeaning, discriminatory, or harassing behavior and - speech.
  • -
  • If anyone asks you to stop a particular kind of behavior, always err - on the side of respecting their wishes. If you believe their request - is unreasonable or unfair, ask an admin, but don't respond with - hostility.
  • -
  • Be mindful of your surroundings and of your fellow participants. - Alert community leaders if you notice a dangerous situation, someone - in distress, or violations of this code of conduct, even if they - seem inconsequential.
  • -
-

4. Unacceptable Behavior

-

Unacceptable behaviors include: intimidating, harassing, abusive, - discriminatory, derogatory or demeaning speech or actions by any - tilde.institute user online, at any related events, or in one-on-one - communication carried out in the conduct of tilde.institute related projects. - Community event venues--physical or digital--may be shared with members - of the public; please be respectful to all patrons of these locations.

-

Harassment includes: harmful or prejudicial verbal or written comments - related to gender, age, sexual orientation, race, religious choices, - disability; inappropriate use of nudity and/or sexual images in public - spaces (like your \~ html pages); deliberate intimidation, stalking, or - following; harassing recording; sustained disruption of the work of - others; and unwelcome sexual attention.

-

5. Consequences of Unacceptable Behavior

-

Unacceptable behavior from any community member, including those with - decision making authority or sudo, will not be tolerated.

-

Anyone asked to stop unacceptable behavior is expected to comply immediately. - If a community member engages in unacceptable behavior, the tilde.institute admins - may take any action they deem appropriate, up to and including a temporary ban - or permanent expulsion from tilde.institute (meaning your user account would be - revoked) without warning.

-

6. If You Witness or Are Subject to Unacceptable Behavior

-

If you are subject to or witness unacceptable behavior, or have any - other concerns, please see the Contact Information section below.

-

Additionally, help engaging with law enforcement is always available.

-

7. Addressing Grievances

-

If you feel you have been falsely or unfairly accused of violating this - code of conduct, use the Contact Information section below to send a - concise description of your grievance.

-

8. Scope

-

We expect all tilde.institute members to abide by this code of conduct while:

-
    -
  • engaging with other users locally on the server
  • -
  • publishing content hosted on tilde.institute
  • -
  • engaging in community activities, whether in meatspace or cyberspace
  • -
-

9. Contact Information

-

tilde.institute admins:

- -

Admins can be reached privately:

-
    -
  • on IRC using /msg gbmor hello or /msg kneezle hello
  • -
  • via e-mail at the private addresses listed above.
  • -
-

10. License and Attribution

-

This code of conduct is based on Citizen Code of Conduct - github.com/stumpsyn/policies/ under the - terms of the Creative Commons - Attribution-ShareAlike - license.

-
-
- - - diff --git a/extra/icon-large.png b/extra/icon-large.png new file mode 100644 index 0000000..e5cac6f Binary files /dev/null and b/extra/icon-large.png differ diff --git a/extra/icon.xcf b/extra/icon.xcf new file mode 100644 index 0000000..10cf24d Binary files /dev/null and b/extra/icon.xcf differ diff --git a/faq.php b/faq.php deleted file mode 100755 index c7bc5f1..0000000 --- a/faq.php +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - tilde.institute :: FAQ - - - - - - -
- -
-

FAQ

- -

How do I change my interactive shell?

-

Once you've logged in, check the path for your desired shell with

-
$ which fish
-

Replacing fish with the the shell you want. In this case, the path will be /usr/local/bin/fish - Now, run:

-
$ EDITOR=nano chsh
-

Change the Shell line to read:

-
Shell: /usr/local/bin/fish
-

Save and exit. You'll need to log out then back in.

- -

How do I change the index page of my site?

-

Because of the way httpd(8) is set up, you'll need to ask in #institute or send an email to admins@tilde.institute

- -

Can you install this package for me?

-

As long as it's in the OpenBSD ports tree, and doesn't facilitate any potentially malicious behavior (like nmap), - then it's probably not a big deal. Either hop on IRC and ask in #institute or send an email to admins@tilde.institute

- -

How do I authenticate with SMTP remotely?

-

Only local access to SMTP is allowed. However, you can use an SSH tunnel on your machine to send mail.

-
ssh -nNTL 25:localhost:25 tilde.institute
-

You won't need to supply a username or password when sending mail via localhost:25 this way, since you're already authenticated via SSH.

- -

Can you whitelist a port for me in the firewall?

-

Sorry, but this presents too much of a security risk on a public-access system.

- -

Are user services allowed?

-

Generally, yes. If you're running something that's using a ton of resources or in some way affecting other users or the general use of the system, - then we'll kill it. Just be aware of what you're running and how it may affect the system and other users.

- -

Are IRC bots allowed?

-

Yes, though there are restrictions on their use on the tilde.chat IRC network. They should not reside in #meta, instead keep - them in a private channel or in #bots. Bots must also conform to the bot guidelines listed here.

-

Don't run eggdrop from tilde.institute. There are legitimate uses for eggdrop, but separating the people with some kind - of legitimate use from malicious users is tiring. So, no eggdrop.

-
-
-
-
- - - diff --git a/helloworld.c b/helloworld.c deleted file mode 100644 index fcae386..0000000 --- a/helloworld.c +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include -#include -#include - -int -main(void) -{ - if (-1 == pledge("stdio", NULL)) - err(EXIT_FAILURE, "pledge"); - puts("Status: 200 OK\r"); - puts("Content-Type: text/html\r"); - puts("\r"); - puts("Hello, world!\n"); - return(EXIT_SUCCESS); -} diff --git a/helloworld.cgi b/helloworld.cgi deleted file mode 100755 index 72d7a16..0000000 Binary files a/helloworld.cgi and /dev/null differ diff --git a/html/coc.html b/html/coc.html new file mode 100644 index 0000000..63c1b01 --- /dev/null +++ b/html/coc.html @@ -0,0 +1,115 @@ + + + + + tilde.institute :: Code of Conduct + {{HEADER}} + + + +
+ {{LOGONAV}} +
+

tilde.institute code of conduct

+

tl;dr: Be kind to each other. Think carefully about the words you + use. Think carefully about what content you post and promote.

+

1. Purpose

+

A primary goal of tilde.institute is to be inclusive to the largest number of + community members, with the most varied and diverse backgrounds + possible. As such, we are committed to providing a friendly, safe and + welcoming environment for all, regardless of gender, sexual orientation, + ability, ethnicity, socioeconomic status, and religion (or lack + thereof).

+

This code of conduct outlines our expectations for all those who + participate in our community, as well as the consequences for + unacceptable behavior.

+

We invite all those who participate in tilde.institute to help create safe + and positive experiences for everyone.

+

2. Vision of tilde.institute

+

tilde.institute exists to provide a safe, non-judgemental, and fun place to + explore creative projects and to seek intentional digital community.

+

In a post-facebook age, it is up to small communities to gather and work + together to provide a space outside of the advertising-laden, corporate + mediated world of social media.

+

To that end, tilde.institute strives to be a radically inclusive community + where people of all backgrounds and all technological experience levels + can come together for peer education, to delight in one another's + creations and to make good conversation.

+

3. Expected Behavior

+
    +
  • Participate in an authentic and active way. In doing so, you + contribute to the health and longevity of tilde.institute.
  • +
  • Exercise consideration and respect in your speech and actions.
  • +
  • Attempt collaboration before conflict.
  • +
  • Refrain from demeaning, discriminatory, or harassing behavior and + speech.
  • +
  • If anyone asks you to stop a particular kind of behavior, always err + on the side of respecting their wishes. If you believe their request + is unreasonable or unfair, ask an admin, but don't respond with + hostility.
  • +
  • Be mindful of your surroundings and of your fellow participants. + Alert community leaders if you notice a dangerous situation, someone + in distress, or violations of this code of conduct, even if they + seem inconsequential.
  • +
+

4. Unacceptable Behavior

+

Unacceptable behaviors include: intimidating, harassing, abusive, + discriminatory, derogatory or demeaning speech or actions by any + tilde.institute user online, at any related events, or in one-on-one + communication carried out in the conduct of tilde.institute related projects. + Community event venues--physical or digital--may be shared with members + of the public; please be respectful to all patrons of these locations.

+

Harassment includes: harmful or prejudicial verbal or written comments + related to gender, age, sexual orientation, race, religious choices, + disability; inappropriate use of nudity and/or sexual images in public + spaces (like your \~ html pages); deliberate intimidation, stalking, or + following; harassing recording; sustained disruption of the work of + others; and unwelcome sexual attention.

+

5. Consequences of Unacceptable Behavior

+

Unacceptable behavior from any community member, including those with + decision making authority or sudo, will not be tolerated.

+

Anyone asked to stop unacceptable behavior is expected to comply immediately. + If a community member engages in unacceptable behavior, the tilde.institute admins + may take any action they deem appropriate, up to and including a temporary ban + or permanent expulsion from tilde.institute (meaning your user account would be + revoked) without warning.

+

6. If You Witness or Are Subject to Unacceptable Behavior

+

If you are subject to or witness unacceptable behavior, or have any + other concerns, please see the Contact Information section below.

+

Additionally, help engaging with law enforcement is always available.

+

7. Addressing Grievances

+

If you feel you have been falsely or unfairly accused of violating this + code of conduct, use the Contact Information section below to send a + concise description of your grievance.

+

8. Scope

+

We expect all tilde.institute members to abide by this code of conduct while:

+
    +
  • engaging with other users locally on the server
  • +
  • publishing content hosted on tilde.institute
  • +
  • engaging in community activities, whether in meatspace or cyberspace
  • +
+

9. Contact Information

+

tilde.institute admins:

+ +

Admins can be reached privately:

+
    +
  • on IRC using /msg gbmor hello or /msg kneezle hello
  • +
  • via e-mail at the private addresses listed above.
  • +
+

10. License and Attribution

+

This code of conduct is based on Citizen Code of Conduct + github.com/stumpsyn/policies/ under the + terms of the Creative Commons + Attribution-ShareAlike + license.

+
+
+ + + \ No newline at end of file diff --git a/html/faq.html b/html/faq.html new file mode 100644 index 0000000..436504d --- /dev/null +++ b/html/faq.html @@ -0,0 +1,67 @@ + + + + + tilde.institute :: FAQ + {{HEADER}} + + + +
+ {{LOGONAV}} +
+

FAQ

+ +

How do I change my interactive shell?

+

Once you've logged in, check the path for your desired shell with

+
$ which fish
+

Replacing fish with the the shell you want. In this case, the path will be + /usr/local/bin/fish + Now, run:

+
$ EDITOR=nano chsh
+

Change the Shell line to read:

+
Shell: /usr/local/bin/fish
+

Save and exit. You'll need to log out then back in.

+ +

How do I change the index page of my site?

+

Because of the way httpd(8) is set up, you'll need to ask in #institute or send + an email to admins@tilde.institute

+ +

Can you install this package for me?

+

As long as it's in the OpenBSD ports tree, and doesn't facilitate any potentially malicious behavior + (like nmap), + then it's probably not a big deal. Either hop on IRC and ask in #institute or send an email + to admins@tilde.institute

+ +

How do I authenticate with SMTP remotely?

+

Only local access to SMTP is allowed. However, you can use an SSH tunnel on your machine to send mail. +

+
ssh -nNTL 25:localhost:25 tilde.institute
+

You won't need to supply a username or password when sending mail via localhost:25 this way, + since you're already authenticated via SSH.

+ +

Can you whitelist a port for me in the firewall?

+

Sorry, but this presents too much of a security risk on a public-access system.

+ +

Are user services allowed?

+

Generally, yes. If you're running something that's using a ton of resources or in some way affecting + other users or the general use of the system, + then we'll kill it. Just be aware of what you're running and how it may affect the system and other + users.

+ +

Are IRC bots allowed?

+

Yes, though there are restrictions on their use on the tilde.chat IRC network. They should + not reside in #meta, instead keep + them in a private channel or in #bots. Bots must also conform to the bot guidelines listed + here.

+

Don't run eggdrop from tilde.institute. There are legitimate uses for eggdrop, + but separating the people with some kind + of legitimate use from malicious users is tiring. So, no eggdrop.

+
+
+
+
+ + + \ No newline at end of file diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..b37ed4e --- /dev/null +++ b/html/index.html @@ -0,0 +1,133 @@ + + + + + tilde.institute :: Public-access OpenBSD system + {{HEADER}} + + + +
+ {{LOGONAV}} +
+

Welcome to tilde.institute, a public-access UNIX system running OpenBSD. This is a space for people to + explore the OpenBSD operating system, in addition to exploring the more social + aspects of a multi-user UNIX system. Gopher and web space, IRC, games, and more are available!

+

User sites are accessible via https://<user>.tilde.institute

+

A list of user gopherholes is available at + gopher://tilde.institute

+

User git repositories are at + https://git.tilde.institute

+

The mailing list will be the primary means of communication between tilde.institute admins and users + regarding announcements and critical issues. Web archive and subscribing + information available here.

+

The following services run directly on the server:

+
    +
  • cgit (wiki)
  • +
  • efingerd (wiki)
  • +
  • gophernicus (wiki)
  • +
  • httpd(8)
  • +
  • identd(8)
  • +
  • php73_fpm
  • +
  • slowcgi(8)
  • +
  • smtpd(8)
  • +
  • unbound(8)
  • +
+

The following services run on separate VMs:

+
    +
  • inspircd (wiki)
  • +
  • getwtxt (instance)
  • +
  • Dungeon Crawl Stone Soup (webtiles, for cli games run `dcss`)
  • +
+

IRC clients:

+
    +
  • catgirl
  • +
  • ircII
  • +
  • irssi
  • +
  • swirc
  • +
  • weechat
  • +
+

The compilers and interpreters available are:

+
    +
  • apl 1.8
  • +
  • brainf*ck 2.7.1
  • +
  • chicken (Scheme) 5.2.0
  • +
  • cim (Simula) 5.1
  • +
  • clang 8.0.1
  • +
  • clisp 2.49
  • +
  • clojure 1.10.1.469
  • +
  • crystal 0.30.1
  • +
  • cython 0.29.14 (Py2 and Py3)
  • +
  • elixir 1.10.2
  • +
  • erlang 21.2
  • +
  • fpc (Pascal) 3.0.4
  • +
  • gambit (Scheme) 4.9.3
  • +
  • gcc 8.3.0 (see the wiki page)
  • +
  • gerbil (Scheme) 0.15.1 (see the wiki page)
  • +
  • gforth 0.7.3
  • +
  • gfortran / g95 8.3.0 (see the wiki page)
  • +
  • ghc (Haskell) 8.6.4
  • +
  • gnat (Ada) 8.3.0
  • +
  • gnucobol 2.2
  • +
  • go 1.13.9
  • +
  • gpc (Pascal) 20070904
  • +
  • gprolog 1.4.5
  • +
  • guile 1.8.8 and 2.2.6
  • +
  • janet 1.8.1
  • +
  • jdk 11 and 8 (see the wiki page)
  • +
  • lua 5.3.5 and 5.1.5
  • +
  • mono 6.8.0.105
  • +
  • nasm 2.14.02
  • +
  • nbfc (brainf*ck) 0.1
  • +
  • newlisp 10.7.5
  • +
  • nim 1.2.0
  • +
  • node.js 12.16.1
  • +
  • ocaml 4.09.0
  • +
  • perl 5.30.2
  • +
  • php 7.3.18
  • +
  • pypy 7.2.0
  • +
  • python 2.7.18 and 3.7.7
  • +
  • racket 7.6
  • +
  • rakudo (Raku / Perl6) 2018.12
  • +
  • ruby 2.5.8, 2.6.6, 2.7.1
  • +
  • rust 1.42
  • +
  • sbcl (Common Lisp) 2.0.1
  • +
  • scala 2.12.9
  • +
  • squeak-vm (Smalltalk) 3.10.1
  • +
  • swi-prolog 7.6.0
  • +
  • tinyscheme 1.41
  • +
  • yasm 1.3.0
  • +
+

The interactive shells available are:

+
    +
  • /bin/ksh (default)
  • +
  • /bin/sh
  • +
  • /bin/csh
  • +
  • /usr/local/bin/bash
  • +
  • /usr/local/bin/dash
  • +
  • /usr/local/bin/zsh
  • +
  • /usr/local/bin/fish
  • +
  • /usr/local/bin/tcsh
  • +
  • /usr/local/bin/elvish
  • +
+
+
+
+
+ {{NEWS}} +
+
+
+256 SHA256:QSijnje9WlvxZyIXc5h8uJ2MzPCKbviy0WnBG7U4aP0 (ECDSA)
+256 SHA256:3n9E2Y0Kz4YeF776aUQNM+roVICTVQHFs64ekyADQxY (ED25519)
+3072 SHA256:GsmsdVkfRA8YznxI6EZJW+pf9IntSUIpNfeeGhpIs8w (RSA)
+1024 SHA256:foWYUgDuqfFIKnD2sLgeF1m2l9/ykSLwwlMyLWgesCA (DSA)
+          
+
+
+ + + diff --git a/html/signup.html b/html/signup.html new file mode 100644 index 0000000..482a4ba --- /dev/null +++ b/html/signup.html @@ -0,0 +1,35 @@ + + + + + tilde.institute :: Sign Up + {{HEADER}} + + + +
+ {{LOGONAV}} + +
+ + + \ No newline at end of file diff --git a/html/stats.php b/html/stats.php new file mode 100755 index 0000000..3ed3a27 --- /dev/null +++ b/html/stats.php @@ -0,0 +1,26 @@ + + + + tilde.institute :: Stats + {{HEADER}} + + +
+ {{LOGONAV}} +
+
+ +
+

Connected Users (5min):

+ +
+
+

Registered Users (1hr):

+ +
+
+
+ + diff --git a/html/submit.php b/html/submit.php new file mode 100755 index 0000000..1b297e8 --- /dev/null +++ b/html/submit.php @@ -0,0 +1,144 @@ + + + + tilde.institute :: Sign Up + {{HEADER}} + + +
+ {{LOGONAV}} +
+please fill in your desired username"; + if (strlen($name) > 32) + $message .= "
  • username too long (32 character max)
  • "; + if (!preg_match('/^[A-Za-z][A-Za-z0-9]{2,31}$/', $name)) + $message .= "
  • username contains invalid characters (lowercase only, must start with a letter)
  • "; + if (isTaken($name) || forbidden_name($name) || bannedUsers($name)) + $message .= "
  • sorry, the username $name is unavailable
  • "; + + // Check the e-mail address. + $email = trim($_REQUEST["email"]); + if ($email == "") + $message .= "
  • please fill in your email address
  • "; + else { + $result = SMTP::MakeValidEmailAddress($_REQUEST["email"]); + if (!$result["success"]) + $message .= "
  • invalid email address: " . htmlspecialchars($result["error"]) . "
  • "; + elseif ($result["email"] != $email) + $message .= "
  • invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "
  • "; + } + + if ($_REQUEST["sshkey"] == "") { + $message .= "
  • ssh key required: please create one and submit the public key
  • "; + } + + + if ($message == "") { // no validation errors + + // remember: + $username = $_REQUEST["username"]; + $email = $_REQUEST["email"]; + $interest = $_REQUEST["interest"]; + $sshkey = $_REQUEST["sshkey"]; + + $newuserfile = fopen("newusers.dat", "a"); + fwrite($newuserfile, "$username $email \"$sshkey\"\n\n"); + fclose($newuserfile); + $fuzzyfile = fopen("fuzzies.log", "a"); + fwrite($fuzzyfile, "$username $email $interest\n"); + fclose($fuzzyfile); +?> + +

    Thank you for signing up! Please allow up to 24 hours for an account to become active. If you have any questions or issues, please email admins@tilde.institute.

    + + + + +
    +
    + + diff --git a/icon-large.png b/icon-large.png deleted file mode 100644 index e5cac6f..0000000 Binary files a/icon-large.png and /dev/null differ diff --git a/icon.png b/icon.png deleted file mode 100644 index d54a060..0000000 Binary files a/icon.png and /dev/null differ diff --git a/icon.xcf b/icon.xcf deleted file mode 100644 index 10cf24d..0000000 Binary files a/icon.xcf and /dev/null differ diff --git a/inc/_header.html b/inc/_header.html new file mode 100644 index 0000000..cfd4d76 --- /dev/null +++ b/inc/_header.html @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/inc/_logonav.html b/inc/_logonav.html new file mode 100644 index 0000000..78e5c78 --- /dev/null +++ b/inc/_logonav.html @@ -0,0 +1,45 @@ + + diff --git a/inc/_news.html b/inc/_news.html new file mode 100644 index 0000000..084fae8 --- /dev/null +++ b/inc/_news.html @@ -0,0 +1,43 @@ +

    News

    + +2020 June 08 +

    Added a new IRC client: catgirl

    + +2020 June 06 +

    The upgrade to OpenBSD 6.7 was successful! The list of languages has been updated with the new versions that are available.

    + +2020 May 03 +

    Redesigned the site. News entries are moved to a more visible location, switched to a more readable +color scheme, and got rid of the logo image in favor of just text.

    + +2020 May 02 +

    git repos can now be served via git.tilde.institute from + your home directory! To get started, check the + wiki page.

    + +2020 April 17 +

    Some ssh host heys were regenerated and I also deployed SSHFP records. If you receive an error + related to this when connecting, + remove the old host key fingerprint:

    +

    ssh-keygen -R tilde.institute

    +

    Then connect and tell ssh to check the sshfp records:

    +

    ssh -o "VerifyHostKeyDNS ask" <user>@tilde.institute

    +
    + +2020 April 14 +

    Upgraded to OpenBSD 6.6. Everything went smoothly. Enjoy!

    + +2019 July 30 +

    The server migration happened over the weekend, and there were very few issues resulting from the + migration. Success!

    + +2019 July 04 +

    We'll be moving to a much larger and more powerful server soon! Currently building it. We're hoping + to have everything ready for next week.

    + +2019 June 06 +

    Wow, we've hit 150 users! Also, we'll be upgrading to OpenBSD 6.5 on Monday evening around 10:00 PM + US Eastern Time, or 2:00 AM UTC (Tuesday).

    + +2019 March 14 +

    Welcome to the team, Kneezle!

    diff --git a/index.php b/index.php deleted file mode 100755 index e0ce20e..0000000 --- a/index.php +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - tilde.institute :: Public-access OpenBSD system - - - - - - - -
    - -
    -

    Welcome to tilde.institute, a public-access UNIX system running OpenBSD. This is a space for people to - explore the OpenBSD operating system, in addition to exploring the more social - aspects of a multi-user UNIX system. Gopher and web space, IRC, games, and more are available!

    -

    User sites are accessible via https://<user>.tilde.institute

    -

    A list of user gopherholes is available at - gopher://tilde.institute

    -

    User git repositories are at - https://git.tilde.institute

    -

    The mailing list will be the primary means of communication between tilde.institute admins and users - regarding announcements and critical issues. Web archive and subscribing - information available here.

    -

    The following services run directly on the server:

    -
      -
    • cgit (wiki)
    • -
    • efingerd (wiki)
    • -
    • gophernicus (wiki)
    • -
    • httpd(8)
    • -
    • identd(8)
    • -
    • php73_fpm
    • -
    • slowcgi(8)
    • -
    • smtpd(8)
    • -
    • unbound(8)
    • -
    -

    The following services run on separate VMs:

    -
      -
    • inspircd (wiki)
    • -
    • getwtxt (instance)
    • -
    • Dungeon Crawl Stone Soup (webtiles, for cli games run `dcss`)
    • -
    -

    IRC clients:

    -
      -
    • catgirl
    • -
    • ircII
    • -
    • irssi
    • -
    • swirc
    • -
    • weechat
    • -
    -

    The compilers and interpreters available are:

    -
      -
    • apl 1.8
    • -
    • brainf*ck 2.7.1
    • -
    • chicken (Scheme) 5.2.0
    • -
    • cim (Simula) 5.1
    • -
    • clang 8.0.1
    • -
    • clisp 2.49
    • -
    • clojure 1.10.1.469
    • -
    • crystal 0.30.1
    • -
    • cython 0.29.14 (Py2 and Py3)
    • -
    • elixir 1.10.2
    • -
    • erlang 21.2
    • -
    • fpc (Pascal) 3.0.4
    • -
    • gambit (Scheme) 4.9.3
    • -
    • gcc 8.3.0 (see the wiki page)
    • -
    • gerbil (Scheme) 0.15.1 (see the wiki page)
    • -
    • gforth 0.7.3
    • -
    • gfortran / g95 8.3.0 (see the wiki page)
    • -
    • ghc (Haskell) 8.6.4
    • -
    • gnat (Ada) 8.3.0
    • -
    • gnucobol 2.2
    • -
    • go 1.13.9
    • -
    • gpc (Pascal) 20070904
    • -
    • gprolog 1.4.5
    • -
    • guile 1.8.8 and 2.2.6
    • -
    • janet 1.8.1
    • -
    • jdk 11 and 8 (see the wiki page)
    • -
    • lua 5.3.5 and 5.1.5
    • -
    • mono 6.8.0.105
    • -
    • nasm 2.14.02
    • -
    • nbfc (brainf*ck) 0.1
    • -
    • newlisp 10.7.5
    • -
    • nim 1.2.0
    • -
    • node.js 12.16.1
    • -
    • ocaml 4.09.0
    • -
    • perl 5.30.2
    • -
    • php 7.3.18
    • -
    • pypy 7.2.0
    • -
    • python 2.7.18 and 3.7.7
    • -
    • racket 7.6
    • -
    • rakudo (Raku / Perl6) 2018.12
    • -
    • ruby 2.5.8, 2.6.6, 2.7.1
    • -
    • rust 1.42
    • -
    • sbcl (Common Lisp) 2.0.1
    • -
    • scala 2.12.9
    • -
    • squeak-vm (Smalltalk) 3.10.1
    • -
    • swi-prolog 7.6.0
    • -
    • tinyscheme 1.41
    • -
    • yasm 1.3.0
    • -
    -

    The interactive shells available are:

    -
      -
    • /bin/ksh (default)
    • -
    • /bin/sh
    • -
    • /bin/csh
    • -
    • /usr/local/bin/bash
    • -
    • /usr/local/bin/dash
    • -
    • /usr/local/bin/zsh
    • -
    • /usr/local/bin/fish
    • -
    • /usr/local/bin/tcsh
    • -
    • /usr/local/bin/elvish
    • -
    -
    -
    -
    -
    - -
    -
    -
    -256 SHA256:QSijnje9WlvxZyIXc5h8uJ2MzPCKbviy0WnBG7U4aP0 (ECDSA)
    -256 SHA256:3n9E2Y0Kz4YeF776aUQNM+roVICTVQHFs64ekyADQxY (ED25519)
    -3072 SHA256:GsmsdVkfRA8YznxI6EZJW+pf9IntSUIpNfeeGhpIs8w (RSA)
    -1024 SHA256:foWYUgDuqfFIKnD2sLgeF1m2l9/ykSLwwlMyLWgesCA (DSA)
    -          
    -
    -
    - - - diff --git a/kcgi-starter.tar.gz b/kcgi-starter.tar.gz deleted file mode 100644 index 9875fb5..0000000 Binary files a/kcgi-starter.tar.gz and /dev/null differ diff --git a/signup.php b/signup.php deleted file mode 100755 index 0f8da66..0000000 --- a/signup.php +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - tilde.institute :: Sign Up - - - - - - -
    - - -
    - - - diff --git a/stats.php b/stats.php deleted file mode 100755 index 4109048..0000000 --- a/stats.php +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - tilde.institute :: Stats - - - - - -
    - -
    -
    - -
    -

    Connected Users (5min):

    - -
    -
    -

    Registered Users (1hr):

    - -
    -
    -
    - - diff --git a/submit.php b/submit.php deleted file mode 100755 index fe76f51..0000000 --- a/submit.php +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - tilde.institute :: Sign Up - - - - -
    - -
    -please fill in your desired username"; - if (strlen($name) > 32) - $message .= "
  • username too long (32 character max)
  • "; - if (!preg_match('/^[A-Za-z][A-Za-z0-9]{2,31}$/', $name)) - $message .= "
  • username contains invalid characters (lowercase only, must start with a letter)
  • "; - if (isTaken($name) || forbidden_name($name) || bannedUsers($name)) - $message .= "
  • sorry, the username $name is unavailable
  • "; - - // Check the e-mail address. - $email = trim($_REQUEST["email"]); - if ($email == "") - $message .= "
  • please fill in your email address
  • "; - else { - $result = SMTP::MakeValidEmailAddress($_REQUEST["email"]); - if (!$result["success"]) - $message .= "
  • invalid email address: " . htmlspecialchars($result["error"]) . "
  • "; - elseif ($result["email"] != $email) - $message .= "
  • invalid email address. did you mean: " . htmlspecialchars($result["email"]) . "
  • "; - } - - if ($_REQUEST["sshkey"] == "") { - $message .= "
  • ssh key required: please create one and submit the public key
  • "; - } - - - if ($message == "") { // no validation errors - - // remember: - $username = $_REQUEST["username"]; - $email = $_REQUEST["email"]; - $interest = $_REQUEST["interest"]; - $sshkey = $_REQUEST["sshkey"]; - - $newuserfile = fopen("newusers.dat", "a"); - fwrite($newuserfile, "$username $email \"$sshkey\"\n\n"); - fclose($newuserfile); - $fuzzyfile = fopen("fuzzies.log", "a"); - fwrite($fuzzyfile, "$username $email $interest\n"); - fclose($fuzzyfile); -?> - -

    Thank you for signing up! Please allow up to 24 hours for an account to become active. If you have any questions or issues, please email admins@tilde.institute.

    - - - - -
    -
    - - diff --git a/tilde.css b/tilde.css deleted file mode 100644 index 416c6e7..0000000 --- a/tilde.css +++ /dev/null @@ -1,196 +0,0 @@ -body { - background-color: #0B173B; - font-family: sans-serif; - color: #ffffff; - margin: 0 auto; - max-width: 90%; - font-size: 1.0em; -} - -pre { - display: block; - white-space: pre; - word-break: break-all; - overflow-x: auto; -} - -.date { - font-weight: bold; -} - -#logo { - text-align: center; - font-family: monospace; - font-size: 1em; -} - -#navigation { - display: flex; - flex-wrap: wrap; - text-decoration: none; - margin: 0; - padding: 0; -} - -#navigation div { - background-color: #0B3861; - flex-grow: 1; - min-width: 3.2rem; - padding: .2em; - margin: .05em; - text-align: center; -} - -#navigation div:hover { - background-color: #045fb4; -} - -#navigation div a { - color: white; - text-align: center; - text-decoration: none; -} - -#content { - margin: 0 auto; -} - -@media (min-width: 1024px) { - body { - max-width: 75%; - } - #news { - float: right; - max-width: 29%; - } - #front-content { - max-width: 69%; - float: left; - } - #sshfp { - float: left; - } -} - -#code { - font-family: monospace; - font-size: 1.0em; - max-width: 75%; - margin: 0 auto; -} - -.code { - font-family: monospace; - font-size: 1.0em; - max-width: 50%; - margin: 0 auto; -} - -.faq { - width: 75%; -} - -.faq .q { - margin-top: 3rem; - font-weight: bold; - font-style: italic; - text-indent: 0rem; - font-size: 1.2em; -} - -.faq p { - text-indent: 2rem; -} - -.faq h1 { - font-size: 1.75em; - text-align: center; - margin-bottom: -1.5rem; -} - -a:link { - text-decoration: underline; - color:#ffffff; -} - -a:visited { - color:#ffffff; - text-decoration: underline; -} - -a:hover { - color:#a4a4a4; - text-decoration: underline; -} - -p { - text-indent: 15px; -} - -code { - text-indent: 2rem; - font-family: monospace; - font-size: 1.0em; - padding-left: 0.3rem; - padding-right: 0.3rem; -} - -em { - font-weight: bold; -} - -h1 { - font-size: 1.75em; - text-align: center; -} - -h2 { - font-size: 1.4em; -} - -h3 { - font-size: 1.2em; -} - -h4 { - font-size: 1.1em; - margin-top: 0.2rem; -} - -.userlist { - margin: 0 auto; -} - -.userlist ul { - list-style-position: inside; - display: flex; - flex-flow: row wrap; - justify-content: space-evenly; - list-style-type: "\00BB\0020"; - padding-left: 3em; -} - -.userlist li { - white-space: nowrap; - flex: 10em; -} - -.userlist p { - text-align: center; -} - -.signup { - text-align: center; -} - -.signup input { - margin-bottom: 1.6rem; -} - -.signup h3 { - margin: 0.5rem; -} - -.signup p { - padding-bottom: 0.3rem; -} diff --git a/tilde.json b/tilde.json deleted file mode 100644 index b0f27f7..0000000 --- a/tilde.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"tilde.institute","url":"https://tilde.institute","signup_url":"https://tilde.institute/signup","user_count":276,"want_users":true,"admin_email":"admins@tilde.institute","description":"A public-access machine where users can explore the OpenBSD operating system.","last_generated":"Tue, 30 Jun 2020 03:00:02 +0000"} \ No newline at end of file -- cgit