Adaptation of Prosody module from Exa Networks for Metronome
To isolate all hosts by default, add the module to your global modules_enabled:
modules_enabled = {
[Definition] | |
failregex = Failed login for user .* from <HOST> | |
ignoreregex = |
#!/bin/bash | |
# | |
# cron ex: */30 * * * * /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /root/scripts/survey-semaphore-getmail.sh >> /root/scripts/cron.log | |
email="" | |
# file exist and have invalid ttl? | |
if [ -f /tmp/.getmail_lock ] | |
then | |
# have a correct ttl? |
#!/bin/sh | |
# led is white if we have internet, turn orange if not. | |
while true ; do | |
if /bin/ping -qc 3 8.8.8.8 > /dev/null; then | |
/sbin/gpio disable 2 | |
/sbin/gpio enable 3 | |
else | |
/sbin/gpio disable 2 | |
/sbin/gpio disable 3 | |
fi |
#!/bin/sh | |
# | |
# cron ex: @reboot /usr/bin/nice -n 19 /usr/bin/ionice -c2 -n7 /root/scripts/100_up.sh >> /root/scripts/cron.log | |
while true ; do | |
# do ping with interface | |
if /bin/ping -qc 3 8.8.8.8 -I eth0.100 > /dev/null; then | |
if /bin/grep -q 0 /proc/net/nf_condition/100_up; then /bin/echo 1 > /proc/net/nf_condition/100_up; fi | |
else | |
# do ping with fwmark, and to another target | |
if /bin/ping -qc 3 8.8.4.4 -m 100 > /dev/null; then |
[metronome] | |
enabled = true | |
port = 5290,5291,5292,5280 | |
filter = metronome-auth | |
logpath = /var/log/metronome/metronome.log |
#!/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 |
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 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: | |
# |
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 |