Skip to content

Instantly share code, notes, and snippets.

View jpgpereira's full-sized avatar

João Pereira jpgpereira

View GitHub Profile
## Workflow Orchestration
### 1. Plan Node Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately - don't keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
### 2. Subagent Strategy
- Use subagents liberally to keep main context window clean
@danhollick
danhollick / tailwind-css-v4.mdc
Last active February 19, 2026 08:35
Cursor rules file for Tailwind CSS v4.0
// Update globs depending on your framework
---
name: tailwind_v4
description: Guide for using Tailwind CSS v4 instead of v3.x
globs: ["**/*.{js,ts,jsx,tsx,mdx,css}"]
tags:
- tailwind
- css
---
@dsafreno
dsafreno / withDbData.js
Last active July 21, 2020 17:14
Helper to use Firebase RTDB with React more conveniently. From https://pragli.com/blog/how-we-use-firebase-instead-of-redux-with-react
import React from 'react';
import firebase from 'firebase/app';
import equal from 'deep-equal';
function filterKeys(raw, allowed) {
if (!raw) {
return raw;
}
let s = new Set(allowed);
return Object.keys(raw)
@pedrouid
pedrouid / devops-cheatsheet.md
Last active November 29, 2025 11:44
Digital Ocean DevOps Cheatsheet (Ubuntu 16.04)

Digital Ocean DevOps Cheatsheet (Ubuntu 16.04)

How to Deploy a Node.js App with SSL

Create an SSH key

We will need this for our server configuration

  1. Open console
@calvinh8
calvinh8 / 1.mongodb-aws-setup-guide.md
Last active June 17, 2025 17:38
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled

MongoDB AWS EC2 Setup Guide

You can see my latest update in my blog here https://medium.com/@calvin.hsieh/steps-to-install-mongodb-on-aws-ec2-instance-62db66981218

Credits:

Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.

@dburles
dburles / .eslintrc
Last active March 24, 2017 15:44
Eslint configuration for Meteor projects
{
"env": {
"browser": true,
"meteor": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
@v0lkan
v0lkan / nginx.conf
Last active December 2, 2025 18:08
Configuring NGINX for Maximum Throughput Under High Concurrency
user web;
# One worker process per CPU core.
worker_processes 8;
# Also set
# /etc/security/limits.conf
# web soft nofile 65535
# web hard nofile 65535
# /etc/default/nginx
//atmosphere packages: jparker:crypto-aes , matb33:collection-hooks
var encryptionKey = "adsffe534tryertrrtweGe";
//Before insert Hooks, I decide to use it only in the server. If you use on the client and server, you're encrypting it twice.
Todos.before.insert( function( userId , doc ){
doc.text = CryptoJS.AES.encrypt( doc.text , encryptionKey ).toString();
} );