Skip to content

Instantly share code, notes, and snippets.

@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active July 18, 2025 14:27
Cursor 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:

flowchart TD
@ziritrion
ziritrion / dezoomcamp-vm.md
Last active July 13, 2024 10:48
Quick guide to easily create a VM instance in GCP and set up SSH access with Gcloud SDK

Install and setup Gcloud SDK

  1. Download Gcloud SDK from this link and install it according to the instructions for your OS.
  2. Initialize the SDK following these instructions.
    1. Run gcloud init from a terminal and follow the instructions.
    2. Make sure that your project is selected with the command gcloud config list

Creating a VM instance

  1. From your project's dashboard, go to Cloud Compute > VM instance
@ziritrion
ziritrion / vm_containers.md
Last active July 16, 2025 02:12
Docker, containers and VMs

Docker

Terminology

  • Container: environment that runs an applications that is not dependent on the OS. Kind of like a lightweight VM. Containers are stateless; if you need to update the components inside, create another container instead.
  • Image: template to create a container. Its components are defined by a Dockerfile.
  • Volume: storage area detached from the container for maintaining state. There are 4 types:
    • Volumes: managed by Docker itself, they're stored in a separate part of the host filesystem (on Linux by default this would be var/lib/docker/volumes). Useful for production deployments.
    • Bind mounts: mount a specific directory or file from the host to the container, such as a project folder. Useful for development.
  • Tmpfs mounts: mount a temporary file system in the container, which is stored in the host system's memory only, not on disk. Useful for sensitive information that should not be persisted between container restarts or for performance reaso
@ziritrion
ziritrion / pythondata.md
Last active May 13, 2025 21:51
Python and libraries cheat sheet

Python

Lists

  • [1, 2, 3, 4, 5]

Power operator (2^5)

  • 2 ** 5

Square root (power operator trick)

  • 9 ** 0.5
@ziritrion
ziritrion / pythonenvs.md
Last active May 13, 2025 21:53
Python package managers and environments

uv

Experimental but very promising pip replacement that handles package managing as well as virtual environments and Python version management.

uv comes included with uvx, an alias for uv tool run. uvx allos you to install and execute command-line tools on an ephemeral environment.

Python versions

Note that you don't have to actively install a Python version! uv will automatically fetch the required Python version for your project.

@ziritrion
ziritrion / git.md
Last active July 22, 2025 07:02
git cheatsheet

Basic git

  1. Clone a repo!
    • git clone [email protected]/path/to/repo.git > for SSH checkout (recommended for extended use)
    • git clone https://somedomain.com/path/to/repo.git > for HTTPS checkout (easier for experimenting)
    • If you are cloning from GitHub, you can also use the GitHub CLI
      • gh repo clone path/to/repo
    • Check this section for more info on SSH vs HTTPS
  2. Make sure your local copy of the selected branch is updated.
    1. Without overwriting anything, but update the status on all branches.
@cryppadotta
cryppadotta / 001-Tradingview-Watchlist.md
Last active February 25, 2025 13:32
Tradingview Watchlist Import Files for Crypto Exchanges

Tradingview Watchlist Import Files for Crypto Exchanges

Below you'll find Tradingview import files for Bittrex and Binance BTC-base markets

Ordered by CMC's Market Cap

I use Tradingview and I like to quickly click through all coins on a particular exchange. The files below can be imported into a Tradingview watchlist.

★ ★ ★ If you use these, leave a comment or a star above ★ ★ ★