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
services: | |
tclip: | |
image: ghcr.io/tailscale-dev/tclip | |
environment: | |
- TS_AUTHKEY=tskey-auth-blah | |
- DATA_DIR=/data | |
- TSNET_VERBOSE=true | |
- USE_FUNNEL=true | |
volumes: | |
- ./data:/data |
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
export default { | |
async fetch(request, env, ctx) { | |
let url = new URL(request.url) | |
let fields = url.pathname.split('/') | |
const task = fields[1] | |
const bundleid = fields[2] | |
if (task === "install") { | |
return Response.redirect(`itms-services://?action=download-manifest&url=https://${url.hostname}/manifest/${bundleid}`) |
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 tunnelStatusTypes = { | |
TUNNEL_STATUS_TYPE_INVALID: { | |
color: 3553599, | |
name: 'Invalid', | |
}, | |
TUNNEL_STATUS_TYPE_INACTIVE: { | |
color: 3553599, | |
name: 'Inactive', | |
}, | |
TUNNEL_STATUS_TYPE_DOWN: { |
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 +x | |
version="${VERSION:-1.6.1}" | |
arch="${ARCH:-linux-amd64}" | |
bin_dir="${BIN_DIR:-/usr/local/bin}" | |
wget "https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz" \ | |
-O /tmp/node_exporter.tar.gz |
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
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
let url = 'https://xkcd.com/rss.xml' | |
let match = /(<img(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\n\uD800-\uDFFF])*? alt="((?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\n\uD800-\uDFFF])*?)"(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\n\uD800-\uDFFF])*?><\/description>)/ig | |
let replace = "$1<p></p></description><summary>$2</summary>" | |
var resp = await fetch(url) |
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 -o errexit | |
clear | |
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n" | |
### HOW TO USE | |
### Pre-req: | |
### - run on a Proxmox 6 server | |
### - a dhcp server should be active on vmbr1 |
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 tunnelStatusTypes = { | |
TUNNEL_STATUS_TYPE_INVALID: { | |
color: 3553599, | |
name: 'Invalid', | |
}, | |
TUNNEL_STATUS_TYPE_INACTIVE: { | |
color: 3553599, | |
name: 'Inactive', | |
}, | |
TUNNEL_STATUS_TYPE_DOWN: { |
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 config = [ | |
{ | |
project: "erisa", | |
days: 180 | |
}, | |
{ | |
project: "super-secret-sauce", | |
days: 60 | |
} | |
] |
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
# fly.toml file generated for lounge on 2022-10-10T20:05:47+01:00 | |
app = "lounge" | |
kill_signal = "SIGINT" | |
kill_timeout = 5 | |
processes = [] | |
[deploy] | |
strategy = "rolling" | |
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
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
async function handleRequest(request) { | |
let url = new URL(request.url) | |
let response = await fetch(request) | |
const contentType = response.headers.get('Content-Type'); |
NewerOlder