Skip to content

Instantly share code, notes, and snippets.

View iamajvillalobos's full-sized avatar

AJ Villalobos iamajvillalobos

View GitHub Profile
@iamajvillalobos
iamajvillalobos / favicon
Created January 12, 2026 04:26 — forked from Shpigford/favicon
/favicon command for Claude Code — Generates all necessary favicon files, HTML and webmanifest, including updating your layout files with the necessary code.
---
argument-hint: [path to source image]
description: Generate favicons from a source image
---
Generate a complete set of favicons from the source image at `$1` and update the project's HTML with the appropriate link tags.
## Prerequisites
First, verify ImageMagick v7+ is installed by running:
@iamajvillalobos
iamajvillalobos / gist:e2dc13619a14663bdda3f93c634af7ce
Created January 9, 2026 12:41
payroll_generator_service.rb
# frozen_string_literal: true
# ABOUTME: Generates payroll entries for all active employees in a payroll period
# ABOUTME: Orchestrates data preloading and PayrollEntryBuilder calls
class PayrollGeneratorService
Result = Struct.new(:success?, :generated_count, :failed, :total_count, :blocked_by_incomplete, keyword_init: true)
def initialize(payroll_period)
@payroll_period = payroll_period
@account = payroll_period.account
---
description: Simplify and refine Ruby/Rails code for clarity and maintainability
allowed-tools: Bash(git:*), Read, Glob, Grep, Edit
model: opus
---
## Context
- Current branch: !`git branch --show-current`
- Recent changes: !`git diff --name-only HEAD~5 2>/dev/null || git diff --name-only`
#!/bin/bash
# summarize-book - Create a 15-minute book summary using Claude
# Usage: summarize-book path/to/book.pdf
set -e
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@iamajvillalobos
iamajvillalobos / linux-setup.sh
Created March 20, 2024 04:37 — forked from dhh/linux-setup.sh
linux-setup.sh
# CLI
sudo apt update
sudp apt install \
git curl docker.io \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev libsqlite3-0 \
redis-server mysql-server sqlite3 libmysqlclient-dev apache2-utils \
rbenv
@iamajvillalobos
iamajvillalobos / reset.css
Created December 9, 2023 06:33
css reset
*,
*::before,
*::after {
box-sizing: border-box;
}
~/Development/radiopaedia docker-development
❯ bin/setup
Login Succeeded
== Checking/Installing dependencies ==
The Gemfile's dependencies are satisfied
Waiting for database to become ready
[+] Running 4/0
✔ Network radiopaedia_default Created 0.0s
✔ Container radiopaedia-redis-1 Created 0.0s
✔ Container radiopaedia-s3-1 Created 0.0s
@iamajvillalobos
iamajvillalobos / gist:83f3b2140046bf1f45a6c2694467ee04
Created March 28, 2020 23:01
Install libv8 in Mac OS Catalina 10.15
$ brew install [email protected]
$ bundle config build.libv8 --with-system-v8
$ bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected])
$ bundle install
❯ bin/rails s
=> Booting Puma
=> Rails 6.0.2.1 application starting in development
=> Run `rails server --help` for more startup options
Puma starting in single mode...
* Version 4.3.1 (ruby 2.6.5-p114), codename: Mysterious Traveller
* Min threads: 5, max threads: 5
* Environment: development
* Listening on tcp://127.0.0.1:3000
* Listening on tcp://[::1]:3000
@iamajvillalobos
iamajvillalobos / gist:df61a7d22ba75dd18a3fe3e9cc19fa50
Created January 26, 2020 15:32
Disable VSCode annoying popup hints
Add this on in settings.json
```
"editor.parameterHints": false,
```