Skip to content

Instantly share code, notes, and snippets.

# .cursorrules
Components & Naming
- Use functional components with `"use client"` if needed.
- Name in PascalCase under `src/components/`.
- Keep them small, typed with interfaces.
Prisma
@lmonson
lmonson / gist:ddedb195fcdf11f3f4c755c4629c7aec
Created February 2, 2025 04:45 — forked from kleneway/gist:c50903b277b159c313400d29b30f6298
Template to give to o1-pro to generate instructions for cursor composer agent mode (use sonnet 3.5 new)
<TEMPLATE>
<INSTRUCTIONS>
Use the <CODEBASE> code as reference, and convert the high-level <TASK> into a set of very detailed step-by-step instructions that an AI coding agent can complete.
Only includes steps an AI coding agent can take. Do not include testing or any other work a human would do to confirm the task has been completed.
ALWAYS have the agent run a build when it is complete. Be specific and decisive about what the agent should do.
Do not include any additional meta instructions to the user. Use markdown formatting.
</INSTRUCTIONS>
<TASK>
@lmonson
lmonson / poetry.toml
Created April 24, 2023 16:00
Poetry TOML file for creating .venv in current directory.
[virtualenvs]
create = true
in-project = true
prefer-active-python = true
[virtualenvs.options]
system-site-packages = true
[installer]
modern-installation=true

How to invoke an HTTPS url from within an AWS Lambda function

var http = require('https');

exports.handler = function(event, context) {
 
  var getConfig = {
        host: 'foobar.com',
 port: 443,
@lmonson
lmonson / gist:d7e70db1f1dca0392bd2
Last active October 23, 2015 03:31
How to run GUI Docker applications on OS X