this is added as pull request here: matrix-org/synapse#1034
file: https://github.com/rubo77/synapse/blob/patch-2/docs/admin_api/purge_history_api.rst
#!/bin/bash | |
GITHUB_USERNAME=rubo77 | |
if [ "$1" == "" ]; then | |
echo 'usage: gistfile-post.sh filename [gistname]' | |
exit 0 | |
fi | |
# 0. file name for the Gist |
#!/bin/bash | |
# crontab -e | |
# 23 4 * * * bash /home/irc-bridge/.synapse/EIGENE_purge_history_daily > /dev/null 2>&1 | |
cd /home/irc-bridge/.synapse/ | |
DOMAIN="matrix.domain.org" | |
ADMIN="@some_admin:$DOMAIN" | |
TOKEN=$(sqlite3 homeserver.db "select token from access_tokens where user_id like '$ADMIN' order by id desc limit 1;") |
this is added as pull request here: matrix-org/synapse#1034
file: https://github.com/rubo77/synapse/blob/patch-2/docs/admin_api/purge_history_api.rst
there is always the latest full postgres dump at https://github.com/matrix-org/synapse/tree/master/synapse/storage/data_stores/main/schema/full_schemas
# 0. Your file name | |
FNAME=some.file | |
# 1. Somehow sanitize the file content | |
# Remove \r (from Windows end-of-lines), | |
# Replace tabs by \t | |
# Replace " by \" | |
# Replace EOL by \n | |
CONTENT=$(sed -e 's/\r//' -e's/\t/\\t/g' -e 's/"/\\"/g' "${FNAME}" | awk '{ printf($0 "\\n") }') |
If you have any questions open an issue there or enhancements as Pull Request
replacement for all mysql functions
Be aware, that this is just a workaround to fix-up some old code and the resulting project will be more vulnerable than if you use the recommended newer mysqli-functions instead. So only If you are sure that this is not setting your server at risk, you can fix your old
password | |
123456 | |
12345678 | |
1234 | |
qwerty | |
12345 | |
dragon | |
pussy | |
baseball | |
football |
import socket | |
from BaseHTTPServer import HTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
class MyHandler(SimpleHTTPRequestHandler): | |
def do_GET(self): | |
if self.path == '/ip': | |
self.send_response(200) | |
self.send_header('Content-type', 'text/html') | |
self.end_headers() |
default partial alphanumeric_keys | |
xkb_symbols "basic" { | |
name[Group1]= "XX Marcelo (International)"; | |
key <TLDE> { [ dead_circumflex, quotedbl, apostrophe, section ] }; | |
key <AE01> { [ 1, exclam, onesuperior, exclamdown ] }; | |
key <AE02> { [ 2, at, twosuperior, oneeighth ] }; | |
key <AE03> { [ 3, numbersign, threesuperior, sterling ] }; | |
key <AE04> { [ 4, dollar, foursuperior, dollar ] }; |
Nein. Nach dem Erwerb des Knotens nimmst du direkt am Mesh teil. Es gibt keine weiteren Kosten.
Nein, im Moment nicht. Das Mesh lässt sich jedoch gut als Ersatz verwenden, falls dein Internetanschluss ausfällt. Wenn du in Funkreichweite anderer Knoten bist, wird dein Knoten automatisch eine andere Verbindung nutzen.