Skip to content

Instantly share code, notes, and snippets.

@ERICJ3ffrey
ERICJ3ffrey / pi_agent.md
Last active October 20, 2026 12:43
Setting Up PI Agent with OpenRouter

This the clean setup of Pi on OpenRouter by default

0) Install Pi

npm install -g @mariozechner/pi-coding-agent

Check that it installed:

@dabit3
dabit3 / pi_tutorial.md
Last active November 4, 2026 08:27
How to Build a Custom Agent Framework with PI: The Agent Stack Powering OpenClaw

PI is a TypeScript toolkit for building AI agents. It's a monorepo of packages that layer on top of each other: pi-ai handles LLM communication across providers, pi-agent-core adds the agent loop with tool calling, pi-coding-agent gives you a full coding agent with built-in tools, session persistence, and extensibility, and pi-tui provides a terminal UI for building CLI interfaces.

These are the same packages that power OpenClaw. This guide walks through each layer, progressively building up to a fully featured coding assistant with a terminal UI, session persistence, and custom tools.

By understanding how to compose these layers, you can build production-grade agentic software on your own terms, without being locked into a specific abstraction.

Pi was created by @badlogicgames. This is a great writeup from him that explains some of the design decisions made when creating it.

The stack

@felipealfonsog
felipealfonsog / fix-pip.sh
Last active October 18, 2026 14:00
Removing Python's EXTERNALLY-MANAGED lock
#!/usr/bin/env bash
echo "──────────────────────────────────────────────"
echo " Removing Python's EXTERNALLY-MANAGED lock "
echo "──────────────────────────────────────────────"
echo "* Developed and engineered by:"
echo "* Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>"
echo "* Computer Science Engineer"
echo "* Chile"
echo "------------------------------------------------"
@frozenpandaman
frozenpandaman / widevine-decryption.md
Last active October 31, 2026 02:24
download videos protected with widevine DRM
@rubenhorn
rubenhorn / TermuxServer.md
Last active October 31, 2025 13:42
Termux Server

Initial setup

(See also the Termux Wiki)

# Install AutoSSH, OpenSSH and FTP server and tmux
pkg upgrade
pkg install autossh openssh openssh-sftp-server tmux
# Set password for initial connection
passwd
# Find local IP address of device
ifconfig | grep -o 192[0-9\.]*
@catalinmiron
catalinmiron / index.js
Created December 15, 2021 08:37
Starter Code - ScrollToIndex tutorial
import { Entypo, Feather } from '@expo/vector-icons';
import faker from 'faker';
import * as React from 'react';
import { Dimensions, FlatList, Text, TouchableOpacity, View } from 'react-native';
const { width, height } = Dimensions.get('screen');
faker.seed(10);
const data = [...Array(20).keys()].map(() => ({
@diegopacheco
diegopacheco / pbpaste-pbcopy-ubuntu.md
Last active September 17, 2026 17:29
pbpaste && pbcopy for Ubuntu Linux 20.04

Install

sudo apt-get install xclip -y

Create Alias

alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'

Try out

@FreddieOliveira
FreddieOliveira / docker.md
Last active October 25, 2026 11:19
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@miladd3
miladd3 / remCalc.ts
Last active July 9, 2025 17:41
Javascript px to Rem function
/**
* Converts pixel size to rem and accepts the base as second argument. default base is 16px
*
* @param {number|string} px
* @param {number} base
* @return {string}
*/
const remCalc = (px: number | string, base: number = 16) => {
const tempPx = `${px}`.replace('px', '')
@SkYNewZ
SkYNewZ / Caddyfile
Created October 7, 2020 17:13
Example Caddyfile for using as load balancer
{
# Enable Debug mode
debug
# Disable admin API
admin off
}
localhost {
# https://caddyserver.com/docs/caddyfile/directives/push