Skip to content

Instantly share code, notes, and snippets.

View Erisa's full-sized avatar
💕

Erisa A Erisa

💕
View GitHub Profile
@Erisa
Erisa / index.js
Created November 28, 2023 04:28
tunnel status Worker - just use with quick edit
const tunnelStatusTypes = {
TUNNEL_STATUS_TYPE_INVALID: {
color: 3553599,
name: 'Invalid',
},
TUNNEL_STATUS_TYPE_INACTIVE: {
color: 3553599,
name: 'Inactive',
},
TUNNEL_STATUS_TYPE_DOWN: {
@Erisa
Erisa / ota-manifest-gen.js
Last active April 22, 2024 02:26
Dynamically generate OTA manifests for iOS apps stored in Cloudflare R2
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}`)
@Erisa
Erisa / compose.yml
Created December 8, 2024 06:08
tclip docker compose
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