commit 08e57832b5fb574a5366c770a715e60cc0bf71b6 Author: root Date: Tue Oct 8 00:23:47 2019 -0400 init diff --git a/gophermap b/gophermap new file mode 100644 index 0000000..f7b56d3 --- /dev/null +++ b/gophermap @@ -0,0 +1,21 @@ +!Welcome to tilde.club! + + _______________________________________ +/ WELCOME TO TILDE.CLUB A PLACE FOR WEB \ +\ PAGES / + --------------------------------------- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\ + ||----w | + || || + + + +|------------------------------------------| +| More gopher pages on tilde.club | +|------------------------------------------| + +change your default gophermap to appear here + +=/var/gopher/modified_users.py diff --git a/modified_users.py b/modified_users.py new file mode 100755 index 0000000..1065840 --- /dev/null +++ b/modified_users.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import filecmp +import os + +def users(): + return sorted(os.listdir("/home"), key=lambda x: x.lower()) + +LINK = "1~{0} /~{0} tilde.club 70" + +for user in users(): + if os.path.exists(f"/home/{user}/public_gopher/gophermap"): + if not filecmp.cmp( + "/etc/skel/public_gopher/gophermap", + f"/home/{user}/public_gopher/gophermap", shallow=False): + print(LINK.format(user)) +