Skip to content

Instantly share code, notes, and snippets.

/**
* Pi Advisor Extension
*
* Drop this file into:
* .pi/extensions/advisor.ts
* or:
* ~/.pi/agent/extensions/advisor.ts
*
* Sends the current Pi transcript to a stronger advisor model and returns
* strategic guidance. The advisor does not call tools, edit files, or write
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@flavioribeiro
flavioribeiro / scte35-pid-on-ts-segment.py
Created January 28, 2021 15:44
SCTE-35 PID presence on HLS TS Segments
import datetime
import os
from concurrent.futures import ThreadPoolExecutor
from requests import get
import m3u8
from threefive import decode
import time
PLAYLIST = ""
@robertdale
robertdale / describe.groovy
Last active September 27, 2019 07:10
JanusGraph Schema Describe Command
// This can be imported via ./bin/gremlin.sh -i describe.groovy
// A variable 'graph' must be defined with a JanusGraph graph
// Run it as a plugin command ':schema'
// :schema describe
//
import org.janusgraph.graphdb.database.management.MgmtLogType
import org.codehaus.groovy.tools.shell.Groovysh
import org.codehaus.groovy.tools.shell.CommandSupport
@tcnksm
tcnksm / NOTE.md
Last active April 13, 2024 21:28
Small note of gRPC Best Practice @ CoreOSFest 2017
@hjacobs
hjacobs / kubernetes-on-aws-users.md
Last active April 11, 2017 18:23
Companies/Organizations using Kubernetes on AWS
@philips
philips / users.md
Last active April 5, 2023 14:17
Kubernetes Third-Party Resource Users
@ygotthilf
ygotthilf / jwtRS256.sh
Last active March 23, 2026 01:32
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@zchee
zchee / actionlist.vim
Last active May 16, 2026 12:45
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@juliocesarfort
juliocesarfort / .keep
Last active August 29, 2015 14:13
All communication with Alchemia via e-mail
--