Serial Setup: 115200 baud | Press Enter for prompt
No SD Card Required for most functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // AliExpress Order Scraper - Browser Console Script | |
| // Paste this into the browser console on https://www.aliexpress.com/p/order/index.html | |
| async function scrapeAliExpressOrders() { | |
| const orders = []; | |
| let loadMoreAttempts = 0; | |
| const maxAttempts = 100; // Safety limit | |
| console.log('Starting AliExpress order scraping...'); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "mcpServers": { | |
| "filesystem": { | |
| "command": "npx", | |
| "args": ["-y", "@modelcontextprotocol/server-filesystem", "C:/Projects"] | |
| }, | |
| "puppeteer": { | |
| "command": "npx", | |
| "args": ["-y", "@modelcontextprotocol/server-puppeteer"] | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd /usr/app | |
| # Function to monitor resource usage | |
| monitor_resources() { | |
| local pid=$1 | |
| local log_file=$2 | |
| echo "Monitoring PID: $pid" | |
| while kill -0 $pid 2>/dev/null; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import shutil | |
| import tkinter as tk | |
| from tkinter import messagebox, filedialog | |
| from PIL import Image, ImageTk | |
| class ImageTagger: | |
| def __init__(self, root): | |
| self.root = root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Variables | |
| REGION="" # e.g., us-east-1 | |
| SECRET_NAME="" # Replace with your secret name | |
| USE_IAM_AUTH=false # Set to true if you want to use IAM auth | |
| # Function to fetch secret from AWS Secrets Manager | |
| fetch_secret() { | |
| echo "Fetching secret from AWS Secrets Manager..." |
ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.
A great article about it can be found here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { HttpsProxyAgent } from "https-proxy-agent"; | |
| import * as https from "https"; | |
| const { CAS_HTTPS_PROXY } = process.env; | |
| const agent = new HttpsProxyAgent(CAS_HTTPS_PROXY); | |
| const headers = { | |
| "User-Agent": "axios/1.6.8", | |
| "Accept-Encoding": "gzip, compress, deflate, br", |
NewerOlder