Skip to content

Instantly share code, notes, and snippets.

@benlye
benlye / download-adp-files.js
Last active October 14, 2022 09:36
Download all pay slips and tax documents from ADP
/*
1. Open https://my.adp.com/v1_0/O/A/workerTaxStatements in a browser and log in (make sure you are NOT in Incognito or InPrivate mode)
2. Open the browser Developer Tools Java Console (Ctrl+Shift+J or F12 -> Console)
3. Run the code below in the console (paste and press Enter)
4. Wait for the zip file to be downloaded
*/
var script = document.createElement('script');
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/jszip/3.2.0/jszip.min.js';
script.onload = async function() {
@benlye
benlye / build_mymulti.sh
Last active February 8, 2023 08:43
Script to build multiple MULTI-Module firmware binaries in WSLv2
#!/bin/bash
# Get the command line options
while getopts ":dh" opt; do
case $opt in
d) BOARDSUFFIX="-devel"
;;
h) printf "$USAGE"; exit 1
;;
esac
@benlye
benlye / compile-klipper.sh
Last active May 7, 2026 13:58
Q1 Pro Klipper Build and Flash
#!/bin/bash
set -e
cd ~/klipper
MCU_CONFIG=~/q1-pro-mcu.config
TOOLHEAD_CONFIG=~/q1-pro-toolhead.config
# Compile the MCU firmware
make clean KCONFIG_CONFIG=$MCU_CONFIG