Skip to content

Instantly share code, notes, and snippets.

View davydmaker's full-sized avatar
💻
from chaos to code

davyd davydmaker

💻
from chaos to code
View GitHub Profile
@davydmaker
davydmaker / ligaMagicRemoveFromCartByPrice.js
Created December 4, 2025 14:36
Browser console script to automatically remove items from Liga Magic cart by exact price match. Auto-confirms native browser prompts.
/**
* Browser console script for Liga Magic website.
* Removes items from the cart by exact price match and auto-confirms native browser prompts.
*
* USAGE:
* 1. Open Liga Magic website in your browser
* 2. Open browser console (F12 or Cmd+Option+I)
* 3. Copy and paste this entire script
* 4. Call: ligaMagicRemoveFromCartByPrice({ targetPrice: 'R$ 10,00' })
*
@davydmaker
davydmaker / slack-deactivated-monitor.js
Created November 20, 2025 01:18
Monitor Slack users by extracting daily lists to track deactivated accounts and potential company terminations
// To obtain these values: open Slack web, monitor network requests after login,
// pick any API request, extract company workspace from URL (e.g., xpto.enterprise.slack.com),
// and find the token in the request payload (form data)
//
// To run this script: open Slack web in your browser and paste this script into the browser console
const SLACK_TOKEN =
"";
const COMPANY_WORKSPACE = "";
(async () => {
@davydmaker
davydmaker / directory_diff.py
Created September 23, 2025 00:07
Directory diff tool with interactive reporting and complete analysis
#!/usr/bin/env python3
"""
Script to recursively compare all files between two directories.
Generates text reports by default, with option for HTML format.
Usage:
python directory_diff.py <base> <compare> [-o output] [--format {text,html}]
Examples:
python directory_diff.py base compare # Text report (default)
@davydmaker
davydmaker / frame_selector_unique.gml
Created July 16, 2025 01:58
GameMaker GML: Unique Frame Selector System
/**
* Frame Selector System - Randomly selects frames without repetition
* Ensures each frame is used exactly once before any frame is repeated
*/
/**
* Creates a shuffled frame selector for the current sprite
*
* @return {struct} Frame selector object with methods
*
@davydmaker
davydmaker / draw_text_outline.gml
Created July 16, 2025 01:54
GameMaker GML: Optimized Text Outline Functions
#macro THICKNESS 1
/**
* Draws text with an outline effect by rendering the text multiple times
* with slight offsets before drawing the main text on top.
*
* @param {real} _x - X position to draw the text
* @param {real} _y - Y position to draw the text
* @param {string} _text - The text string to draw
* @param {color} _textColor - Color of the main text (default: white)
@davydmaker
davydmaker / organize_files_by_batches.sh
Created December 25, 2024 05:03
Organize Files into Subdirectories in Batches
#!/bin/bash
FILES_PER_DIR=40
DIR_COUNT=1
FILE_COUNT=0
SCRIPT_NAME=$(basename "$0")