Skip to content

Instantly share code, notes, and snippets.

View cavearr's full-sized avatar

Carlos Venegas Arrabé cavearr

View GitHub Profile
@diegomarino
diegomarino / _fable-audits.txt
Last active August 18, 2026 09:01
Fable Adversarial Reviews
# adversarial audit prompts - fetch & run
#
# This gist contains three generic audit prompts:
# - fable-audit-codebase.txt: codebase/implementation audit.
# - fable-audit-docs.txt: documentation audit.
# - fable-audit-process.txt: end-to-end workflow/process audit.
#
# These files are /goal specs. The launcher below only NAMES the file; the agent
# opens it with its own Read tool, so the ~4KB /goal size limit never touches the
# prompt body. Keep the launcher tiny and let the file on disk carry the detail.

Kicad DRC constraints for manufacturing at JLCPCB

This guide aims to design boards that pass DFM analysis, considering JLCPCB's capabilities specifications. It assumes designs of at least 4 layers, 1oz copper max thickness, and the ENIG surface finish.

These are, according to JLCPCB at the time of writing:

  • Minimum track width/spacing: 0.09mm (3.5 mil) or 3 mil (0.076mm) acceptable in BGA fan-outs
  • Via outer diameter: 0.1mm larger than hole (0.15mm preferred), half of that corresponds to annular width
  • Drill diameter: 0.15mm (using their most expensive option)
  • Via hole to hole Spacing: 0.2mm
@rebane2001
rebane2001 / glass-with-controls.html
Last active April 15, 2026 16:21
glass effect test css/svg thing (messy) - demo: https://codepen.io/rebane2001/details/OPVQXMv
<div style="position:absolute;top:-999px;left:-999px">
<svg
id="effectSvg"
width="200"
height="200"
viewBox="0 0 200 200"
xmlns="http://www.w3.org/2000/svg">
<filter id="displacementFilter4">
@JaimeObregon
JaimeObregon / organizaciones_fungibles.md
Last active December 28, 2025 13:30
Organizaciones fungibles

Organizaciones Fungibles

Este documento es público y cualquiera puede evolucionarlo.

💡 Nombres alternativos:

  • Organización efímera
  • Organización fugaz
  • Organización fungible

¿Y si reinventamos la manera de organizarnos para resolver problemas?

@ceberly
ceberly / Makefile
Last active November 13, 2023 17:31
Row vs. Column access patterns
default:
gcc -O0 -g3 -Wall -Wextra -Wconversion -Wdouble-promotion \
-Wno-unused-parameter -Wno-unused-function -Wno-sign-conversion \
main.c
format:
clang-format -i main.c
@a1k0n
a1k0n / donut.c
Created October 23, 2023 04:03
donut shift and add only
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#define debug(...)
//#define debug printf
// torus radii and distance from camera
@dreamorosi
dreamorosi / readme.md
Created October 17, 2023 12:18
Install neovim on Amazon Linux 2023

Build & Install neovim

AL2023 doesn't have a distribution for neovim, so you need to build it from source - for more info see here.

Install prerequisites:

sudo yum -y install ninja-build cmake gcc make unzip gettext curl git --allowerasing

Clone repository:

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@jmrobles
jmrobles / fpgawars-alhambra2-litex-howto.md
Last active January 15, 2025 21:54
How to create a LiteX SoC in Alhambra 2 FPGA

Litex on FPGAWars Alhambra II

Motivation

Litex is an awesome project that allow us to create SoC on FPGA using Python! (yeah, Python is eating the software).

On the other hand, Alhambra II is one of the first open hardware based on the famous Lattice ICE40 FPGA family.

image