about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xbin/connusers.py12
-rwxr-xr-xbin/regusers.py2
2 files changed, 10 insertions, 4 deletions
diff --git a/bin/connusers.py b/bin/connusers.py
index 1128c34..26ab112 100755
--- a/bin/connusers.py
+++ b/bin/connusers.py
@@ -15,9 +15,15 @@ def checkconns():
 
     connusers = list(set(subprocess.check_output("/usr/local/bin/showwhoison | sed -n '1!p'; exit 0", stderr=subprocess.STDOUT,shell=True).decode().split("\n")))
     conntable.write("<ul>\n")
-    for conn in connusers:
-        if conn != "" and conn != "root":
-            conntable.write("<li><a href=\"https://"+ conn +".tilde.institute\">"+ conn +"</a></li>\n")
+
+    seen = set()
+    for conns in connusers:
+        split = conns.split(' ')
+        for conn in split:
+            if conn != "" and conn != " " and conn != "root" and conn not in seen:
+                seen.add(conn)
+                conntable.write("<li><a href=\"https://"+ conn +".tilde.institute\">"+ conn +"</a></li>\n")
+
 
     conntable.write("</ul>\n")
 
diff --git a/bin/regusers.py b/bin/regusers.py
index e6fff77..2c482d9 100755
--- a/bin/regusers.py
+++ b/bin/regusers.py
@@ -22,6 +22,6 @@ if __name__ == "__main__":
     regusers = get_regusers("/home")
     usertable.write("<ul>\n")
     for user in sorted(regusers):
-        if user != ".git" and user != "ahriman" and user != "uucp" and user != "admins":
+        if user != "lost+found" and user != ".git" and user != "uucp" and user != "admins":
             usertable.write("<li><a href=\"https://"+ user +".tilde.institute\">"+ user +"</a></li>\n")
     usertable.write("</ul>\n")
ik/mu/commit/070new-stream.subx?h=hlt&id=ca358b17a3fc36adcfbbb565675998de2d3e3576'>ca358b17 ^
33352536 ^



15b98801 ^
bc20cc3d ^
33352536 ^
6070c23e ^
33352536 ^

ca358b17 ^
33352536 ^
546a9298 ^
bc20cc3d ^
546a9298 ^
33352536 ^

bc20cc3d ^


546a9298 ^





ca358b17 ^
33352536 ^

bc20cc3d ^
33352536 ^
bc20cc3d ^


33352536 ^
bc20cc3d ^

33352536 ^
546a9298 ^
7a583220 ^
33352536 ^

bc20cc3d ^




3a044623 ^
bc20cc3d ^



33352536 ^
bc20cc3d ^
33352536 ^
7dac9ade ^
bc20cc3d ^


7a583220 ^
33352536 ^

71eb22a5 ^
c88b9e31 ^

33352536 ^
c88b9e31 ^
bc20cc3d ^
33352536 ^
bc20cc3d ^
bc20cc3d ^
c88b9e31 ^
bc20cc3d ^
33352536 ^


546a9298 ^




bc20cc3d ^
546a9298 ^
bc20cc3d ^

33352536 ^
bc20cc3d ^


546a9298 ^


33352536 ^
bc20cc3d ^

33352536 ^

bc20cc3d ^


33352536 ^
546a9298 ^

bfcc0f85 ^
bc20cc3d ^
bfcc0f85 ^
bc20cc3d ^
33352536 ^
bc20cc3d ^


33352536 ^
bc20cc3d ^
546a9298 ^

7a583220 ^
33352536 ^

bc20cc3d ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136