Skip to content

Instantly share code, notes, and snippets.

View anthonybaldwin's full-sized avatar
:fishsticks:

Anthony Baldwin anthonybaldwin

:fishsticks:
View GitHub Profile
@jyxjjj
jyxjjj / Disclosure.md
Created July 10, 2026 07:26
AI Author Emails

AI Git Commit Attribution Reference

GitHub Copilot

Application Co-authored-by GitHub API
GitHub Copilot Cloud Agent Co-authored-by: copilot-swe-agent[bot] <198982749+copilot@users.noreply.github.com> copilot-swe-agent[bot]
GitHub Copilot Chat Co-authored-by: Copilot <167198135+copilot[bot]@users.noreply.github.com> copilot[bot]
GitHub Copilot CLI `Co-authored-by: Copilot <167198135+copilot[bot]@u
@grahamhelton
grahamhelton / detect-nodes-proxy.sh
Last active November 4, 2026 10:41
Detection script for nodes/proxy
#!/bin/bash
# Detect all subjects with nodes/proxy permissions
# Colors
NOCOLOR=$(tput sgr0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
CYAN=$(tput setaf 6)
DIM=$(tput setaf 8)
@natyusha
natyusha / autovsr.lua
Last active July 25, 2026 03:52 — forked from azumukupoe/autovsr.lua
AutoVSR for MPV w/ HEVC Main 10 Support
local mp = require 'mp'
-- Configuration
local autovsr_enabled = true -- Default to VSR enabled
-- Function to apply VSR with dynamic scaling
local function apply_vsr()
-- Get video and display properties
local video_width = mp.get_property_number("width")
local video_height = mp.get_property_number("height")
@azumukupoe
azumukupoe / autovsr.lua
Last active September 14, 2026 16:11
AutoVSR for MPV
local mp = require 'mp'
local autovsr_enabled = false
local function autovsr()
local display_width = mp.get_property_native("display-width")
local video_width = mp.get_property_native("width")
local display_height = mp.get_property_native("display-height")
local video_height = mp.get_property_native("height")
if video_width and display_width and video_height and display_height then
@psenger
psenger / README.md
Last active May 4, 2026 08:31
[SIPS - scriptable image processing system] #MacOS #sips #Image

SIPS (Scriptable Image Processing System)

SIPS (Scriptable Image Processing System) is a command-line utility available on macOS that enables users to perform various image manipulation tasks directly from the command line. It supports a wide range of image file formats, including JPEG, PNG, TIFF, GIF, and more

Example usage:

  • Scale an image (without aspect ratio): sips -z width height input_image --out output_image
  • Scale an image (maintain aspect ratio): sips -z 800 0 original.jpg --out scaled.jpg
  • Query image properties: sips -g dpiHeight -g dpiWidth image.jpg
@thoughtpolice
thoughtpolice / jjconfig.toml
Last active October 20, 2026 23:45
my jujutsu config
## ------------------------------------------------------------------------------------------------
# Schema published automatically on the website. This allows TOML language
# servers to autocomplete and show documentation for the entries below.
#
# I use the prerelease version as my builds on my machines are often from trunk.
"$schema" = "https://jj-vcs.github.io/jj/prerelease/config-schema.json"
## ------------------------------------------------------------------------------------------------
## ---- Basic settings
@lavender-sys
lavender-sys / Splatoon 3 Lock Screen Widget.js
Created September 17, 2022 22:10
Splatoon 3 Lock Screen Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: gamepad;
const getRuleImageUrl = (rule) => {
// reupload images from https://github.com/misenhower/splatoon3.ink/tree/main/src/assets/img/rules
// as png to your own host and link below
switch (rule) {
// Splat Zones
case 'AREA': return "";
// Clam Blitz
@ccagle8
ccagle8 / hexToKmlColor.php
Last active April 22, 2026 22:16
PHP Function - Transform hex color to KML format. Used on https://cartographyvectors.com
/*
# KML files use a combined hexadecimal value in place of the normal HTML rgba value.
# The format is described in detail here: https://developers.google.com/kml/documentation/kmlreference#elements-specific-to-balloonstyle
#
# Syntax Example:
# $kmlColor = hexToKmlColor('#CC0000', 40); // returns `6600CC00`
#
# This function can handle all formats of hex values: with or without the hash, shorthand or long.
# It also handles opacity values either in percentage or decimal form.
#
@steve228uk
steve228uk / gist:873d653f1ecec0456ea3f475b6e54f68
Created December 30, 2021 19:25
Farming Simulator Beacon HID control
On (Lasts for 10 seconds):
hidapitester.exe --vidpid 340D/1710 --open --length 10 --send-output 0x0,0xFF,0x01,0x66,0xC8,0xFF,0xAD,0x52,0x81,0xD6
Off:
hidapitester.exe --vidpid 340D/1710 --open --length 10 --send-output 0x0,0xFF,0x00,0x00,0x64,0x00,0x32,0x9E,0xD7,0x0D
Address: VID and PID (Vendor ID and Product ID)
@salarsen
salarsen / RedeemKeys.py
Created April 24, 2020 05:27 — forked from musshorn/RedeemKeys.py
Python script to redeem bulk steam keys
'''
Python3 Bulk Steam key importer
Requires the pip library 'steam'
Run `pip install steam` if you're unsure
Code expects a text file with keys line seperated. For example:
XXXXX-YYYYY-ZZZZZ