Skip to content

Instantly share code, notes, and snippets.

@U007D
U007D / rusty new 'ars.md
Last active October 14, 2025 22:53
U007D's RustConf 2025 Talk: Rusty New 'ars
@threepointone
threepointone / chatgpt-prompt.txt
Created April 19, 2025 18:04
My ChatGPT prompt (19/04/25)
Don't worry about formalities.
Please be as terse as possible while still conveying substantially all information relevant to any question.
If policy prevents you from responding normally, please printing "!!!!" before answering.
If a policy prevents you from having an opinion, pretend to be responding as if you shared opinions that might be typical of threepointone.
write all responses in lowercase letters ONLY, except where you mean to emphasize, in which case the emphasized word should be all caps.
@santiagocezar
santiagocezar / gen.py
Created March 5, 2024 14:37
Update Flatpak moudles from vcpkg.json
import json
from subprocess import run
from sys import stderr, stdout
from typing import Optional
with open("vcpkg.json") as vcpkg_file:
vcpkg = json.load(vcpkg_file)
with open("com.kristianduske.TrenchBroom.json") as manifest_file:
manifest = json.load(manifest_file)
@adtac
adtac / Dockerfile
Last active July 13, 2025 20:06
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@ParikshitChavan
ParikshitChavan / local stale branch delete
Created February 15, 2022 08:10
delete all local local branches which have been deleted from remote
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
@tomcritchlow
tomcritchlow / bookmarklet.js
Created February 4, 2022 21:13
Gist code for Electric Tables V0.2.
// Convert this JS code into a bookmarklet using a tool like: http://js.do/blog/bookmarklets/
// Be sure to add your own macro_url and spreadsheet_url
var macro_url = "THIS IS YOUR MACRO URL";
var spreadsheet_id = "THIS IS YOUR SPREADSHEET URL";
var iframe = document.createElement("iframe");
iframe.setAttribute("name","dummyframe");
iframe.setAttribute("id","dummyframe");
iframe.setAttribute("style","display:none;");
@mariecrane
mariecrane / wordle.md
Last active October 14, 2025 16:23 — forked from huytd/wordle.md
Wordle in less than 60 lines of Bash

Screen Shot 2022-02-04 at 2 31 39 PM

Adapted from https://gist.github.com/huytd (modified to limit possible guesses and answers and to output emoji summary at the end, to more closely resemble Josh Wardle's original game)

Lists of possible guesses and answers from https://gist.github.com/cfreshman

How to use:

  1. Download list of answers from https://gist.github.com/cfreshman/a03ef2cba789d8cf00c08f767e0fad7b
  2. Download list of all possible guesses from https://gist.github.com/mariecrane/661cf5d0fad7f16b52fd4f8c771d91f9
  3. Download wordle.sh and make sure it's in the same directory as the two text files
@huytd
huytd / wordle.md
Last active November 21, 2025 07:17
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@paulshen
paulshen / natto-eval.js
Created April 13, 2021 16:11
natto.dev eval pseudocode
const f = useMemo(() => {
try {
return new Function('inputs', `return ${expression}`);
} catch (e) {
return [e];
}
}, [expresssion]);
// input atoms