Skip to content

Instantly share code, notes, and snippets.

@MaPePeR
MaPePeR / covid_pavel_N_map_plot.py
Last active January 24, 2021 15:22
Script to show the N values from https://pavelmayer.de/covid/risks/ as a Map. Also attempts to scale the N value with the area of the districts. Also inspired by https://rstats-tips.net/2020/08/09/visualization-of-corona-incidence-in-germany-per-county/
# -*- coding: utf-8 -*-
import pandas as pd
import geopandas as gpd
import geoplot as gplt
import numpy as np
f = gpd.read_file('./gadm36_DEU_shp/gadm36_DEU_2.shp')
@hkoba
hkoba / sched-reboot.service
Last active November 6, 2023 16:07
systemd service and timer for scheduled reboot.
[Unit]
Description=Scheduled Reboot
[Service]
Type=simple
ExecStart=/usr/bin/systemctl --force reboot