Skip to content

Instantly share code, notes, and snippets.

View Ryan-PG's full-sized avatar
๐ŸŽฏ
Focusing

Ryan Heida Ryan-PG

๐ŸŽฏ
Focusing
View GitHub Profile
@Ryan-PG
Ryan-PG / launch-application-with-proxy.md
Created October 19, 2026 16:02
Launch applications through a local or remote proxy using environment variables on Windows and Linux. Compatible with proxy clients such as v2rayN, Clash, and sing-box. Includes HTTP/SOCKS5 configuration, troubleshooting, and security tips.

Launch Applications Through a Local Proxy

Configure an application to use a local HTTP or SOCKS5 proxy by setting environment variables before launching it.

Default proxy address: 127.0.0.1:10808

Windows (PowerShell)

$env:HTTP_PROXY = "http://127.0.0.1:10808"
@Ryan-PG
Ryan-PG / 3x-ui-IP-SSL-Auto-Renewal-with-Nginx.md
Created October 6, 2026 07:50
Configure acme.sh hooks to automatically stop Nginx during 3x-ui Let's Encrypt IP certificate renewal and start it again afterward.

3x-ui SSL Auto-Renewal with Nginx

When 3x-ui uses Let's Encrypt with acme.sh in standalone HTTP-01 mode, it needs port 80 to be available during certificate issuance or renewal.

If Nginx is using port 80, renewal will fail unless Nginx is temporarily stopped.

This guide configures acme.sh to automatically stop Nginx before renewal and start it again afterward.

1. Find the Certificate Renewal

@Ryan-PG
Ryan-PG / claude-code-and-codex-cli-setup.md
Last active September 15, 2026 21:07
A concise installation and troubleshooting guide for Claude Code and OpenAI Codex CLI on Linux, macOS, and Windows. Includes authentication, updates, and common fixes.

Claude Code & Codex CLI Installation Guide

Lightweight setup guide for installing Claude Code and OpenAI Codex CLI on Linux, macOS, and Windows, including authentication, custom API providers, and common installation issues.


1. Prerequisites

Linux / macOS

@Ryan-PG
Ryan-PG / streamlit-stlite-github-pages-guide.md
Created June 9, 2026 20:55
Run Streamlit apps entirely in the browser using Stlite and deploy them for free on GitHub Pages with no backend required.

Running Streamlit Apps on GitHub Pages with Stlite

This project uses Stlite to run a Streamlit application entirely in the browser and host it on GitHub Pages.

Project Structure

.
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ app.py
@Ryan-PG
Ryan-PG / free-llms-apis-guide.md
Created September 25, 2025 12:07
A step-by-step guide to using free AI models from OpenRouter and GitHub Models . Includes base URLs, how to generate API tokens, links to free models, rate limit documentation, and secure token management with .env files. Also provides working curl and Python examples for quick integration.

Free LLM Models API Usage Guide: OpenRouter & GitHub

This guide explains how to use free models provided by OpenRouter and GitHub Models.
It covers authentication, available free models, rate limits, and secure token management.


๐Ÿ”น OpenRouter

Base URL

@Ryan-PG
Ryan-PG / n8n-concurrency-limit.md
Last active September 23, 2025 10:16
Step-by-step guide to enabling workflow execution concurrency limits in n8n. Covers requirements, queue mode setup with Redis, version checks, and alternative workarounds. Ideal for managing rate-limited APIs like OpenAI and improving workflow control in production.

โš™๏ธ Enabling & Configuring Workflow Concurrency Limits in self-hosted n8n (Updated)

This guide shows how to enable and configure workflow execution concurrency limits, aligned with the latest n8n versions, queue-mode, and concurrency control docs.
Useful especially when working with rate-limited APIs (OpenAI, Google, etc.).


โ“ Why You Might Not See Concurrency Controls

If concurrency doesnโ€™t seem to work or you donโ€™t see related options, check:

@Ryan-PG
Ryan-PG / n8n-CLI-cheatsheet.md
Last active August 30, 2025 04:51
A compact and practical cheatsheet for the n8n CLI. Covers workflow and credential import/export, cleanup, and common commands for managing self-hosted instances. Perfect for quick reference while automating or debugging your n8n setup.

๐Ÿง  n8n CLI Cheatsheet

A quick reference guide for common n8n command-line operations.


๐Ÿ“ค Export Workflows

Command Description
@Ryan-PG
Ryan-PG / n8n-automated-workflow-backup.md
Last active September 17, 2026 07:02
Automates daily backups of all n8n workflows by exporting them as individual JSON files and pushing them to a Git repo. Includes a Bash script and cron job setup for versioned, auditable workflow history. Ideal for self-hosted n8n instances using Git-based change tracking. Ask ChatGPT

๐Ÿง  Automated Backup of n8n Workflows to Git

This project provides a simple automation script that exports all workflows from your self-hosted n8n instance into individual JSON files and commits them daily to a Git repository for version control and backup.


โœ… Features

  • ๐Ÿ”„ Automatically exports all n8n workflows as JSON files
  • ๐Ÿ“‚ Saves files in a dedicated directory with human-readable names
@Ryan-PG
Ryan-PG / auto-start-vmware-vms-windows.md
Created May 12, 2025 09:46
Automatically start multiple VMware virtual machines on Windows boot using a batch script powered by vmrun.exe. Ensures all VMs start fully (not in paused state) by combining start with reset commands. Includes a clean README with step-by-step setup instructions, support for Workstation Player & Pro, and optional boot delay between VMs.

๐Ÿ’ป Auto-Start VMware VMs on Windows Boot

This guide explains how to automatically start your virtual machines (VMs) whenever your Windows system boots up or when VMware Workstation opens โ€” without leaving them paused.


โš™๏ธ Auto-Start with vmrun.exe (Works with Workstation Player & Pro)

โœ… Steps

  1. Use the provided start_all_vms_updated.bat file and update the .vmx paths with your actual VM locations.
  2. Set the script to run at Windows startup:
@Ryan-PG
Ryan-PG / ms-word-image-resizer-macro.md
Last active July 8, 2026 13:45
๐Ÿ–ผ๏ธ Resizes all images to fit within the page margins while maintaining aspect ratio.

๐Ÿ–ผ๏ธ Microsoft Word Image Resizer Macro โ€” FixAllImages_SafeVersion

๐Ÿง  Overview

This macro automatically resizes all images โ€” both inline and floating โ€” in your Word document so they fit safely within the page margins.

Itโ€™s super useful when images pasted or inserted are too wide, mess up the layout, or need tedious manual fixing.