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 | |
sudo docker exec couch-container "tar -cvzf /tmp/backup.tar.gz /var/lib/couchdb" | |
sudo docker cp couch-container:/tmp/backup.tar.gz /path/where/your/backup/is | |
sudo docker exec couch-container "rm -f /tmp/backup.tar.gz" | |
#Put | |
which docker | |
backupuser ALL=(ALL) NOPASSWD:/bin/docker exec,/bin/docker cp |
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
import requests | |
import jsonpickle | |
from collections import OrderedDict | |
import re | |
from datetime import datetime, timedelta | |
from utils.helpers import ( | |
get_table_classes, | |
get_table_teachers, | |
firstDateOfWeek, |
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/sh | |
MAIL_HOST="10.0.1.104" | |
LOAD_BALANCER="10.0.1.100" | |
LAN_NET="10.0.1.0/24" | |
WAN_GATEWAY="81.170.225.1" | |
WAN_ADDR="81.170.225.89" | |
VPN_PORTS="80,443" | |
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter |
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
[server] | |
# CalDAV server hostnames separated by a comma | |
hosts = 0.0.0.0:5232 | |
# Daemon flag | |
daemon = True | |
# Root URL of Radicale (starting and ending with a slash) | |
base_prefix = / |