Skip to content

Instantly share code, notes, and snippets.

@sebiomoa
sebiomoa / security.txt
Last active March 5, 2026 20:34
Security.md file for AI Agents
# Security Template
This repository handles production user data and privileged database access. Treat security requirements as **non-optional**.
## Agent Rules (MUST FOLLOW)
- **No secrets in code**
- Never commit: Service role keys, JWT secrets, database passwords, API keys.
- Client-side env vars must be limited to `NEXT_PUBLIC_*` and must be non-sensitive.
@playniuniu
playniuniu / aes.go
Created July 5, 2020 11:43
Python3 & Go AES/CBC/PKS7Padding
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"io"
"log"
@ardakazanci
ardakazanci / rippleglass.kt
Last active March 5, 2026 20:33
LiquidGlassAGSLShader
private const val LiquidGlassShaderSource = """
const float PI = 3.1415926;
const float FORCE = 0.08;
const float THICKNESS = 0.075;
const float FEATHERING = 0.1;
const float ABERRATION_OFFSET = 0.006;
const float FLASH_INTENSITY = 3.0;
const float REFRACTION_STRENGTH = 0.03;
@leocomelli
leocomelli / git.md
Last active March 5, 2026 20:23
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@vinothpandian
vinothpandian / pong.py
Created December 19, 2012 15:32
Classic Pong game in Python - using pygame
#PONG pygame
import random
import pygame, sys
from pygame.locals import *
pygame.init()
fps = pygame.time.Clock()
#colors
@oelna
oelna / polychromie-architecturale.json
Created April 11, 2017 14:07
Le Corbusier's "Polychromie Architecturale" – all 63 colors as hex values, with their original name, ID and lightness coefficient (HBW) in a neat JSON array
[
{
"hex":"fff1ce",
"name":"blanc",
"hbw":72,
"id":"32001",
"collection":1931
},{
"hex":"585d5e",
"name":"gris foncé 31",
@gabereiser
gabereiser / MicrophoneBufferManager.swift
Last active March 5, 2026 20:21
MicrophoneBufferManager
import AVFoundation
import Accelerate
// MARK: - Delegate Protocol
/// Receives raw audio buffer callbacks from the microphone.
public protocol MicrophoneBufferManagerDelegate: AnyObject {
/// Called on every audio tap with a fresh buffer of raw PCM samples.
/// - Parameters:
/// - manager: The `MicrophoneBufferManager` that produced the buffer.
# Claude Code CLI Environment Variables
# This file lists all environment variables used in v2.1.63 with explanations
## Anthropic API & Authentication
ANTHROPIC_API_KEY - Primary API key for Anthropic's Claude API. Used as fallback when no OAuth token is configured.
ANTHROPIC_AUTH_TOKEN - Alternative bearer token for Anthropic services. Takes priority over ANTHROPIC_API_KEY for authorization headers.
ANTHROPIC_BASE_URL - Custom base URL for Anthropic API endpoints. Overrides the default api.anthropic.com endpoint.
ANTHROPIC_CUSTOM_HEADERS - Custom HTTP headers for API requests. Newline-separated Key: Value pairs.
ANTHROPIC_BETAS - Comma-separated list of beta feature headers to include in API requests. Appended to internal beta flags.