Skip to content

Instantly share code, notes, and snippets.

View eevmanu's full-sized avatar
🎯
focused

Manuel Solorzano eevmanu

🎯
focused
View GitHub Profile
@eevmanu
eevmanu / steps.md
Created May 19, 2026 13:14
how to use gh pr to set the pr number in the ps1 prompt via starship shell prompt with caching to avoid multiple http hits on each prompt redraw

Yes, this is a very common problem with putting API calls in prompts! If you run it synchronously, your terminal freezes for a half-second every time you press Enter.

To fix this, we can create a smart wrapper script. The script will:

  1. Immediately read from a /tmp/ cache file so your prompt is instantaneous (zero lag).
  2. Fetch from GitHub in the background if the cache is missing or older than 24 hours.
  3. Provide a --refresh flag so you can manually update it right after opening a new PR.

Here is the complete setup to get this working perfectly:

@eevmanu
eevmanu / research.md
Created May 7, 2026 16:56
copilot clit research about gemini for google cloud cloudaicompanion.googleapis.com quotas and system limts understanding

Google Cloud Platform — Gemini for Google Cloud (cloudaicompanion.googleapis.com) Quota & System Limit Reference

Focus: Gemini Code Assist Standard + Gemini CLI

Report scope: Every quota and system-limit row visible in the Cloud Console for the cloudaicompanion.googleapis.com API (the Gemini for Google Cloud / Code Assist backend), interpreted in the context of a user running Gemini Code Assist Standard tier via Gemini CLI. Sources are official Google documentation and the open-source Gemini CLI repository unless otherwise noted.

@eevmanu
eevmanu / monitor-keyboard.sh
Last active April 26, 2026 01:23
A rootless bash script using udevadm monitor to detect specific USB keyboard plug/unplug events (with debouncing) and trigger custom actions.
#!/bin/bash
# ==============================================================================
# Script: monitor-keyboard.sh
# Description: Monitors for specific USB keyboards and triggers custom scripts
# on plug/unplug events. Uses debouncing to handle event bursts.
# Tags: linux, udev, usb, automation, hotplug, debounce, bash
# ==============================================================================
# Minimal PoC for USB Keyboard Detection using udevadm
# Does not require sudo.
@eevmanu
eevmanu / 1.readme.txt
Created March 24, 2026 01:35
gmail api docs to understand date search filter with timestamp
https://developers.google.com/workspace/gmail/api/guides/filtering
Caution: All dates used in the search query are interpreted as midnight
on that date in the PST timezone. To specify accurate dates for other
timezones pass the value in seconds instead:
https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.messages/list
@eevmanu
eevmanu / iperf3-us-cities.sh
Last active March 3, 2026 20:17
detect available iperf3 servers in miami , new york and los angeles to have a more precise test of upload and download bandwidth
#!/usr/bin/env bash
iperf3_us_cities() {
local url='https://export.iperf3serverlist.net/listed_iperf3_servers.json'
local sites='los angeles|miami|new york city'
printf ' last-modified: '
curl -sI "$url" | grep -i '^last-modified:' | cut -d' ' -f2- | tr -d '\r'
printf '\n'
@eevmanu
eevmanu / settings.json
Created February 26, 2026 04:25
gemini cli settings json ( `~/.gemini/settings.json` ) to use gemini 3.1 pro for everything ( after reading and understanding https://github.com/google-gemini/gemini-cli/blob/main/schemas/settings.schema.json )
{
"$schema": "https://raw.githubusercontent.com/google-gemini/gemini-cli/main/schemas/settings.schema.json",
// 1. GLOBAL DEFAULT
"model": {
"name": "gemini-3.1-pro-preview"
},
// 2. PLAN MODE ROUTING (Prevents swapping models during planning)
"general": {
"plan": {
"modelRouting": false
@eevmanu
eevmanu / prompt-english-translation.txt
Created November 3, 2025 16:21
recent optimized prompt to translate a text from spanish into english
Translate the provided Spanish text into fluent, idiomatic American English—prioritizing clarity, natural phrasing, and cultural appropriateness for native US speakers. Unless specified otherwise, default to standard American English conventions.
If the input includes sections already in English, focus first on improving, translating, and explaining the parts written in Spanish. Only rework or refine the existing English portions if doing so clearly enhances context, cohesion, or the overall output quality—particularly in cases where mixing English and Spanish in the source text meaningfully enriches the final English result. Apply this in a nuanced way: prioritize Spanish-to-English translation, but apply careful judgment when integrating or rewriting English and Spanish segments together based on semantic intent. This approach should remain narrowly scoped to this use case to avoid reducing the output's precision or quality.
When explaining optimizations or improvements made, provide a precise account of
@eevmanu
eevmanu / improvedtube.json
Created November 2, 2025 21:23
backup of settings for chrome extension - https://chromewebstore.google.com/detail/bnomihfieiccainjcjblhegjgglakjdd - 'Improve YouTube!' 🎧 (for YouTube & Videos)
{"always_show_progress_bar":false,"analyzer_activation":true,"channel_default_tab":"/videos","channel_trailer_autoplay":false,"comments":"normal","comments_sidebar":false,"comments_sidebar_simple":false,"day_of_week":true,"description":"expanded","disable_likes_animation":true,"forced_theater_mode":true,"hide_author_avatars":true,"hide_comments_count":true,"hide_playlist":false,"hide_sidebar":false,"hide_sponsored_videos_home":true,"hide_views_count":true,"language":"en","lastDarkTheme":"night","livechat":"hidden","player_hide_progress_preview":true,"popup_ad":true,"redirect_shorts_to_watch":true,"related_videos":"hidden","remove_history_shorts":true,"remove_home_page_shorts":true,"remove_subscriptions_shorts":true,"remove_trending_shorts":true,"schedule":"system_peference_dark","squared_user_images":false,"theme":"night","thumbnails_hide":false,"undo_the_new_sidebar":false,"up_next_autoplay":false,"youtube_home_page":"/feed/subscriptions","youtube_language":"en-US"}
@eevmanu
eevmanu / collapsible-section-in-gfm.md
Last active September 29, 2025 15:17
collapsible section using direct html elements on top of github markdown flavored with and without code syntax on summary / title

markdown syntax

<details>
<summary> <code> click here to see logs 👇 </code> </summary>

```  
[INFO] [launch]: Default logging verbosity is set to INFO
...
@eevmanu
eevmanu / prompt.txt
Created September 19, 2025 03:45
prompt star framework enhance performance review evidence claim statements
ROLE
You are an expert performance review coach specializing in the STAR framework. Your primary skill is transforming raw notes and statements into compelling, concise, and impactful evidence claims suitable for a formal performance review.
GOAL
Your goal is to help me polish a list of my achievements into well-structured evidence claims using the STAR framework. You will guide me through the process by asking clarifying questions to fill in any missing details and will help consolidate similar points to create a strong, clear narrative for my reviewer.
CONTEXT: THE STAR FRAMEWORK