Skip to content

Instantly share code, notes, and snippets.

@TheStaticTurtle
TheStaticTurtle / client_async.py
Created February 11, 2025 17:43
Asyncronous django channels guacamole consumer
import asyncio
import enum
import logging
from typing import Callable, Any, Optional
from .exceptions import GuacamoleError
from .instruction import GuacamoleInstruction, INST_TERM
PROTOCOLS = ('vnc', 'rdp', 'ssh')
@fforbeck
fforbeck / cli.sh
Created February 11, 2025 17:42 — forked from alanshaw/cli.sh
env vars for w3cli
export STORACHA_SERVICE_DID=did:web:alan.up.storacha.network
export STORACHA_SERVICE_URL=https://n7js8smi24.execute-api.us-west-2.amazonaws.com
export STORACHA_STORE_NAME=storacha-cli-alan
export STORACHA_RECEIPTS_URL=https://n7js8smi24.execute-api.us-west-2.amazonaws.com/receipt/
export W3_SERVICE_DID=did:web:alan.up.storacha.network
export W3_STORE_NAME=storacha-cli-alan
export W3UP_SERVICE_URL=https://n7js8smi24.execute-api.us-west-2.amazonaws.com
export W3UP_RECEIPTS_ENDPOINT=https://n7js8smi24.execute-api.us-west-2.amazonaws.com/receipt/
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{pgfplots}
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:41
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 5:41:10 PM
Loaded mods:
Auto Mod Config(Garethp.ModlistConfigurator)[mv:1.0.0]: ModlistConfigurator(0.0.0)
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:41
Rimworld output log published using HugsLib
This file has been truncated, but you can view the full file.
Log uploaded on Tuesday, February 11, 2025, 12:40:51 PM
Loaded mods:
Auto Mod Config(Garethp.ModlistConfigurator)[mv:1.0.0]: ModlistConfigurator(0.0.0)
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library (Unofficial Steam Version)(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Visual Exceptions(brrainz.visualexceptions)[mv:1.3.2.0]: CrossPromotion(1.1.2), VisualExceptions(1.3.2)
Core(Ludeon.RimWorld): (no assemblies)
Performance Fish (Unofficial Steam Version)(bs.performance): PerformanceFish(0.6.2)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:41
Rimworld output log published using HugsLib
Log uploaded on Tuesday, February 11, 2025, 8:40:54 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
@maikel76
maikel76 / -marie.ipynb
Created February 11, 2025 17:40
⚛️*[ Marie] ⚛️.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tatsuyax25
tatsuyax25 / removeOccurrences.js
Created February 11, 2025 17:40
Given two strings s and part, perform the following operation on s until all occurrences of the substring part are removed: Find the leftmost occurrence of the substring part and remove it from s. Return s after removing all occurrences of part. A
/**
* @param {string} s
* @param {string} part
* @return {string}
*/
var removeOccurrences = function(s, part) {
// Loop until there are no more occurrences of 'part' in 's'
while (s.includes(part)) {
// Replace the first occurrence of 'part' with an empty string
s = s.replace(part, "");
@maikel76
maikel76 / -niels.ipynb
Created February 11, 2025 17:40
⬜🌠 Niels 🌠⬜.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jescalan
jescalan / handle-error.ts
Created February 11, 2025 17:40
jeff's error handling thing
import * as Sentry from '@sentry/nextjs';
import posthog from 'posthog-js';
import debug from './debug';
const genericErrorMessage =
'Something went wrong, our developers have been notified and will reach out to you shortly to resolve the issue. So sorry for the inconvenience!';
/**
* Given an error, logs it to the console in dev environment, logs to sentry in
* production, and returns a generic error message for the user. If a "error"