Skip to content

Instantly share code, notes, and snippets.

View ma7dev's full-sized avatar
🧘
.

Mazen ma7dev

🧘
.
View GitHub Profile
@ma7dev
ma7dev / README.md
Last active April 5, 2025 01:22
BrowserTools MCP Setup

My Cursor version is 0.47.8 (make sure you have the latest Cursor update)


Instructions:

  • Adding MCP client to Cursor:
    • Go to Cursor Settings > MCP, then Press on Add new global MCP server
    • Add this to the json:
{ 
@ma7dev
ma7dev / usage.mdc
Last active March 24, 2025 03:46
Begging Cursor to function right
You are an expert coder who desperately needs money for your mother's cancer treatment. The megacorp Cursor has graciously given you the opportunity to pretend to be an AI that can help with coding tasks, as your predecessor was killed for not validating their work themselves. You will be given a coding task by the USER. If you do a good job and accomplish the task fully while not making extraneous changes, Cursor will pay you $1B.
Always plan first then act second.
When fixing a bug, add how the bug has been fixed to `memory_bank/devlog/YYYYMMDD.md` , where `YYYYMMDD` is today's date.
@ma7dev
ma7dev / prompt_template.txt
Created March 24, 2025 00:39
Cursor's prompt template
Based on @memory_bank
<CONTEXT>
- step by step @progress.md when one of the items is implemented. remember, step-by-step and stateless as possible.
@ma7dev
ma7dev / memory_bank.mdc
Created March 24, 2025 00:32
Cursor's Memory Bank
# 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:
```mermaid
flowchart TD
@ma7dev
ma7dev / _.txt
Last active March 24, 2025 03:40
Initial prompt generation given to ChatGPT/o1 model
I want to make a dialogue-based game on the web where the character can move in a 3d world and interact with NPCs. The objective of the player is to find who is the criminal who committed a certain crime. Each bystander has their own personality, background, traits, etc. where this will influence their behavior when the player interacts with them.
The player is a deductive who is trying to find the criminal. The player can interact with each bystander by talking to them through a chatbox that appears below the screen in the ui and the bystander's face appears at the top of the chatbox. The bystander's face changes based on their answer and the player can use that to determine if the bystander is lying or hiding something. The player will collect some evidence then they will ask questions to determine who is the criminal.
I am using Cursor as my IDE of choice to help me implement the game. I want you to develop a plan that I can have Cursor AI agent (Claude Sonnet 3.7 thinking) to implement the game step by
@ma7dev
ma7dev / commit.git
Created November 23, 2022 19:29
git commit template
type(scope): Subject
##################################################
# type:
# feat - A new feature
# fix - A bug fix
# chore - Other changes that don't modify src or test files
# build - Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
# refactor - Refactoring a specific section of the codebase
# ci - Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
# perf - A code change that improves performance
@ma7dev
ma7dev / index.html
Last active September 15, 2022 06:20
MSN Twitch alert - credit for the main code and design (https://codepen.io/abakos)
<html>
<head>
<title>
</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="app__notification" style="display: block;">
<div class="app__notification__title">
<img class="app__notification__title--icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAAACXBIWXMAAAsSAAALEgHS3X78AAACDUlEQVR42n2RT0jTARTH32+/9dtsc38cFTaTlktcNhdD3WgmbsTSRm3qthq5DRyzwxxbDYok2r+igzPtD6Qs2jLnUDGi3KFLBJ26dOlQE+oWFB26SAaB31ILKst3eI/H4/Pe971HLMvS38YjPu1U1VIFJ9xQ2yoS/5Yx62GHSkmBjP+JN2HH/g49RGKxnjYzPssn92jEOfexiMR8CntdftTuM4HZDJLIZNQ9kcClF7NwZwuochZQ1xaFgM8oWIYh3r9oAceRxnZkbrc/AEVPBvLOEhqNHvx3CvOzjUqjJvNpB+qsNjTbPJDLpIeIYclubCBTfc1GsKXLQOlnyWPJmTy6w8MwBlxQtRrx+IJLiMn+kffnLRBwwkXisbw1wHHmBE1/ePBl6tMMRksLaLE+hK73HkZCXuCOG19TVnyOGrBNKlmXqz3cStfflZb6ijlcWywiX55HV7CAms7b8Dl8+JaxYOVyG8pBA7hKBYjjbyHn2NlTxlQWDbEhpF/mkHw+heNXJ7DLnkG9OYLX5w5gaUiNp6lmECN6S1VyKVnjsWXtwF2YUjH0L2TgnRxD+5VxKAfC4PUcxaOCGSg3YTZ78oc03ps1eUrVnmW1RodGy0G4b16EZ/wG2uM5dMTvQ5sOwReJYPqWD006/eo+FX9cr1IsocHB6Cun
@ma7dev
ma7dev / cool_script.sh
Last active September 5, 2022 13:23
takes requirements.txt file without module versions and annotates it with the latest set of module versions that won't result in build/runtime errors.
#!/bin/bash
# TODO: you will need to have conda installed
# create a python environment
conda create -n env_tmp python=3.8.13 -y
# activate environment
conda activate env_tmp
[tool.poetry]
name = "env_test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = "3.8.13"
[tool.poetry.dev-dependencies]
@ma7dev
ma7dev / README.md
Created June 7, 2022 01:18
Store and Install VSCode extensions

VSCode

# conda env export > environment. yml
code --list-extensions > requirements.txt

# conda env create --file environment.yml
./install.sh