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 -ruN mod_muc.lua.orig mod_muc.lua | |
--- mod_muc.lua.orig 2016-12-06 00:33:20.276048023 +0100 | |
+++ mod_muc.lua 2016-12-05 23:33:31.013246048 +0100 | |
@@ -201,7 +201,8 @@ | |
return true; | |
end | |
local from_host = jid_section(stanza.attr.from, "host"); | |
- if not origin.is_anonymous and | |
+-- if not origin.is_anonymous and | |
+ if |
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
#!/bin/bash | |
# | |
# add to section `[renewalparams]` of the file /etc/letsencrypt/renewal/$DOMAIN.conf | |
#post-hook = /root/scripts/metronome-letsencrypt.sh | |
cp -f /etc/letsencrypt/live/$DOMAIN/fullchain.pem /etc/metronome/certs/localhost.cert | |
chown metronome:root /etc/metronome/certs/localhost.cert | |
cp -f /etc/letsencrypt/live/$DOMAIN/privkey.pem /etc/metronome/certs/localhost.key | |
chown metronome:root /etc/metronome/certs/localhost.key | |
/usr/bin/metronomectl reload |
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
[metronome] | |
enabled = true | |
port = 5290,5291,5292,5280 | |
filter = metronome-auth | |
logpath = /var/log/metronome/metronome.log |
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
# | |
# this config file was generated | |
# using lirc-0.7.1pre2(serial) kantonix VDR | |
# | |
# contributed by Stefan Bernshausen | |
# | |
# brand: Terratec | |
# model no. of remote control: Cinergy T2 | |
# devices being controlled by this remote: | |
# |
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
apt-get install samba-vfs-modules | |
# more info at https://www.mankier.com/8/vfs_fruit | |
# add to share point: | |
ea support = yes | |
vfs objects = catia fruit streams_xattr | |
fruit:resource = file | |
fruit:metadata = netatalk | |
fruit:locking = netatalk |
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
$ apt-get install convmv | |
# more at https://linux.die.net/man/1/convmv | |
# compose (can be use as --nfd to decompose): | |
convmv -r -f utf-8 -t utf-8 --nfc --preserve-mtimes --nosmart --notest . |
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
# /etc/apache2/sites-available/kibana.conf | |
# create | |
<VirtualHost *:5601> | |
<Proxy *> | |
AuthUserFile /etc/kibana/kibana.htpasswd | |
AuthType basic | |
AuthName "Kibana" | |
require valid-user | |
</Proxy> |
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
[phpmyadmin] | |
enabled = true | |
port = 443 | |
filter = phpmyadmin | |
logpath = /var/log/auth.log | |
bantime = 3600 | |
findtime = 60 | |
maxretry = 7 |
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
# Fail2Ban filter to catch all http request | |
# | |
# Author: Alex Alouit <alexandre.alouit@gmail.com> | |
[Definition] | |
failregex = ^<HOST> -.*"(GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT).* | |
ignoreregex = |
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
#!/bin/bash | |
# | |
# cron ex: 1 0 * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /root/scripts/mail-purge.sh >> /root/scripts/cron.log | |
# Search messages more than 14 days in the appropriate directories and removes | |
find /var/vmail/ -regex '.*/\.\(Trash\|Junk\|Deleted\ Messages\)\(/.*\)?\/\(cur\|new\)/.*' -type f -ctime +14 -delete | |
# Dovecot is restarted to refresh quota (to update the .quotausage file) | |
/etc/init.d/dovecot restart | |
# since version ~2.2 (need userdb iterate): |