We will need this for our server configuration
- Open console
| ## 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 |
| // 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 | |
| --- |
| 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) |
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.
| { | |
| "env": { | |
| "browser": true, | |
| "meteor": true | |
| }, | |
| "ecmaFeatures": { | |
| "arrowFunctions": true, | |
| "blockBindings": true, | |
| "classes": true, | |
| "defaultParams": true, |
| 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(); | |
| } ); |