Remove old useless scripts and add mastosearch script

This commit is contained in:
Anthony Wang 2023-06-06 22:06:40 +00:00
parent 57336c16d0
commit 541599d73f
Signed by: a
GPG key ID: 42A5B952E6DD8D38
3 changed files with 3 additions and 23 deletions

3
mastosearch Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
sudo -u mastodon PAGER=less psql -c "select * from statuses where text like '%$@%'"

15
setid
View file

@ -1,15 +0,0 @@
#!/usr/bin/python
# Set up subuid and subgid for rootless Podman
# https://wiki.archlinux.org/title/Podman#Set_subuid_and_subgid
ids = ''
for uid in range(1000, 2000):
ids += f'{uid}:{(uid - 999) * 10**5}:{65536}\n'
# Save to system files
with open('/etc/subuid', 'w') as f:
f.write(ids)
with open('/etc/subgid', 'w') as f:
f.write(ids)

View file

@ -1,8 +0,0 @@
#!/usr/bin/fish
# Quickly delete multiple Matrix rooms using synadm
# Requires https://github.com/JOJ0/synadm
for i in $argv
echo y | synadm room delete $i
end