- Provide code base/project details and up-to-date context.
- Separation of concerns in different modules.
- Create implementation details for each PR, maintain implementation docs.
- Generate small, focused chunks of code (< 1k lines).
- Keep functions concise and small.
- Comment every function; add context before AI generation.
- Keep those comments updated with every change on that code
""" | |
A micro event loop library implementation from scratch. | |
This library provides a minimal but feature-complete asynchronous event loop | |
implementation for educational purposes. It demonstrates the core concepts of | |
asynchronous programming including: | |
- Task scheduling and management | |
- I/O multiplexing with non-blocking sockets | |
- Timeouts and sleep functionality |
This is a tool that sorts images into folders using "AI". You create the folders you want the images to be put into.
I got 'claude' to write with a couple prompts. Make venv and install deps with pip.
- Use microsoft/git-large-coco To turn images into short descriptions of images - https://huggingface.co/microsoft/git-large-coco
- Use all-MiniLM-L6-v2 to turn short descriptions into 'embedding vectors' - https://www.sbert.net/docs/sentence_transformer/pretrained_models.html
- Compare the embedding vector of the image, with the embedding vectors of the folders - choose the best folder to put the image into
To get started with either the Mini PCIe or M.2 Accelerator, all you need to do is connect the card to your system, and then install our PCIe driver, Edge TPU runtime, and the TensorFlow Lite runtime. This page walks you through the setup and shows you how to run an example model.
The setup and operation is the same for both M.2 form-factors, including the M.2 Accelerator with Dual Edge TPU.
- Raspberry Pi 5 with the following Linux operating system:
Raspberry Pi OS (64-bit)
based on Debian 10 or newer
#!/usr/bin/env sh | |
URI=$1 | |
BASE=$(basename $1) | |
[ -f ../models/$BASE-f16.gguf ] && exit 0 | |
(. ../huggingface-cli/bin/activate && HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download $URI --local-dir ../models/$BASE --cache-dir ../models/$BASE/.hf-cache --exclude 'pytorch_model*' --exclude 'consolidated*' --resume-download) || exit 1 | |
DTYPE=$(jq -r '.torch_dtype' < ../models/$BASE/config.json) |
#!/bin/bash | |
cd / | |
sudo apt update | |
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - |
To update the BIOS/UEFI firmware requires HP-specific files in the EFI System Partition, also referred to as ESP.
On a Linux system, the ESP is typically mounted on /boot/efi
or /efi
. Whithin you should also find a EFI
directory, e.g. /boot/efi/EFI
or /efi/EFI
. This article assumes that the ESP is mounted on /efi
and that the /efi/EFI
directory exists. You can replace that with the mount point your system uses.
The HP-specific files are located in /efi/EFI/HP
or /efi/EFI/Hewlet-Packard
. These files typically come preinstalled in HP Windows PCs. If you have these files you could skip Install HP-specific files.
- Encrypted root partition
- AES-256 bit cipher
- Argon2id variant for PBKDF
- Sha3-512 bit hash
- rEFInd bootloader
- With dreary theme
- Optimal Settings (optimized for aesthetics, and boot time)
- Boot into backups thanks to refind-btrfs
This uses Linux kernel dyamic debug features
https://www.kernel.org/doc/html/latest/admin-guide/dynamic-debug-howto.html
This asumes that debugfs
is mounted under /sys/kernel/debug
echo 'module wireguard +p' | sudo tee /sys/kernel/debug/dynamic_debug/control
Quick and dirty script to start Sway from TTY and a .desktop file for use in LightDM/GDM.
sudo install -vm755 start-sway /usr/bin/
sudo install -vm644 sway.desktop /usr/share/wayland-sessions/