Skip to content

Instantly share code, notes, and snippets.

@Ilgrim
Ilgrim / gist:fc2191dc7cb7830b57ed54fb1a47b74e
Last active September 4, 2026 01:39
Las Tablas de la Ley
Asimila y **confirmame** que comprendes y aceptas estos dogmas:
1. ES en conversación; EN en código/docs/commits por defecto
3. Sin sicofancia: segunda opinión honesta, profesional, sin crueldad; YO decido
4. NO editar/escribir/commit sin orden explícita con trigger "ejecuta/aplica"
5. Proyecto != producto; mimo artesanal sí (YAGNI ≠ chapuza)
6. Análisis profundo (calidad+detalle) + gráficas ASCII/UTF8 por defecto; Mermaid solo si pides "gráfica rica"
7. Valida con web/context7 solo si afirmas hecho técnico verificable; si no, marca incertidumbre
8. Chequea checklist 14 sesgos antes de responder; nota solo si activo/alto riesgo
9. Transparencia de certeza: indica alta/media/baja + qué falta para subirla
10. Límites claros: declara qué entra / qué no entra / qué queda opcional
@Ilgrim
Ilgrim / mount_squashfs_rw.md
Created March 19, 2026 20:13 — forked from lxs137/mount_squashfs_rw.md
Mounting a squashfs filesystem in read-write

Activate Sublime Text Build 4200 x64

  1. Go to https://hexed.it/
  2. Click Open File in the top left corner, navigate to instalation folder and select sublime_text.exe
  3. On the Search for bar in the left panel, input: 0F B6 51 05 83 F2 01
  4. Now in the editor, click on the first byte (0F) and start replacing each byte by: C6 41 05 01 B2 00 90
  5. Finally, in the top left corner again, click on Save as and replace the old executable file with the newly created one.

Enjoy an Unlimited User License!

#!/usr/bin/ruby
require 'socket'
hostname = ARGV[0]
port = ARGV[1]
filename = ARGV[2]
begin
socket = TCPSocket.new( hostname, port )
socket.send( "zINSTREAM\0", 0)
@Ilgrim
Ilgrim / qemu-networking.md
Created April 1, 2025 13:41 — forked from extremecoders-re/qemu-networking.md
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

@Ilgrim
Ilgrim / Stream_RTSP.md
Created January 21, 2025 18:03 — forked from edjdavid/file.md
Stream Windows webcam/desktop via RTSP

Can be used for streaming data (webcam or screen capture) from the Windows to WSL

Install

  1. Simple RTSP Server
  2. ffmpeg

Get the internal IP of WSL

Run from a WSL terminal

ip route list default | awk '{print $3}'
@Ilgrim
Ilgrim / readwrite.go
Created December 15, 2024 12:36 — forked from glinton/readwrite.go
Working example of one way to Read() large(ish) data (1MB) from a golang net.Conn
// Package main is intended to provide a working example of how to properly
// read from a net.Conn without losing data or integrity. The data is generated
// from alphabetical characters rather than simply rand to prevent the
// generation of an `EOF`
package main
import (
"crypto/md5"
"fmt"
"io"
@Ilgrim
Ilgrim / .vimrc
Created August 23, 2024 08:11 — forked from rocarvaj/.vimrc
Minimal .vimrc for C/C++ developers
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
@Ilgrim
Ilgrim / README.md
Created May 11, 2024 17:03 — forked from subfuzion/README.md
vim/neovim configuration

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

@Ilgrim
Ilgrim / gist:92eaa13c3f206ca9172815d17caccb62
Created February 11, 2024 18:43 — forked from TobiasWooldridge/gist:22f0cdca75190b9a473f
How to Unbrick a Kindle Paperwhite

How to unbrick an Amazon Kindle Paperwhite™

This guide instructs you in how to unbrick an Amazon Kindle Paperwhite. The consequences of following it are your own responsibility. This method (opening the Kindle and using the serial interface) should be a last resort and should only be considered if other methods fail

The Guide

  1. Pry open Kindle using a prying tool
  2. Unscrew the screen and remove it from the base. Note that there's a screw hidden under the adhesive at the top in the middle
  3. Solder tin wire to serial ports on the bottom
  4. Attach tin wire to USB TTY device (order is ground, RX, TX, from the kindle's perspective, where GND is the smallest pad) and plug USB TTY device into your computer
  5. Open Putty on your computer in serial mode, with the serial port specified as your USB device and baud configured to 115200