Skip to content

Instantly share code, notes, and snippets.

@stonerl
stonerl / create_forked_task.R
Created Aug 3, 2022 — forked from jcheng5/create_forked_task.R
Concurrent, forked, cancellable tasks in Shiny
View create_forked_task.R
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 Dec 27, 2020
set of scripts to collect Lantiq DSL line values via collectd-mod-exec
View collectd-get-lantiqdsl-values
#!/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 Jul 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Jul 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Jul 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Apr 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Apr 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Apr 26, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Feb 7, 2017
OpenKeychain Linked Identity
View openpgp.txt
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 Feb 7, 2017
OpenKeychain Linked Identity
View openpgp.txt
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]