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
#!/bin/bash -e | |
# vyatta-wireguard | |
# | |
# Usage: `./wireguard.sh [upgrade|uninstall]`. | |
# | |
# When called without arguments, the latest version will be fetched and installed. | |
# | |
# To automatically install the latest version of WireGuard after Firmware upgrades, | |
# this script should be placed in `/config/scripts/post-config.d/wireguard.sh`. |
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 this: | |
docker system prune -a --volumes | |
# outdated: | |
docker rm $(docker ps -qa --no-trunc --filter "status=exited") | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
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
{ | |
"chrome": { | |
"default": "65.0", | |
"versions": { | |
"65.0": { | |
"image": "selenoid/vnc:chrome_65.0", | |
"port": "4444" | |
} | |
} | |
}, |
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
#!/bin/sh | |
domains=( | |
"example.org" | |
"example.com:7443" | |
) | |
default_port=443 | |
for domain in ${domains[@]}; do |
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
#!/bin/sh | |
# See: https://github.com/Radarr/Radarr/wiki/Mass-Delete-via-API | |
HOST=http://radarr.local:7878 | |
API_KEY= # Settings > General | |
ids=$(curl --silent $HOST/api/movie -X GET -H "X-Api-Key: $API_KEY" \ | |
| jq '.[] | select(.monitored == false) | .id') |
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
#!/bin/bash | |
set -e | |
URL="${1}" | |
if [ -z "${1}" ]; then | |
echo "usage: $(basename ${0}) <url>" | |
echo "" | |
echo "examples:" | |
echo " - $(basename ${0}) http://test-images.fr-1.storage.online.net/scw-distrib-ubuntu-trusty.tar" |
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/sbin/dtrace -s | |
#pragma D option quiet | |
#pragma D option defaultargs | |
#pragma D option switchrate=10hz | |
#pragma D option dynvarsize=4m | |
#pragma D option cleanrate=30hz | |
dtrace:::BEGIN | |
{ |
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
const fnPromisified = (arg) => new Promise((resolve, reject) => | |
fnTakingCallback(arg, (err, res) => { | |
if (err) { | |
return reject(err) | |
} | |
return resolve(res) | |
}) | |
) |
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
/** | |
* Geocoder is a simple on-demand lazy loader for the Google Maps Geocoding service | |
* | |
* Usage: `Geocoder.call(function (geocoder) {});` | |
*/ | |
var Geocoder = (function (self) { | |
var _geocoder = null; | |
self.call = function (cb) { | |
// available |
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
### Keybase proof | |
I hereby claim: | |
* I am pstadler on github. | |
* I am ps (https://keybase.io/ps) on keybase. | |
* I have a public key whose fingerprint is 6DDF F549 C7E4 555F FDC1 F6FA 31DB BB1F 6949 DA68 | |
To claim this, I am signing this object: |
NewerOlder