Skip to content

Instantly share code, notes, and snippets.

import { Router } from 'itty-router'
const router = Router()
// from client
router.get('/', async (request, env) => {
const url = new URL(request.url)
const token = url.searchParams.get("token")
const module = url.searchParams.get("module")
if (!token || !module) {
{
"id": "terminal",
"title": "Terminal",
"version": "1.0.0",
"url": "https://github.com/CodaBool/terminal",
"bugs": "https://github.com/CodaBool/terminal/issues",
"changelog": "https://github.com/CodaBool/terminal/blob/main/changelog.md",
"download": "https://d3erver.codabool.workers.dev/download?module=terminal-v1.0.0",
"manifest": "https://raw.githubusercontent.com/CodaBool/terminal/main/module.json",
"description": "A customizable interactive terminal from which players can read and reveal journal entries",
@CodaBool
CodaBool / index.js
Last active October 26, 2023 20:22
import { Router } from 'itty-router'
const router = Router()
// from client
router.get('/', async (request, env) => {
const url = new URL(request.url)
const token = url.searchParams.get("token")
const module = url.searchParams.get("module")
if (!token || !module) {
@CodaBool
CodaBool / rds.json
Last active March 7, 2023 20:01
rds-versions
[
{
"releaseCycle": "8.0.32",
"releaseDate": "2023-02-07",
"eol": "2024-02-01",
"type": "minor",
"db": "mysql"
},
{
"releaseCycle": "8.0.31",
@CodaBool
CodaBool / restore.py
Last active February 23, 2023 20:17
restores s3 files by deleteing key delete marker
from datetime import datetime, timezone
import boto3
# -----------------------------------
# Enter these values here:
thebucket = "BUCKET_NAME_HERE"
region_name = "us-east-1"
folder_in_bucket = "" # aka key or prefix
# ------------------------------------
@CodaBool
CodaBool / socket.go
Last active January 26, 2023 07:56
Q1 2023 all methods and useful methods from zishang520/socket.io
// https://github.com/zishang520/socket.io
// sources
socket = io.Sockets()
engine = io.Engine()
adapter = io.Adapter()
io = io
// Useful
p("io Name", io.Sockets().Name()) // "/"
p("io Sockets", io.FetchSockets())
@CodaBool
CodaBool / spice.ps1
Last active October 6, 2022 23:22
Spicetify
# Install Spotify
# https://spotify.en.uptodown.com/windows/versions
# Install Spicetify CLI
# iwr -useb https://raw.githubusercontent.com/spicetify/spicetify-cli/master/install.ps1 | iex
# git clone https://github.com/spicetify/spicetify-themes.git
# cd spicetify-themes
# cp * "$(spicetify -c | Split-Path)\Themes\" -Recurse