Skip to content

Instantly share code, notes, and snippets.

import fs from "fs";
import express from "express";
import { WebSocketServer } from "ws";
import { NodeWSServerAdapter } from "@automerge/automerge-repo-network-websocket";
import { NodeFSStorageAdapter } from "@automerge/automerge-repo-storage-nodefs";
import os from "os";
import type { DocumentId, PeerId } from "@automerge/automerge-repo";
import {
isValidAutomergeUrl,
isValidDocumentId,
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@openpanzer
openpanzer / openpanzer-save.json
Last active February 11, 2025 23:02
Ciechanow-1
{"scenario":{"name":"Ciechanow","maxTurns":26,"date":"1939-09-05T04:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{},"map":{"rows":32,"cols":37,"isLastRowPartial":true,"isLastColPartial":false,"map":[[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":1,"road":0,"owner":0,"flag":7,"isDeployment":0,"victorySide":1,"name":"Neidenburg","isMoveSel":true,"isAttackSel":false},{"unit":{"eqid":
@bedroge
bedroge / easybuild_test_report_22283_easybuilders_preasybuild-easyconfigs_20251711-UTC-22-17-03.md
Created February 11, 2025 22:17
EasyBuild test report for easybuilders/easybuild-easyconfigs PR(s) #22283

Test report for PR(s) easybuilders/easybuild-easyconfigs#22283

Test result

Build succeeded for 4 out of 4 (4 easyconfigs in total)

Overview of tested easyconfigs (in order)

  • SUCCESS boto3-1.36.16-GCCcore-13.2.0.eb
  • SUCCESS paramiko-3.5.1-GCCcore-13.2.0.eb
  • SUCCESS uncertainties-3.2.2-foss-2023b.eb
  • SUCCESS pymatgen-2024.5.1-foss-2023b.eb
@openpanzer
openpanzer / openpanzer-save.json
Last active February 11, 2025 22:59
Ciechanow-1
{"scenario":{"name":"Ciechanow","maxTurns":26,"date":"1939-09-05T04:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{},"map":{"rows":32,"cols":37,"isLastRowPartial":true,"isLastColPartial":false,"map":[[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":1,"road":0,"owner":0,"flag":7,"isDeployment":0,"victorySide":1,"name":"Neidenburg","isMoveSel":true,"isAttackSel":false},{"unit":{"eqid":
@abudayah
abudayah / Babun.terminal
Last active February 11, 2025 22:19
My Mac terminal theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundBlur</key>
<real>0.0</real>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGmCwwXHR4lVSRudWxs1Q0ODxAR
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 22:16
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 1:16:07 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
Better Pawn Control(VouLT.BetterPawnControl)[ov:2.7.6]: BetterPawnControl(2.7.4)
Achtung!(brrainz.achtung)[mv:3.9.5.0]: Achtung(3.9.5), CrossPromotion(1.1.2), ModFeatures(1.2.6)
@dev21138
dev21138 / System Design.md
Created February 11, 2025 22:15 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?