VERALTET, BITTE HIER GUCKEN: https://github.com/bundesAPI/tagesschau-api
API-URL: https://www.tagesschau.de/api2
API-URL: https://www.tagesschau.de/api2
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
import boto3 | |
import time | |
region = 'eu-west-1' | |
user_data_script = """#!/bin/bash | |
instanceid=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
cd / | |
mkdir moodledata | |
mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-xxxxxxxxxxc.efs.eu-west-1.amazonaws.com:/ moodledata | |
tar czf mooodledata-backup-$(date +%d-%m-%Y_%H-%M).tar.gz /moodledata | |
aws s3 mv mooodledata-backup-*.tar.gz s3://xxxxxxxxx/ |
File | Purpose |
---|---|
/etc/compose/docker-compose.yml |
Compose file describing what to deploy |
/etc/systemd/system/docker-compose-reload.service |
Executing unit to trigger reload on docker-compose.service |
/etc/systemd/system/docker-compose-reload.timer |
Timer unit to plan the reloads |
/etc/systemd/system/docker-compose.service |
Service unit to start and manage docker compose |
""" | |
Install Systemd units using Ansible | |
Handles unit restarting and systemd daemon reloading when the unit changes. | |
Also stops the unit correctly when uninstalled | |
In your playbook put this file to library/systemdunit.py and make sure the | |
server has python-sh package installed |
Unfortunately we're finding it really hard to find good distributed systems engineers at Ably, a distributed realtime data delivery platform.
We know a lot of you out there probably know great people who love solving truly hard distributed problems with a distributed team of superb engineers.
If you know anyone who fits the bill, wants to work remotely and is based in Europe (or wants to work on-site in London), we'll give you $3,000 simply for the referral if we end up employing them.
Follow these steps to earn $3,000 for one minute of your time:
HOSTS=host_a host_b | |
INVENTORY=../data/inventory.inv | |
PLAYBOOK=../playbooks/test.yml | |
TIMEOUT=600 | |
deploy: all_hosts | |
all_hosts: $(HOSTS) | |
$(HOSTS): |
<configuration> | |
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender"> | |
<target>System.err</target> | |
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
<level>WARN</level> | |
</filter> | |
<encoder> | |
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> | |
</encoder> | |
</appender> |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: grafana-config | |
data: | |
grafana.ini: | | |
##################### Grafana Configuration Example ##################### | |
# | |
# Everything has defaults so you only need to uncomment things you want to | |
# change |