Skip to content

Instantly share code, notes, and snippets.

@c10r
c10r / selfhosted_runners_watchdog.py
Created June 21, 2026 07:22
selfhosted_runners_watchdog.py
#!/usr/bin/env python3
"""
Watchdog for persistent self-hosted GitHub Actions runners.
Motivation
----------
This script exists for a failure mode that is easy to miss if you only look at
the local process supervisor. On one self-hosted runner host, GitHub showed
individual runners as "offline" even though the corresponding systemd services
were still active and the Runner.Listener processes were still alive.
@c10r
c10r / LinqExample.cs
Created June 20, 2026 03:39
Linq example
public sealed class AppDbContext : DbContext
{
public DbSet<Customer> Customers => Set<Customer>();
public DbSet<Order> Orders => Set<Order>();
protected override void OnConfiguring(DbContextOptionsBuilder options)
{
options.UseTurso("libsql://my-db.turso.io", new TursoOptions
{
AuthToken = "<token>"
@c10r
c10r / error.txt
Created March 26, 2026 16:40
Error log
{
"severity": "ERROR",
"hostname": "backend-5fc64c6c98-vpj8x",
"mutationResult": {
"mutationIdsFailed": [
"temp_X-aY7rgeXx6Xg7zoUpvb3"
],
"count": {
"DELETE": 0,
"CREATE": 1,
@c10r
c10r / gist:02421a88b51d156bb23d50fa9bbffe05
Last active October 9, 2025 14:10
meeting-time-endpoints
GET https://internal.usemotion.com/v2/notetaker/meeting-insights/meet_fVA8PGFsM6QpgThWzbPrtq/recall-debug
{
"bot_id": "6c401941-a875-4cfb-bae8-86908e66af69",
"join_at": "2025-10-07T14:56:33.365743Z",
"bot_name": "Motion's AI Notetaker",
"meeting_insights_id": "meet_fVA8PGFsM6QpgThWzbPrtq",
"user_email": "danial@usemotion.com",
"status_changes": [
{
omarchy-iso main  ❯ ./bin/omarchy-iso-make --local-omarchy ../omarchy
==> Generating pacman master key. This may take some time.
gpg: Generating pacman keyring master key...
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/8A229B348AC6D49C2B1ACBA49F5042FECDA98BE5.rev'
gpg: Done
==> Updating trust database...
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option "--allow-weak-key-signatures" to override)
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 2 signed: 5 trust: 0-, 0q, 0n, 0m, 0f, 2u
@c10r
c10r / test.ts
Created April 17, 2025 16:47
Documentation styles
/** 1️⃣ **/
// The id is the workspace id
async getWorkspace(id: string) {
}
/** 2️⃣ **/
async getWorkspace(workspaceId: string) {
}
{
"page": {
"id": "yh6f0r4529hb",
"name": "Cloudflare",
"url": "https://www.cloudflarestatus.com",
"time_zone": "Etc/UTC",
"updated_at": "2025-02-06T09:08:42.114Z"
},
"incidents": [
{
@c10r
c10r / gist:a90808ca726594c8e6c43d44148f8834
Created February 7, 2024 06:46
generate-types failed
Cannot read properties of undefined (reading 'kind')
file:///home/chander/workspace/motion/node_modules/zx/build/core.js:146
let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
^
ProcessOutput [Error]: Cannot read properties of undefined (reading 'kind')
at run (file:///home/chander/workspace/motion/scripts/generate-types.mjs:48:12)
exit code: 1
at ChildProcess.<anonymous> (file:///home/chander/workspace/motion/node_modules/zx/build/core.js:146:26)
at ChildProcess.emit (node:events:518:28)
This file has been truncated, but you can view the full file.
[
{
"id": "-LG_bjSWz2dvhrGjkZbf8",
"name": "My Tasks (Private)",
"teamId": null,
"type": "INDIVIDUAL",
"createdTime": "2023-10-01T20:01:05.241Z",
"updatedTime": "2023-10-01T20:01:05.412Z",
"labels": [],
"members": [
tail -f ~/Library/Logs/Motion/main.log
[2023-05-25 19:41:49.625] [info] Running did-become-active
[2023-05-25 19:41:52.868] [info] Running did-become-active
[2023-05-25 19:41:59.339] [info] IPC: To Webapp logEvent DESKTOP_UPDATE_MENU_CHECK undefined
[2023-05-25 19:41:59.340] [info] Check for updates
[2023-05-25 19:41:59.372] [info] Update App: Check for update
[2023-05-25 19:42:00.239] [info] Update App: Update available
[2023-05-25 19:42:00.239] [info] IPC: To Webapp logEvent DESKTOP_UPDATE_APP_AVAILABLE undefined
[2023-05-25 19:42:00.239] [info] IPC: To Webapp updateAppAvailable
[2023-05-25 19:42:00.246] [info] IPC: From Webapp requestUpdateDownloaded undefined