Skip to content

Instantly share code, notes, and snippets.

@jpsphaxer
jpsphaxer / multi_select_controller.js
Created July 17, 2025 00:31 — forked from jameskerr/multi_select_controller.js
Mutli Select Stimulus Controller
import Base from "controllers/base";
export default class extends Base {
static targets = ["checkbox", "toggler", "count", "menu", "hide"];
mount() {
this.on("turbo:morph", document, this.update);
this.on("click", this.togglerTarget, this.toggle);
}

🧾 Proposal: Use of Personal or Professional Development Machines to Run Local LLMs for Enhanced Developer Productivity

📌 Summary

We propose allowing the use of personally-owned machines or laptops purchased via professional development budgets to run local Large Language Models (LLMs). This approach enables powerful AI-assisted coding workflows while maintaining complete data privacy and offline security, since no data leaves the local device.


⚙️ Motivation

@jpsphaxer
jpsphaxer / Cursor_Security.md
Created June 13, 2025 17:34
Cursor Proposal (Security)

🧾 Proposal: Using Cursor AI as a Secure AI-Powered Coding Assistant

📌 Summary

We propose adopting Cursor AI as an AI-enhanced coding assistant to support developer productivity in local development environments only. To maximize its utility, we recommend using Privacy Mode with Storage, which enables powerful features (like Background Agent) without training on our code or data.


🔐 Why Cursor?

@jpsphaxer
jpsphaxer / .cursorrules
Created April 15, 2025 17:28
Rails Cursor Rules
* You MUST NOT try and generate a Rails app from scratch on your own by generating each file. For a NEW app you MUST use `rails new` first to generate all of the boilerplate files necessary.
* Create an app in the current directory with `rails new .`
* Use Tailwind CSS for styling. Use `--css tailwind` as an option on the `rails new` call to do this automatically.
* Use Ruby 3.2+ and Rails 8.0+ practices.
* Use the default Minitest approach for testing, do not use RSpec.
* Default to using SQLite in development. `rails new` will do this automatically but take care if you write any custom SQL that it is SQLite compatible.
* An app can be built with a devcontainer such as `rails new myapp --devcontainer` but only do this if requested directly.
* Rails apps have a lot of directories to consider, such as app, config, db, etc.
* Adhere to MVC conventions: singular model names (e.g., Product) map to plural tables (products); controllers are plural.
* Guard against incapable browsers accessing controllers with `allo
import os
import sys
import argparse
import json
from dotenv import load_dotenv
from langchain_community.utilities.jira import JiraAPIWrapper
def get_jira_description(ticket_id):
"""
Simple function to extract just the description from a Jira ticket
{
"success": true,
"credits_left": 20,
"rate_limit_left": 20,
"person": {
"publicIdentifier": "josueproano",
"linkedInIdentifier": "ACoAAA3WXtYB-G7KnEFS-P9xLc_Q2f3ePbTCtvQ",
"memberIdentifier": "232152790",
"linkedInUrl": "https://www.linkedin.com/in/josueproano",
"firstName": "Josue",
import LocalAuthentication
class BiometricAuthenticationManager {
enum BiometricAuthenticationType {
case faceID(permitted: Bool)
case touchID
case none
}