Skip to content

Instantly share code, notes, and snippets.

View jhyland87's full-sized avatar

J jhyland87

  • 48°52.6′S 123°23.6′W
View GitHub Profile
@jhyland87
jhyland87 / CCDV-F Exam Prep Guide.md
Created October 26, 2026 18:35
CCDV-F Exam Prep Guide

CCDV-F Exam Prep Guide

Oct 26, 2026 · @Justin

Exam at a glance

CCDV-F is 53 questions in 120 minutes, and you need a scaled 720 out of 1000 to pass. That 720 is a scaled score, not 72% correct.

Item Detail
@jhyland87
jhyland87 / hide-sponsored-google-results.user.js
Last active October 25, 2026 17:52
Hide sponsored Google search results
// ==UserScript==
// @name Google: Hide Sponsored Results
// @icon https://www.gstatic.com/images/branding/searchlogo/ico/favicon.ico
// @namespace https://gist.github.com/jhyland87
// @version 1.3.1
// @description Hides ads and sponsored blocks on Google search results, and counts them
// @match https://www.google.com/search*
// @run-at document-start
// @tag adblock
// @grant GM.getValue
@jhyland87
jhyland87 / README.md
Last active October 25, 2026 18:00
Maximize Ebay conversation, export as PDF or PNG image

Adds a new context menu to ebay conversations that adds the ability to maximize it, or export it as a PNG or PDF. Screenshot 2026-07-27 at 1 07 45 PM

Example of me exporting an abysmal conversation with a seller about a flawed product: ebay-conversation (1)

@jhyland87
jhyland87 / README.md
Last active July 1, 2026 17:26
Chemical Formula Parser

Matches for chemical formulas in any form I could think of.

Regex101 test

Screenshot 2026-07-01 at 9 42 58 AM Screenshot 2026-07-01 at 10 20 53 AM

Totally done by Claude. Im not nearly this good at regex

@jhyland87
jhyland87 / all3dp.user.js
Last active October 25, 2026 17:55
Tampermonkey/Violentmonkey Scripts
// ==UserScript==
// @name Remove all3dp adblocker wall
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove the irritating modal that All3DP displays until it decides you've disabled addblocker
// @author Justin Hyland
// @match https://all3dp.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=all3dp.com
// @require https://gist.githubusercontent.com/jhyland87/b28636effabfc69e316281b004777adf/raw/tampermonkey-utilities.user.js
// @grant none
@jhyland87
jhyland87 / asciichart.awk
Created March 16, 2026 10:41
bash ascii chart
#!/usr/bin/env gawk -f
BEGIN {
n = 0
reset = "\033[0m"
if (c_line != "") c_line = "\033[" c_line "m"
if (c_label != "") c_label = "\033[" c_label "m"
if (c_time != "") c_time = "\033[" c_time "m"
if (c_axis != "") c_axis = "\033[" c_axis "m"
}
{
@jhyland87
jhyland87 / get-hz.cpp
Created March 2, 2026 04:30
Get the vibration Hz from QMI8658 output
#include <Arduino.h>
#include <Wire.h>
#include <QMI8658.h>
#include <arduinoFFT.h>
#define SDA_PIN 8
#define SCL_PIN 9
// ================= SETTINGS =================
static constexpr uint16_t N = 256; // FFT size
@jhyland87
jhyland87 / replace_font_size.py
Created January 11, 2026 20:29
Replace KiCad symbol font sizes
#!/usr/bin/env python3
"""
Script to replace font sizes in KiCad .kicad_sym files.
Specifically replaces instances where font size is set to 1.27 with a new value.
Usage:
python replace_font_size.py <input_file> <new_size> [output_file]
If output_file is not specified, the input file will be modified in place.
@jhyland87
jhyland87 / photobucket-select-all.js
Last active December 11, 2025 16:35
Select all photobucket images
const selectMode = () => {
const selectModeButton = document.querySelector('[data-test="select-mode"]');
if ( ! selectModeButton )
throw new Error('No select mode button found')
if ( selectModeButton.textContent === 'Cancel' ) {
console.log('Already in select model')
return;
}
@jhyland87
jhyland87 / fetch.py
Created February 10, 2025 23:01
Simple price fetcher for laboratoriumdiscounter
import requests
import sys
search_string = sys.argv[1]
headers = {
'accept': 'application/json, text/javascript, */*; q=0.01',
'referer': 'https://www.laboratoriumdiscounter.nl/en/',
'x-requested-with': 'XMLHttpRequest',
}