Skip to content

Instantly share code, notes, and snippets.

View ruizrica's full-sized avatar

Ricardo Ruiz ruizrica

View GitHub Profile
@ruizrica
ruizrica / FACTORY_PROXY_CC.md
Created September 30, 2025 05:41 — forked from chandika/FACTORY_PROXY_CC.md
Factory CLI with Claude Subscription / ChatGPT Codex via CLIProxyAPI

Executive Summary

This guide documents how to use Factory's Droid CLI with your Claude Code Max subscription (OAuth authentication) instead of pay-per-token API keys. The solution leverages CLIProxyAPI as a transparent authentication proxy that converts API key requests from Factory CLI into OAuth-authenticated requests for Anthropic's API.

Architecture Overview

Factory CLI → [Anthropic Format + API Key] → CLIProxyAPI → [Anthropic Format + OAuth] → Anthropic API
                                                  ↓
 (Auth Header Swap)

Horizon MCP Tool Reference

This documentation covers Horizon MCP tools for memory, planning, docs, and project management in the Horizon CF project. ALWAYS scope operations to the current project/folder (e.g., "horizon-cf" from working dir /Users/ricardo/Documents/Github-Work/horizon-cf) to persist context correctly. Use minimal params; tools default efficiently.

Quick Start for Agents

  • Derive project: basename $(pwd) (e.g., "horizon-cf").
  • ALWAYS include "project": "[derived_name]" in JSON.
  • Start sessions: Search context with user query.
  • Copy-paste template for store: {"operation": "store", "content": "[insight]", "importance": 5, "category": "general", "project": "horizon-cf"}
@ruizrica
ruizrica / Firebase.md
Created October 8, 2023 00:26 — forked from victorbruce/Firebase.md
My journey with Firebase so far. Cheatsheet to serve as a quick reference when developing firebase applications

Firebase

Set up firebase and Deploy

  • Head over to firebase. Sign in and create a project.

  • Copy your project settings under Firebase SDK snippet into your local project (ie your project's api key, auth domain, databaseURL, etc)

  • Create a file (firebase.js or config.js Any name that suits you is fine)

@ruizrica
ruizrica / fetchNews.js
Last active June 23, 2023 02:09
fetchNewsFromMediastack - Google Apps Script
let activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet();
var sheet = activeSpreadsheet.getSheets()[0];
var startRow = 0;
function fetchNewsFromMediastack() {
var MEDIATSTACK_API_KEY = '00000000000000000000000'; // replace with your api key
var KEYWORD = 'tech'; // keyword to filter news
var LIMIT = 5; // limit the number of results
var url = 'http://api.mediastack.com/v1/news?access_key=' +
@ruizrica
ruizrica / PlayStationBIOSFilesNAEUJP.md
Created October 13, 2022 15:41 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP
@ruizrica
ruizrica / serverless.yml
Last active January 17, 2021 03:19
Serverless Template
Serverless.yml Reference
Here is a list of all available properties in serverless.yml when the provider is set to aws.
# serverless.yml
service: myService
frameworkVersion: '2'
enableLocalInstallationFallback: false # If set to 'true', guarantees that it's a locally (for service, in its node_modules) installed framework which processes the command
@ruizrica
ruizrica / StarCitizen_ControlBackup.bat
Last active September 13, 2020 05:34
StarCitizen Control Backup
@ECHO OFF
ECHO.
ECHO Star Citizen - Custom Controls Backup v1.0
ECHO By Ricardo Ruiz ricardo@kenetic-labs.com
ECHO.
PAUSE
ECHO.
ECHO.
@ruizrica
ruizrica / index.js
Created October 16, 2019 23:24
To Do Manager w/ Bot
//
// ABC Adult School
// AWS Cloud Practitioner Boot Camp
// To Do Lab Source
//
// Ricardo Ruiz - ricardo@kenetic-labs.com
//
// Frameworks:
// - - - - - - - - - - - - - - - - - - - - - - - -
@ruizrica
ruizrica / index.js
Last active October 10, 2019 01:59
Updated Lambda
//
// ABC Adult School
// AWS Cloud Practitioner Boot Camp
// To Do Lab Source
//
// Ricardo Ruiz - ricardo@kenetic-labs.com
//
// Frameworks:
// - - - - - - - - - - - - - - - - - - - - - - - -
@ruizrica
ruizrica / index.js
Last active October 9, 2019 23:49
Google Sheets Source
//
// ABC Adult School
// AWS Cloud Practitioner Boot Camp
// To Do Lab Source
//
// Ricardo Ruiz - ricardo@kenetic-labs.com
//
function loadToDoItems() {