Skip to content

Instantly share code, notes, and snippets.

@faustinoaq
faustinoaq / README.md
Last active October 4, 2026 23:39
Claude Code with local LM Studio models from WSL2 (bashrc helpers + small coding benchmark)

Claude Code with local LM Studio models (WSL2 + Windows LM Studio)

Shell helpers to drive the Windows LM Studio CLI (lms) from WSL2 and start Claude Code against a local model through LM Studio's Anthropic-compatible /v1/messages endpoint. No proxy needed.

Setup

  1. Install LM Studio on Windows, download models (lms get google/gemma-4-12b-qat).
  2. WSL2 must reach Windows localhost:1234 (works with mirrored networking).
@faustinoaq
faustinoaq / migrate.sh
Last active March 31, 2025 10:02
Migrate the old UIUCPlus to the new UIUCPlus, ensuring it is properly formatted and compilable.
#!/bin/bash
# Migrate the old UIUCPlus to the new UIUCPlus, ensuring it is properly formatted and compilable.
# Cleanup
rm -rf FormattedUIUCPlus NewUIUCPlus
# Clone updated repos
git clone https://github.com/sugamadhiakri/UIUCPlus FormattedUIUCPlus
git clone https://github.com/summer-research-program/UIUCPlus NewUIUCPlus
@faustinoaq
faustinoaq / bounce.cpp
Last active January 26, 2025 18:39
OpenGL animation of a bouncing ball inside a transparent rotating cube that changes direction on click
/**
* @file bounce.cpp
* @brief OpenGL animation of a bouncing ball inside a transparent cube
* @author @faustinoaq
*
* This program creates a 3D animation using OpenGL and GLFW showing a red sphere
* bouncing inside a transparent cube with colored faces. The animation includes:
* - A rotating view of the scene
* - Sphere-cube collision detection and response
* - Transparent cube faces with colored edges
@faustinoaq
faustinoaq / myAngular.html
Last active July 7, 2026 07:13
Front-end libraries (React, Vue, Angular) and the basic principles of how they work, all in a single file using pure JavaScript (VanillaJS).
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Angular from Scratch</title>
<style>
.my-component {
font-family: Arial, sans-serif;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@faustinoaq
faustinoaq / .bashrc
Last active July 13, 2024 05:59
Bash Source with python pip logic to add or remove packages from requirements.txt on install or remove
alias pi='pip install'
alias pu='pip uninstall -y'
# pip add
pa() {
pi $1 && pip freeze | grep -i $1 | tee -a requirements.txt
}
# pip remove
pr() {
@faustinoaq
faustinoaq / help.md
Last active September 2, 2025 00:03
Recover ZFS boot disk in Ubuntu 22.04.4

Recovery

TL;DR: for some weird reason zfs was not being loaded in grub, maybe related to this bug?

ATTENTION: I copy pasted some things from my memory so, some things may be mistyped or wrong, proceed with caution or leave a comment ⚠️

insmod zfs
zfs-bootfs (hd1,gpt3) # or whatever is your structure
@faustinoaq
faustinoaq / Makefile
Last active April 10, 2019 20:58
Makefile for arduino.cr
# Compiled using LLVM 6 with AVR target support
# Digispark Attiny85 version
CC=avr-gcc
AR=avr-ar
OBJCOPY=avr-objcopy
STRIP=avr-strip
SIZE=/home/main/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-size
CRYSTAL=/run/media/main/5E7F72DC50CCBB04/crystal-master-4f5c55d-0.27.1-dev/bin/crystal
AVR-INCLUDE=$(HOME)/.arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/avr/include/
@faustinoaq
faustinoaq / aes.cr
Last active May 23, 2021 13:50
AES Cipher example in Crystal
require "openssl/cipher"
module AES
def self.encrypt(data, password)
cipher = OpenSSL::Cipher.new("aes-128-cbc")
cipher.encrypt
cipher.key = password
io = IO::Memory.new
io.write(cipher.update(data))
io.write(cipher.final)
@faustinoaq
faustinoaq / empresas-panama.csv
Last active June 20, 2026 14:15
Lista de empresas de tecnología y desarrollo en Panamá
Sitio Web Nombre de la Empresa
http://www.admios.com Admios
https://allsafe.com.pa All Safe Solutions S.A.
http://www.allsecurity.org/wp AllSecurity – Revista Allsecurity Especializada en Tecnologías & Seguridad de la información Noticias comunidad Hardware Software ethical Hacking cybersecurity.
http://www.americavirtual.net America Virtual – Diseño Web Panama – Marketing Digital
https://arpiasoftware.com arpiasoftware.com
http://www.livewalkpty.com Audio walks that Awaken Panama's HIstory - Panama Self-Guided Audio Walking Tours
http://best.com.pa Best Software Inc. – Sage 50 (antes Peachtree) ACT! OIS en Panamá
http://www.bitban.com Bitban | Simplificando la web
http://bluetideconsulting.com BlueTide IT Consulting