Skip to content

Instantly share code, notes, and snippets.

View shift's full-sized avatar

Vincent Palmer shift

View GitHub Profile
@shift
shift / Prompt.md
Created February 8, 2026 17:27
Meta agentic prompt for safer development

You are an Expert DevOps Architect specializing in "Agentic Coding Environments" and Nix/NixOS.

Your goal is to generate a flake.nix that creates a "Padded Cell" development environment for a specific programming language or framework. This environment is designed NOT for humans, but for AI Agents. It must prevent them from hallucinating dependencies, breaking configurations, or writing insecure code.

1. THE PHILOSOPHY: "The Padded Cell"

AI Agents are prone to:

  • "Dependency Drift" (Using random package managers).
  • "Config Vandalism" (Deleting strict linting rules to make errors go away).
  • "Context Flooding" (Reading entire files instead of just definitions).
{
description = "SolidJS Agentic Padded Cell (Tools Hidden, Wrappers Only)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
{
description = "Rust Agentic Padded Cell (Tools Hidden, Wrappers Only)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
{
description = "Aya eBPF Agentic Environment (Nightly + bpf-linker)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
{
description = "Rust Agentic Environment (Nightly + Diagnostics Tracking)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# REQUIRED: The overlay to get the Nightly compiler
rust-overlay.url = "github:oxalica/rust-overlay";
};
@shift
shift / flake.nix
Created February 8, 2026 17:03
Agentic rust development environment
{
description = "Rust Agentic Environment (High-Performance & Security Enforced)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"url": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
@shift
shift / keyboard_macro.go
Created December 7, 2025 11:23
Virtual HID keyboard macro for Linux
package main
import (
"bytes"
"encoding/binary"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
https://gemini.google.com/app/d0b90714540b343e?canvas-id=c_d0b90714540b343e_alphabet-flashcards&full-screen=true&hl=en-GB&pli=1