Skip to content

Instantly share code, notes, and snippets.

View rarkins's full-sized avatar
😀

Rhys Arkins rarkins

😀
  • Stockholm, Sweden
  • 09:56 (UTC +02:00)
  • X @rarkins
View GitHub Profile
@kettanaito
kettanaito / README.md
Last active April 24, 2026 18:28
Publishing to npm in 2026

Prerequisites

  • Use Node.js v24. Trusted Publishing does not work on earlier versions of Node.js.

Steps

  1. Go to "Account > Access Tokens" and click "Generate Access Token".
  2. Give the new token "read and write" persmissions to "All packages".
  3. If you have 2FA enabled on npm (which you should), check the "Bypass 2FA" checkbox neatly hidden in the UI. Otherwise, npm will fail with an error demanding an OTP during automatic publishing.
  4. Create the token.
@LuD1161
LuD1161 / SKILL.md
Created February 20, 2026 07:14
codex-review - claude skill file
name codex-review
description Send the current plan to OpenAI Codex CLI for iterative review. Claude and Codex go back-and-forth until Codex approves the plan.
user_invocable true

Codex Plan Review (Iterative)

Send the current implementation plan to OpenAI Codex for review. Claude revises the plan based on Codex's feedback and re-submits until Codex approves. Max 5 rounds.

@geoffreywoo
geoffreywoo / openclaw_browser_mutex_single_tab_skill.md
Last active February 10, 2026 12:23
OpenClaw Skill: Browser Mutex + Single-Tab Guardrails for Reliable X Automation

OpenClaw Browser Mutex + Single‑Tab Protocol (Skill‑Ready)

This is a battle‑tested protocol for running browser automation in OpenClaw without collisions between cron jobs and ad‑hoc/manual runs.

If you run X automation (mentions/search/posting), you will get:

  • wrong-tab actions
  • stale refs
  • “tab not found”
  • ghost posts (no toast)
  • accidental standalone posts instead of replies
@bjeanes
bjeanes / AAA_uuid_generate_v6mc.sql
Last active June 20, 2024 17:24
Postgres UUIDv6 (non-standard)
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- My port of https://github.com/kurttheviking/uuid-with-v6-js
-- A hacky translation of:
-- - http://gh.peabody.io/uuidv6/
-- - https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format
CREATE OR REPLACE FUNCTION uuid_v1_to_v6(v1 uuid)
RETURNS uuid AS $$
DECLARE
v6 text;
@fabiolimace
fabiolimace / UUIDv6.sql
Last active December 19, 2025 16:50
Functions for generating UUIDv6 and UUIDv7 on PostgreSQL
/*
* MIT License
*
* Copyright (c) 2023-2024 Fabio Lima
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@jordanbtucker
jordanbtucker / json5.pegjs
Last active March 17, 2024 11:14
PEG.JS file for JSON5
/*
MIT License
Copyright (c) 2019 Jordan Tucker
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@sj26
sj26 / LICENSE.md
Last active December 27, 2025 05:35
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit

class DbStream extends stream.Writable {
constructor() {
super( {objectMode: true} );
}
_write(data, encoding, cb) {
let specificFields = ["name", "pid", "hostname", "time", "level", "msg", "req_id", "v"];
let fieldData = [];
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active April 10, 2026 13:38
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@chrismdp
chrismdp / s3.sh
Last active January 14, 2026 15:31
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1