aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-02-24 21:09:23 +0100
committerEugen Wissner <belka@caraus.de>2025-02-24 21:58:47 +0100
commite4b90761b87dcc28e18382b6249ab08823acdad3 (patch)
tree0c169e40cf18d34dbb0b048a53e422285068d0e8 /README.md
parent2dd3856389f9080e122f3a76ceda9c64146eb262 (diff)
downloadkazbek-e4b90761b87dcc28e18382b6249ab08823acdad3.tar.gz
Add a table of contents
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/README.md b/README.md
index 806930c..40d9a81 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,10 @@
+1. [7digital.rb](#7digitalrb)
+2. [mock\_server.rb](#mock_serverrb)
+3. [read\_logs.rb](#read_logsrb)
+4. [cross\_toolchain.rb](#cross_toolchainrb)
+5. [rename.rb](#renamerb)
+6. [tea-cleaner](#tea-cleaner)
+
## 7digital.rb
7digital sells digital music but they can't handle files with non-English names.
@@ -64,3 +71,37 @@ Call the `rename.rb` without arguments to see the usage information and an
example.
## tea-cleaner
+
+`tea-cleaner` tries to detect spam accounts on a gitea instance and can remove
+them automatically.
+
+### Run instructions
+
+See `tea-cleaner.toml.dist` for a description of the available configuration.
+Copy this file to `config/tea-cleaner.toml` and change at least `token` and
+`server` values. After that if you just run `tea-cleaner` it will give a list
+of user accounts which look suspicious to it. Rerunning the command with the
+`--live-run` flag will purge the listed accounts and all their activities,
+assuming the given token has amdinistrative access to the Gitea instance.
+
+Run `tea-cleanr --help` to see all available command line options.
+
+### Applied rules
+
+Critical:
+
+- The account is elder than a month and the user hasn't logged in since then.
+- User information contains banned words (can be adjusted in the configuration file).
+- User's homepage contains percent encoded symbols.
+
+Possible:
+
+- User filled fields for personal information: description and website.
+- The mail address domain is unusual (can be adjusted in the configuration file).
+
+The accounts that violate one of the critical rules are marked for removal
+right away. Other checks trigger an additional lookup for the last user
+activities. If everything user did was creating an empty repository, these
+accounts are marked for removal as well.
+
+The rules are based on my invastigation of spam accounts on this instance.