- Install Scriptable for iOS
- Copy/Paste the code into a new file
- Adjust colors/font
- Add the script to a widget (medium)
- It should appear similar to the screenshots
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
'use strict'; | |
const CONFIG = { | |
dataURL: 'https://rki-vaccination-data.vercel.app/api', | |
alsoDrawState: undefined, | |
}; | |
const fetchJSON = async (url) => { | |
const request = new Request(url); | |
const data = await request.loadJSON() |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: red; icon-glyph: briefcase-medical; | |
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0 | |
// Alte version siehe: https://gist.github.com/rphl/0491c5f9cb345bf831248732374c4ef5/revisions | |
WIDGET WURDE IN EIN REPO VERSCHOBEN, SIEHE: | |
https://github.com/rphl/corona-widget |
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
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
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
#!/usr/bin/env bash | |
# Standard-repo requirements: | |
# w, awk, head, mktemp, split, grep, ck-list-sessions, sed, getent, cut | |
# TODO Check whether awk can't exit immediately after first match | |
ACTIVE_USER=`w --no-header -s | awk '/ :0 / {print $1}' | head -1` | |
[ -n "$ACTIVE_USER" ] && { | |
echo "$ACTIVE_USER" | |
exit 0 |
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
LogFile = nginx/*access.log | |
LogFile = nginx/*access.log.1 | |
Archive = nginx/*access.log.*.gz | |
# Expand the repeats (actually just removes them now) | |
*ExpandRepeats | |
# Keep only the lines in the proper date range... | |
*ApplyhttpDate |