Skip to content

Instantly share code, notes, and snippets.

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active April 7, 2025 19:47
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@yoavg
yoavg / multi-llm-agents.md
Last active March 16, 2025 21:32
What makes multi-agent LLM systems multi-agent?

Are multi-LLM-agent systems a thing? Yes they are. But.

Yoav Goldberg, Nov 24, 2024

This piece started with a pair of twitter and bluesky posts:

let's talk about "agents" (in the LLM sense). there's a lot of buzz around "multi-agent" systems where agents collaborate but... i don't really get how it differs from a thinking of a single agent with multiple modes of operation. what are the benefits of modeling as multi-agent?

— (((ل()(ل() 'yoav))))👾 (@yoavgo) November 23, 2024
@jmorrell
jmorrell / logger.js
Last active December 2, 2024 03:18
Logging
class Log {
constructor(name, attributes = new Map()) {
this.startTime = new Date().getTime();
this.startTimestampMs = performance.now();
this.name = name;
this.attributes = attributes;
}
setAttributes(keyValues) {
for (let [key, value] of Object.entries(keyValues)) {
@ferntheplant
ferntheplant / ARENA.md
Last active July 2, 2024 20:18
Notes from ARENA 3.0

ARENA notes

General vocab

  • CNN: convolutional neural net: replace linear layers with convolutions
  • GAN: generator and discriminator training in tandem
  • SGD: stochastic gradient descent
  • Supervised: training data is labeled (MNIST 0-9 digit labels)
  • Unsupervised: training data is unlabeled (DCGAN bedrooms are just bedrooms)
  • Parameters: learned weights and biases within NN layers
@janert
janert / hugo-survival-guide.md
Last active March 21, 2025 18:37
A Hugo Survival Guide

A Hugo Survival Guide

Hugo is a static site generator: it takes some plain-text content, marries it to a bunch of HTML templates, and produces a set of complete, static HTML pages that can be served by any generic, stand-alone web server. Simple.

Or maybe not. Hugo does a lot of things automatically, relying on conventions and implicit rules, rather than on explicit configuration. For example, it tries to match each piece of content with the most

@amrrs
amrrs / avoid_colab_close.js
Created August 17, 2021 20:02
How to avoid Google Colab Session Closing automatically?
//credit - https://huggingface.co/blog/fine-tune-wav2vec2-english (Patrick von Platen)
// run this on your Chrome / Browser Console (where Colab is present)
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
var colab = setInterval(ConnectButton,60000);
@garethnunns
garethnunns / Useful-Mac-Commands.sh
Created January 12, 2021 00:08
Useful Mac Commands
# disable sleep when lid closed
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1
# re-enable sleep when lid closed
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0
# prevent Photos opening when SD inserted
defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool YES
# speed up Time Machine backups
@leminhtr
leminhtr / python-tensorflow-pytorch-GPU-nvidia-cuda-linux-clean-install-instructions.md
Last active November 17, 2024 23:39
Clean Python Deep Learning GPU setup with TensorFlow 2.X.X & PyTorch 1.X and GPU installation instructions for Ubuntu 20.04 - CUDA 11.X

Instructions

I. Clean Python setup from scratch. (~1h) Skip if you already have a python environment setup or want to use your own python virtualenv setup

0. Pre-install (skip if already done)

sudo apt-get install python3-pip python-dev
@mubix
mubix / infosec_newbie.md
Last active March 10, 2025 09:42
How to start in Infosec
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active March 18, 2025 03:08
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example