Skip to content

Instantly share code, notes, and snippets.

View a10y's full-sized avatar
🇺🇲
DC

Andrew Duffy a10y

🇺🇲
DC
View GitHub Profile
@a10y
a10y / kplay
Created November 5, 2026 21:48
kplay: play a video in the terminal via the kitty graphics protocol (q quit, arrows seek, space pause). Needs ffmpeg/ffprobe.
#!/usr/bin/env python3
"""kplay - play a video in the terminal with the kitty graphics protocol.
usage: kplay [-s SEEK_SECONDS] [-r MAX_FPS] VIDEO
keys: q / Esc quit <- / -> seek -/+ 5 s space pause
needs: ffmpeg, ffprobe on PATH; a terminal that supports the kitty graphics protocol.
"""
import argparse, base64, fcntl, json, os, re, select, signal, struct, subprocess, sys, termios, time, tty, zlib
SEEK_STEP = 5.0
@a10y
a10y / PRIVACY.md
Created September 26, 2026 16:58
Globetrotter (iGlobetrotter) iOS app privacy policy

Globetrotter Privacy Policy

Last updated: September 26, 2026

Globetrotter (listed on the App Store as iGlobetrotter) shows how far your daily steps would take you along a walking route drawn on a globe. This policy explains what data the app uses and where that data goes.

Health data

  • With your permission, Globetrotter reads your step count and walking + running distance from Apple Health.
  • This data is processed only on your device. The app does not store it outside Apple Health, send it to any server, or share it with anyone.
@a10y
a10y / detections_cape_fear.geojson
Created May 24, 2026 18:38
Shipwreck candidate detections around Cape Fear, NC (YOLOv8n on BlueTopo bathymetry hillshades, conf>=0.25)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@a10y
a10y / TurboQuant_Summary.md
Last active March 26, 2026 14:13
Summary of TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate (arXiv:2504.19874) - Undergraduate-level explanation

TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate

Paper Summary | arXiv:2504.19874

Authors: Amir Zandieh (Google Research), Majid Daliri (NYU), Majid Hadian (Google DeepMind), Vahab Mirrokni (Google Research)


What This Paper Is About

0000000000040470 t _GLOBAL__sub_I_nvcompManagerFactory.cpp
00000000000e5780 t __device_stub__ZN6nvcomp20fill_cudecomp_paramsEPKPKvPKmPKPvPmP24CUmemDecompressParams_stP14nvcompStatus_tmPi(void const* const*, unsigned long const*, void* const*, unsigned long*, CUmemDecompressParams_st*, nvcompStatus_t*, unsigned long, int*)
00000000000abc30 t __device_stub__ZN6nvcomp38compact_comp_buffers_and_header_outputEPhPKPKhPKmP12CommonHeaderPmmmm10FormatTypeS9_m(unsigned char*, unsigned char const* const*, unsigned long const*, CommonHeader*, unsigned long*, unsigned long, unsigned long, unsigned long, FormatType, unsigned long*, unsigned long)
0000000000115ac0 t __device_stub__ZN14nvcomp_deflate18fill_params_kernelEP24CUmemDecompressParams_stPKPKvPKmPmPKPvbP14nvcompStatus_tmPKi(CUmemDecompressParams_st*, void const* const*, unsigned long const*, unsigned long*, void* const*, bool, nvcompStatus_t*, unsigned long, int const*)
00000000000e3770 t __device_stub__ZN6nvcomp8lowlevel20fill_cudecomp_paramsEPKPKvPKmPKPvPmP24CUmem
# find all refs with remotes that are deleted on the server, and delete them locally
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs -r git branch -D
config:
    flowchart:
        defaultRenderer: elk
flowchart TD
   %% Data Types
   Integer[Integer]:::datatype
   Float[Float]:::datatype
   String[String]:::datatype
@a10y
a10y / macros.rs
Created May 8, 2025 13:31
Vortex DType macros to revisit later
/// Create a new struct type. For example:
///
/// ```
/// use vortex_dtype::{struct_type, DType, PType};
///
/// let the_struct = struct_type! {
/// "x" => DType::from(PType::F64),
/// "y" => DType::from(PType::F64),
/// };
///
@a10y
a10y / Dockerfile
Created April 27, 2025 20:50
Get NanoLLM working on AGX Orin JetPack 6.2
FROM dustynv/nano_llm:r36.4.0
RUN apt update && apt install -y gstreamer1.0-nice
package org.apache.iceberg.parquet;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericRecord;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;