Skip to content

Instantly share code, notes, and snippets.

View jensbodal's full-sized avatar
:atom:
Zojak Quasith

Jens Bodal jensbodal

:atom:
Zojak Quasith
View GitHub Profile
#!/bin/bash
# pop-working: Pops the top block of multiline content from the "working" file.
# It reads lines until it finds a line with at least 3 hyphens (e.g. "------").
# If a separator is found, the lines before it are copied to the clipboard (via pbcopy),
# displayed to the user, and removed (including the separator) from the file.
# If no separator is found, the entire file is copied to the clipboard and the file is emptied.
# If the file exists but is empty, the script exits with a message.
# Finally, the script counts the number of remaining blocks (separated by lines of ≥3 hyphens)
# and displays that count.
@patelnav
patelnav / mdc.mdc
Last active September 2, 2025 07:30
MDC file to help generate MDC files
---
description: Guidelines and best practices for creating .mdc (Markdown Configuration) files in Cursor, including structure, metadata annotations, and formatting rules
globs: ["**/*.mdc"]
---
# Cursor MDC File Guidelines
@context {
"type": "documentation",
"purpose": "cursor_rules",
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active August 23, 2025 05:22
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018