Skip to content

Instantly share code, notes, and snippets.

@CodaBool
CodaBool / notes.sh
Created April 18, 2024 08:15
Notes on Setting up BTRFS with rollbacks on Arch
# assumes you are using btrfs with the default subvolumes
# assumes you are using grub as your boot loader
# inotify-tools is not needed on all machines
# you can skip and check logs of grub-btrfsd after starting the
# service and it will tell you if inotify-tools is needed
paru -S snapper snap-pac grub-btrfs snapper-rollback inotify-tools
sudo su
cd /
@CodaBool
CodaBool / theme.css
Last active November 28, 2023 03:20
Discord Theme
/**
* @name Frosted Glass
* @author Gibbu#1211
* @version 2.2.0
* @description Display your picture of choice with adjustable blur and brightness. Dark theme is required.
* @invite ZHthyCw
* @authorId 174868361040232448
* @source https://github.com/DiscordStyles/FrostedGlass
* @website https://gibbu.me/
*/
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