Skip to content

Instantly share code, notes, and snippets.

View erolkuluslu's full-sized avatar

Erol Külüşlü erolkuluslu

View GitHub Profile

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@erolkuluslu
erolkuluslu / gist:677caa5929b6c0445d3806bfcbb0a7f0
Created September 14, 2024 15:00
Querying in TimescaleDB
SELECT time_bucket('1 hour', time) AS bucket,
avg(temperature)
FROM sensor_data
WHERE time BETWEEN '2024-01-01' AND '2024-01-02'
GROUP BY bucket
ORDER BY bucket;
SELECT mean("temperature") FROM "sensor_data"
WHERE time >= '2024-01-01T00:00:00Z' AND time <= '2024-01-02T00:00:00Z'
User123 -[Friend]-> User456
User123 => { “page_views”: 42, “last_login”: “2024-09-10” }
sessionId123”: “User123,LoggedIn,Expiry=2024-09-15
{
“name”: “John Doe”,
“age”: 30,
“address”: {“city”: “New York”, “state”: “NY”},
“hobbies”: [“cycling”, “photography”]
kubectl get services
kubectl apply -f service.yaml
apiVersion: v1
kind: Service
metadata:
name: fastapi-service
spec: