This file contains hidden or 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
{ | |
debug | |
} | |
:9000 { | |
file_server browse | |
root * /app | |
header Cache-Control "no-cache, no-store, must-revalidate" | |
header Cross-Origin-Embedder-Policy require-corp |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder