Skip to content

Instantly share code, notes, and snippets.

View AaronDewes's full-sized avatar

Aaron Dewes AaronDewes

View GitHub Profile
@AaronDewes
AaronDewes / probot benchmarks
Created February 2, 2024 16:00
Probot with Nitro
==========
probot run
==========
Running 10s test @ http://127.0.0.1:3000/api/github/webhooks
10 connections
┌─────────┬──────┬──────┬───────┬──────┬─────────┬─────────┬───────┐
│ Stat │ 2.5% │ 50% │ 97.5% │ 99% │ Avg │ Stdev │ Max │
import * as db2 from "ibm_db";
import { $ } from "bun";
const connStr =
"DATABASE=peopledb;HOSTNAME=localhost;PORT=50000;PROTOCOL=TCPIP;UID=db2admin;PWD=passwd;CURRENTSCHEMA=EMPINST;";
const conn: db2.Database = await new Promise((resolve, reject) =>
db2.open(connStr, (err, conn) => (err ? reject(err) : resolve(conn)))
);
async function performQuery<RowType = any>(
@AaronDewes
AaronDewes / nostr-proof.md
Last active March 29, 2023 12:46
Nostr proof

Verifying that I control the following Nostr public key: npub13282xewzy9dtguu3mnefek2jhf3jcyw46lxrqy084ppzf605745szlycfs

@AaronDewes
AaronDewes / zerofeerouting.js
Created March 17, 2022 15:40
Opening a channel to zero fee routing from c-lightning.ts
import { RestApiClient } from "c-lightning.ts";
// Or:
// const { RestApiClient } = require("c-lightning.ts/cjs/index.cjs");
// Arguments are: API Url, hex encoded macaroon
const apiClient = new RestApiClient("127.0.0.1:8000", "hex encoded macaroon");
await apiClient.connect({
id: "038fe1bd966b5cb0545963490c631eaa1924e2c4c0ea4e7dcb5d4582a1e7f2f1a5@93.177.73.229:9735",
});

Open the "Terminal" app on your Mac and install Homebrew by running:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Install Tor by running:

brew install tor

@AaronDewes
AaronDewes / docker-compose.yml
Last active January 12, 2022 05:50
Tor snowflake on a Raspberry Pi
version: "3.8"
services:
snowflake-proxy:
network_mode: host
image: ghcr.io/runcitadel/snowflake:main@sha256:bd32c544d6854f8e013e5b439dd72ad97817a9cb9175d968a6ccc453a7f47d99
container_name: snowflake-proxy
restart: unless-stopped

Keybase proof

I hereby claim:

  • I am aarondewes on github.
  • I am aaron_citadel (https://keybase.io/aaron_citadel) on keybase.
  • I have a public key ASAGkvx_TVSWuZMgGdOYJSnENJTdfIojmAk-SNPScRBOQwo

To claim this, I am signing this object:

@AaronDewes
AaronDewes / citadel.md
Created August 19, 2021 20:58
Details about Citadel

Citadel - Umbrel evolved

Citadel takes your Umbrel node to the next level with new features, more speed, easier backups, and many more things.

You can move between Umbrel and Citadel at any time, in both directions using our migration tool.

What does Citadel provide?

Citadel is a fork of Umbrel with the goal of giving you early access to new features we're also contributing to the Umbrel team.

Citadel also implements a completely separate server for your automated backups which implements restore capabilities and is fully open source and you can host a personal one for free.

@AaronDewes
AaronDewes / debug.sh
Last active April 9, 2021 11:58
Umbrel Information gathering script
#!/usr/bin/env bash
if [[ $UID != 0 ]]; then
echo "This script needs to be run as root"
exit 1
fi
# Helper functions
get_uas_string () {
UDEVADM_DATA=$(sudo -u umbrel udevadm test /block/${block_device} 2> /dev/null)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.