This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##############Script Settings################## | |
:local henetkey "XXXXXXXXXXXXXXXXXXXX" | |
:local henethost "XXXXXXXX.XX" | |
:local henameserver "ns1.he.net" | |
:local WANInter "wan" | |
############################################### | |
:local IpCurrent [/ip address get [find interface=$WANInter] address]; | |
:for i from=( [:len $IpCurrent] - 1) to=0 do={ | |
:if ( [:pick $IpCurrent $i] = "/") do={ | |
:local NewIP [:pick $IpCurrent 0 $i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -x '*.pyc' -Nur ./synapse.orig/config/homeserver.py ./synapse/config/homeserver.py | |
--- ./synapse.orig/config/homeserver.py 2018-07-09 11:47:10.914095067 +0300 | |
+++ ./synapse/config/homeserver.py 2018-07-09 11:51:56.074775020 +0300 | |
@@ -31,6 +31,7 @@ | |
from .password import PasswordConfig | |
from .jwt import JWTConfig | |
from .password_auth_providers import PasswordAuthProviderConfig | |
+from .message_filters import MessageFilterConfig | |
from .emailconfig import EmailConfig | |
from .workers import WorkerConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# For https://github.com/matrix-org/synapse/ | |
# Synapse old local media analyze and cleanup util. | |
# @author Pavel Kardash <pavel@kardash.su> | |
""" | |
Since synapse v0.27.0 there last_accessed_ts column | |
in table local_media_repository present. | |
This made it possible to clean unclaimed local media. |