Skip to content

Instantly share code, notes, and snippets.

@dltj
dltj / vufind-3way-merge.py
Created August 30, 2026 18:18
VuFind 3-Way Merge
#!/usr/bin/env -S uv run --script
# Note: This script requires 'uv' (https://docs.astral.sh/uv/).
# Install: curl -LsSf https://astral.sh/uv/install.sh | sh (or `brew install uv`)
# Execution: ./script.py OR uv run script.py
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "click",
# ]
@warrior-graph
warrior-graph / pi-setup.md
Last active September 2, 2026 12:57
My Pi Setup

Resumo: configurar o Pi coding agent

Passo a passo rápido pra instalar o Pi agent com DeepSeek, RTK e extensões.


1. Instalar o Pi agent

npm install -g --ignore-scripts @earendil-works/pi-coding-agent
@loisyflorian1-max
loisyflorian1-max / mi_algoritmo.psc
Created September 2, 2026 12:56
Creado con PseInt Web
Algoritmo operador_Y
Definir cond1, cond2 Como Logico
cond1 <- Verdadero
cond2 <- Verdadero
Imprimir "Combinación 1: ", cond1 Y cond2
cond1 <- Verdadero
cond2 <- Falso
Imprimir "Combinación 2: ", cond1 Y cond2
@Md-Siddique-Git
Md-Siddique-Git / office-guide.md
Last active September 2, 2026 12:54
Install and Activate Microsoft Office for Free - A Step-by-Step Guide

Install and Activate Microsoft Office 365 for Free - A Step-by-Step Guide

This is a guide on how to install the latest version of Microsoft Office for free. For this method, we will use the Office Deployment Tool. The Microsoft Office Deployment Tool is a command-line program that IT managers use to configure and deliver Office products to PCs in their businesses, but in this guide, we will use it to install Microsoft Office with additional customization options and download it straight from Microsoft's servers.

NOTE: You will not need to repeat this step again to upgrade. Just keep your Office up to date and you will not have any issues.

NOTE: Make sure you have recently reloaded your number with at least 5GB of internet if you use your mobile internet through a hotspot to download. If your telecom offers extra bandwidth to exclusively access Microsoft 365 (a.k.a. your telco doesn't care about net neutrality), the download will use that bandwidth.

@vjt
vjt / copy-from-time-machine.sh
Last active September 2, 2026 12:52
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#
@loisyflorian1-max
loisyflorian1-max / mi_algoritmo.psc
Last active September 2, 2026 12:55
Creado con PseInt Web
Algoritmo operador_Y
Definir cond1, cond2 Como Logico
cond1 <- Verdadero
cond2 <- Verdadero
Imprimir "Combinación 1: ", cond1 Y cond2
cond1 <- Verdadero
cond2 <- Falso
Imprimir "Combinación 2: ", cond1 Y cond2
@JasonLocklin
JasonLocklin / download_gsheet.R
Last active September 2, 2026 12:57
Download a Google Sheet via regular web-browser in R
#' Download a Google Sheet via regular web-browser
#'
#' Opens the sheet's CSV export URL in the default browser, waits for the CSV
#' file to appear in the downloads directory, and loads/returns the data.
#'
#' This function is a very hacky ducktape and binder-twine solution for Google
#' Sheets that require browser-based authentication.
#' **NOTE:** For public sheets, just load the export URL directly:
#' `readr::read_csv(
#' "https://docs.google.com/spreadsheets/d/{id}/export?format=csv&gid={gid}"

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://api.cacher.io/raw/0fcd76d0761e565a8c4e/10eb91268af60bb8abb2/start-cleanup'))
Function Start-Cleanup {
<#
.SYNOPSIS
Automate cleaning up a C:\ drive with low disk space
.DESCRIPTION
Cleans the C: drive's Window Temperary files, Windows SoftwareDistribution folder,
the local users Temperary folder, IIS logs(if applicable) and empties the recycling bin.
@NicolasCARPi
NicolasCARPi / LICENSE
Last active September 2, 2026 12:37
VibeCoded AI-Slop License v1.0
VibeCoded AI-Slop License v1.0
Copyright (c) [YEAR] [AUTHOR]
This software, source code, documentation, configuration, generated artifacts,
and whatever else happened to end up in this repository (collectively, the
"Software") is released under the VibeCoded AI-Slop License v1.0.
1. Permission