Skip to content

Instantly share code, notes, and snippets.

@sreyemnayr
sreyemnayr / vscode-marketplace-vsix-download.user.js
Created July 5, 2025 14:22
Userscript: VSCode Extension Marketplace – Direct VSIX Download Button
// ==UserScript==
// @name VSCode Marketplace – Direct VSIX Download
// @namespace https://github.com/sreyemnayr
// @version 0.2.1
// @description Adds a “Download VSIX” button to VS Code Marketplace pages, keeps it there, and saves the file with a proper name.
// @author Ryan Meyers (sreyemnayr)
// @match https://marketplace.visualstudio.com/items*
// @run-at document-idle
// @grant none
// ==/UserScript==
@sreyemnayr
sreyemnayr / .cursorrules
Last active June 12, 2025 14:46 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
@sreyemnayr
sreyemnayr / home-end-fix.sh
Created October 8, 2024 15:39
Make Home and End keys behave as expected on macOS
mkdir -p $HOME/Library/KeyBindings
echo '{
/* Remap Home / End keys to be correct */
/* Credit: radamo59 */
/* https://discussions.apple.com/thread/251108215?login=true&sortBy=rank */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
"^\UF729" = "moveToBeginningOfDocument:"; /* Ctrl + Home */
all_token_ids = [];
const get_assets = async (page) => {
await fetch(`https://api.opensea.io/api/v1/assets?collection_slug=grassverse&order_direction=desc&limit=30&include_orders=false&cursor=${page}`).then((j) => j.json()).then(async (j)=>{
all_token_ids.push(...j.assets.map((m)=>m.token_id));
if(j.next){
await get_assets(j.next);
}
});
}
// SPDX-License-Identifier: MIT
//
// ╓ ▄▄
// ╫█ ██▄
// ██ ╫▌▀▌ █▌
// ▓▌█┐ █¡╨█ █╫▌
// █µ▀▌ ╚▓:└▀▌ █░╠▓
// "█¡╙█▄ ╫▌⌐:│▀▌ ╚▓^┘▓▄
// ╙█¡"╨▓▄ █▄::"┘▀▓▄█▌::╨▓┐
// ╙█¡┌:╨▀▓█µ┌::┌:│▀▀:┌::╨▓▄
@sreyemnayr
sreyemnayr / TheStoics.sol
Created September 7, 2022 23:07
The Stoics - Version 2 for Public Audit
// SPDX-License-Identifier: MIT
//
//
// ┌▄═==╗▄═==▄▄═▄▄ ,─¬"¬─╥▓ ,
// ╞▌ ╫█ └█ ██ ▐ █ └█▀
// ╫█ ██ ,, ,, ╫▄, ,▐█,, ,, ,, ,, ,
// ╫█ ██^ ██ ▄█ ╘█µ ╙█████▄, ╞█ ▄▌ █▄ █▌ ▄▌ j█ ╓ █b
// ╫█ ██ ╫█ ▐█▌^^^^╙` ╙█▄ ╞█ ╟█ ▐█µ █▌ ╟█ ▀ └██▓▄,
// ╫█ ██ ╫█ └█µ , █ ▌ ╞█ ╙█ ▐█ █▌ ╙█ ╓╖ ╙▀▌
// ,██, ,██ ,██, ▀w ,⌐ ██. ,^ █▄,- ▀, ,╓▀ ,█▌, ^▀, ,.' ╙█, ,x
;(function () {
let participantsList = new Set();
Do()
function Do() {
setInterval(() => {
if (window.default_MeetingsUi) {
if (!window.default_MeetingsUi.__hooked) {
const p = new Proxy(window.default_MeetingsUi, __window__default_MeetingsUi())
""" classgrid.py by Ryan Meyers at St. George's Episcopal School ryan.meyers at stgnola dot org
From Alma reports, download the Teacher Schedules by Period/Day report
Open in excel and save as a CSV (this script assumes schedules.csv is the filename
Run python classgrid.py (schedules.csv should be in the same folder)
grid.csv should be generated.
"""
import csv
periods = set()
classrooms = set()
@sreyemnayr
sreyemnayr / colorterm.sh
Created March 21, 2019 15:43
Auto-color terminal background to avoid ssh production oopsiedaisies
#!/bin/bash
#
# Based almost entirely on Bryan Gilbert's solution:
# http://bryangilbert.com/post/etc/term/dynamic-ssh-terminal-background-colors/
#
# Sets terminal screen to color based on keywords or hex code (no #, for some reason that breaks)
#
# For SSH magic, add following to ~/.zshrc:
#
: <<'END_COMMENT'
@sreyemnayr
sreyemnayr / almasubmit.user.js
Created May 22, 2018 15:44
Auto-submit Alma Report Card Grades
// ==UserScript==
// @name Auto-submit Alma Report Card Grades
// @namespace https://greasyfork.org/en/users/8332-sreyemnayr
// @version 0.1
// @description When you need to edit/save every teacher's grade for the whole school.
// @author Ryan Meyers
// @match https://*.getalma.com/report-cards/batches/*/input?student=*
// @grant none
// ==/UserScript==