Skip to content

Instantly share code, notes, and snippets.

View stonerl's full-sized avatar

Toni Förster stonerl

  • University of Tübingen
View GitHub Profile
@stonerl
stonerl / refresh_token.sh
Created September 10, 2024 19:09
refresh_token.sh
#!/bin/bash
# Run the Docker command and capture its output
output=$(docker run quay.io/invidious/youtube-trusted-session-generator)
# Extract visitor_data and po_token using grep and awk
visitor_data=$(echo "$output" | grep "visitor_data:" | awk '{print $2}')
po_token=$(echo "$output" | grep "po_token:" | awk '{print $2}')
# Check if both values were extracted
@stonerl
stonerl / create_forked_task.R
Created August 3, 2022 17:11 — forked from jcheng5/create_forked_task.R
Concurrent, forked, cancellable tasks in Shiny
library(shiny)
# Also uses parallel, shinyjs, tools
# Create a long-running task, executed in a forked process. (Doesn't work on Windows)
#
# The return value is a promise-like object with three
# methods:
# - completed(): FALSE initially, then TRUE if the task succeeds,
# fails, or is cancelled. Reactive, so when the state changes
# any reactive readers will invalidate.
@stonerl
stonerl / collectd-get-lantiqdsl-values
Created December 27, 2020 20:12
set of scripts to collect Lantiq DSL line values via collectd-mod-exec
#!/bin/sh
[ -f /lib/functions/lantiq_dsl.sh ] && . /lib/functions/lantiq_dsl.sh || exit 0
HOSTNAME=$(cat /proc/sys/kernel/hostname)
VALUESFILE=/tmp/collectd-lantiqdsl-values
dsl_val() {
echo $(expr "$1" : '.*'$2'=\([-\.[:alnum:]]*\).*')
@stonerl
stonerl / openpgp.txt
Created July 26, 2017 13:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created July 26, 2017 13:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created July 26, 2017 13:02
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created April 26, 2017 16:10
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created April 26, 2017 16:10
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created April 26, 2017 16:09
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]
@stonerl
stonerl / openpgp.txt
Created February 7, 2017 13:53
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b6e7dd859f68e3d5d83e45d8292f3e5086c83fc7]