2
0
mirror of https://github.com/tildeclub/gopherhole synced 2024-06-17 21:37:04 +00:00
This commit is contained in:
root 2019-10-08 00:23:47 -04:00
commit 08e57832b5
2 changed files with 37 additions and 0 deletions

21
gophermap Normal file
View File

@ -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

16
modified_users.py Executable file
View File

@ -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))