Skip to content

Instantly share code, notes, and snippets.

View emaraschio's full-sized avatar
🏠
☕ 🤓

Ezequiel Maraschio emaraschio

🏠
☕ 🤓
View GitHub Profile
@digitarald
digitarald / mcp.json
Last active May 4, 2025 08:32
MCP Template for VS Code GitHub Copilot
{
"inputs": [
{
"type": "promptString",
"id": "github-pat",
"password": true,
"description": "GitHub Personal Access Token (PAT, https://github.com/settings/personal-access-tokens/new)"
}
],
"servers": {
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active May 16, 2025 01:20
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

Cursor AI Prompting Framework Usage Guide

This guide explains how to use the structured prompting files (core.md, refresh.md, request.md) to optimize your interactions with Cursor AI, leading to more reliable, safe, and effective coding assistance.

Core Components

  1. core.md (Foundational Rules)
    • Purpose: Establishes the fundamental operating principles, safety protocols, tool usage guidelines, and validation requirements for Cursor AI. It ensures consistent and cautious behavior across all interactions.
    • Usage: This file's content should be persistently active during your Cursor sessions.
@kconner
kconner / macOS Internals.md
Last active May 15, 2025 02:32
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

# /home/jesuiswk/.config/tmuxinator/tm.yml
name: tm
root: ~/Documents/ThirtyMadison/
# Optional tmux socket
# socket_name: foo
# Note that the pre and post options have been deprecated and will be replaced by
# project hooks.
# this is useful for sending action cable updates to doctors portal
def spam(count, naptime)
patients = Patient.all.sample(count)
patients.each do |patient|
sleep(naptime) if naptime
Doctor.all.each do |doc|
DoctorSchema.subscriptions.trigger('patientUpdates', { doctorId: doc.id }, patient)
end
Homebrew has a services manager and can manage its own Java installation, so an easier way to do this is just
# this will install java 1.8, zookeeper, and kafka
brew install kafka
# this will run ZK and kafka as services
brew services start zookeeper
brew services start kafka
That's it. If you want to stop Kafka, just run the brew services commands in reverse:
@royshouvik
royshouvik / console.ts
Last active October 4, 2022 00:12
Nestjs REPL
import 'dotenv/config';
import { NestFactory } from '@nestjs/core';
import * as repl from 'repl';
import * as Logger from 'purdy';
const LOGGER_OPTIONS = {
indent: 2,
depth: 1,
};
@aniketsupertramp
aniketsupertramp / python_redis_migration_pool.py
Created April 8, 2019 17:56
Script for migrating redis keys from one shard to another
import redis
from itertools import izip_longest
import sys
from multiprocessing import Pool
import signal
OLD = "SHARD_ENDPOINT_FOR_OLD_REDIS"
NEW = "SHARD_ENDPOINT_FOR_NEW_REDIS"
@roninsyc
roninsyc / mailtrap_with_rails.md
Last active November 9, 2021 13:49
[Mailtrap with Rails] integrate mailtrap into rails #rails #mailtrap
EDITOR=vim rails credentials:edit
development:
  mailtrap:
    user_name: your_mailtrap_user_name
    password: your_mailtrap_password
    address: your_mailtrap_address