Skip to content

Instantly share code, notes, and snippets.

View tests.sh
curl "https://raw.githubusercontent.com/zerforschung/schnelltesttest.de/main/src/data/all.json" | \
jq '.tests | to_entries | map(.value)
| sort_by(.sensitivity_total)[]
| select(.omicron_bridging)
| "\(.manufacturer) \(.test_name) (Sensitivity: \(.sensitivity_total))"'
@maxammann
maxammann / index.html
Created Jan 6, 2022
Generate QR-codes and embed them in PDFs
View index.html
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.0/jspdf.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@zxing/library@0.18.6/umd/index.min.js"></script>
</head>
</html>
View dartvoid.dart
void main() {
for (int i = 0; i < 5; i++) {
print('hello ${i + 1}');
}
Future<void> a = test();
Future<void> b = test1();
}
void test() async {
View globalmaptiles.py
#!/usr/bin/env python
###############################################################################
# $Id$
#
# Project: GDAL2Tiles, Google Summer of Code 2007 & 2008
# Global Map Tiles Classes
# Purpose: Convert a raster into TMS tiles, create KML SuperOverlay EPSG:4326,
# generate a simple HTML viewers based on Google Maps and OpenLayers
# Author: Klokan Petr Pridal, klokan at klokan dot cz
# Web: http://www.klokan.cz/projects/gdal2tiles/
View thesis-vscode-config.json
{
"spellright.language": ["en_US"],
"spellright.documentTypes": ["markdown", "latex", "plaintext"],
"latex-workshop.latex.outDir": "%DIR%/build",
"latex-workshop.view.pdf.viewer": "tab",
"workbench.colorTheme": "GitHub Light",
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 90,
"editor.wrappingIndent": "indent",
"editor.defaultFormatter": "esbenp.prettier-vscode",
@maxammann
maxammann / .env
Last active Jan 29, 2021
README.md
View .env
DEBUG_MODE=false
JITSI_URL=<fill_me>
# If your Jitsi environment has authentication set up, you MUST set JITSI_PRIVATE_MODE to "true" and you MUST pass a SECRET_JITSI_KEY to generate the JWT secret
JITSI_PRIVATE_MODE=false
JITSI_ISS=
SECRET_JITSI_KEY=
ADMIN_API_TOKEN=<secret>
@maxammann
maxammann / .env
Created Jan 8, 2021
Run Parabol self hosted
View .env
GOOGLE_OAUTH_CLIENT_ID='...'
GOOGLE_OAUTH_CLIENT_SECRET='...'
CDN_BASE_URL='https://retro:9443/'
SERVER_SECRET='...'
GRAPHQL_HOST='localhost:3000'
GRAPHQL_PROTOCOL='http'
HOST='retro'
INVITATION_SHORTLINK='retro/invitation-link'
# MAIL GLOBALS. PROVIDER: mailgun | google
MAIL_PROVIDER='google'
View tplink_archer_c7_router_reset.py
View PKGBUILD without kqoauth
# Maintainer: Ammann Max <maximilian.ammann@googlemail.com>
pkgname=golden-cheetah-git
pkgver=v3.5.DEV1705X.r70.ac18d98a
pkgrel=1
pkgdesc="Cycling Power Analysis Software. We believe that cyclists and triathletes should be able to download their power data to the
computer of their choice, analyze it in whatever way they see fit, and share their methods of
analysis with others."
arch=('i686' 'x86_64')
url="http://www.goldencheetah.org/"
license=('GPL')
@maxammann
maxammann / gist:a4665ff3138c87851ee23a1e9153bcff
Last active May 12, 2018
Unified Remote Server Systemd service
View gist:a4665ff3138c87851ee23a1e9153bcff
[Unit]
Description=Unified Remote Server
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash /opt/urserver/urserver-start --no-manager --no-copy
ExecStop=/bin/bash /opt/urserver/urserver-stop
Environment=DISPLAY=:0