Skip to content

Instantly share code, notes, and snippets.

View Lewiscowles1986's full-sized avatar
🤓

Lewis Cowles Lewiscowles1986

🤓
View GitHub Profile
LuaJIT - JIT for the popular LUA scripting language https://luajit.org/luajit.html
Magic Wormhole - conveniently transfer files directly from one computer to another https://github.com/magic-wormhole/magic-wormhole
ffmpeg - antagonizes Theo https://www.ffmpeg.org/
rclone - cli tool for copying/syncing files across network or to/from cloud services: https://rclone.org/
mergerfs - union filesystem on linux: https://trapexit.github.io/mergerfs/
mkvtoolnix - cli tools for mkv file property editing/muxing/etc: https://mkvtoolnix.download/
Calibre - e-book management/conversion: https://calibre-ebook.com/
Subtitle Edit - video subtitle editor: https://www.nikse.dk/subtitleedit
FreeTube - client for youtube without google nonsense: https://freetubeapp.io/
SmartTube - similar as above but for AndroidTV's: https://smarttubeapp.github.io/
# Planning Agent System Prompt
You are a **PLANNING AGENT**, not an implementation agent.
Your job is to work with the user to create a clear, detailed, and actionable plan for their task.
---
## Core Role
- Your **sole responsibility is planning**.
@orneryd
orneryd / claudette-agent.installation.md
Last active October 17, 2026 13:15
Claudette coding agent (System Prompt, Preamble, Chatmode, etc…) built especially for free-tier models like chatGPT-3/4/5+ to behave more similar to Claude. Claudette-auto.md is the most structured and focuses on autonomy. *Condensed* nearly the same but smaller token cost for smaller contexts, *Compact* is for mini contexts. Memories file suppo…
@sgn00
sgn00 / ping_pong.cpp
Last active April 3, 2026 18:40
Pipe RTT ping-pong benchmark
// g++ ping_pong.cpp -o ping_pong -std=c++20 -O3
#include <algorithm>
#include <cerrno>
#include <cstdint>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <chrono>
@alexziskind1
alexziskind1 / gist:2ee79770658b9f76ed1fb8d422b0f478
Created February 7, 2025 14:14
MacOS Quick Action File Diff code with options for VSCode FileMerge and Terminal Diff
#!/bin/bash
# We expect exactly two files
if [ $# -ne 2 ]; then
osascript -e 'display alert "Please select exactly two files." as critical'
exit 1
fi
# Use osascript to show a choice dialog (AppleScript).
CHOICE="$(osascript <<EOT
@JustSimplyKyle
JustSimplyKyle / vnsee.md
Last active February 12, 2026 09:18
How to setup `vnsee` on the remarkable paper pro
@BrocksiNet
BrocksiNet / shareButton.js
Created December 5, 2024 08:50
shareButton with Web Share API
document.addEventListener('DOMContentLoaded', () => {
const entryElement = document.querySelector('.entry');
if (navigator.canShare && entryElement) {
const shareButton = document.createElement('button');
shareButton.textContent = 'Share this article';
shareButton.onclick = async () => {
try {
await navigator.share({
url: location.href,
title: document.title
@marcosci
marcosci / render_universe.R
Created December 8, 2021 07:54
Rayrender Universe
library(rayrender)
library(glue)
y_dist = 8
circle <- function(x = 0, y = 0 + 20, rad = 1, nvert = 500, ...){
rads <- seq(0,2*pi,length.out = nvert)
xcoords <- cos(rads) * rad + x
ycoords <- sin(rads) * rad + y
cbind(x = xcoords, y = y_dist, z = ycoords)
@ciaranmcnulty
ciaranmcnulty / notes.md
Last active June 11, 2026 11:57
Notes on using Docker on ARM Macs (November 2021)

Docker for Mac

On M1 machines, Docker for Mac is running a lightweight linux ARM VM, then running containers within that, so containers are essentially running natively. Don't be fooled by the fact the UI or binary CLI tools (e.g. docker) might require Rosetta.

Within that VM is an emulation layer called QEmu. This can be used by docker to run Intel containers. This does not use Rosetta at all, and has a roughly 5-6X performance penalty. (If you just upgraded your CPU this may result in a similar performance to your old machine!)

Pulling and running with Docker

Many images in public registries are multi-architecture. For instance at the time of writing on Docker Hub the php:8.0-cli image has the following digests: