Skip to content

Instantly share code, notes, and snippets.

View Aidenir's full-sized avatar

Viktor Hansson Aidenir

View GitHub Profile
#/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
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,
#!/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
@Aidenir
Aidenir / Radicale config
Created February 14, 2015 20:34
Self-hosting configs
[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 = /