Matches for chemical formulas in any form I could think of.
Totally done by Claude. Im not nearly this good at regex
| // ==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/77699d2539b91a842468b12bf52861f6bf6f4a64/tampermonkey-utilities.js | |
| // @grant none |
| #!/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" | |
| } | |
| { |
| #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 |
| #!/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. | |
| 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; | |
| } |
| 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', | |
| } |
Here's an Imgur album I just uploaded a bunch of screenshots to - https://imgur.com/a/24-45-gl45-adaptor-vHJwzqn
But since I know people don't like clicking on links, here's a few pictures from the post:

Now this solution works great for me, but when getting this post ready for yall, I stumbled across something that might work better: https://www.laborxing.com/collections/stoppers/products/gl45-screw-cap-with-ptfe-joint-adapter?variant=46214047531225
| #!/usr/bin/env bash | |
| # Set fg color with \e[38;5;${COLOR}m: | |
| # echo -e '\e[38;5;17mTest\e[0m' | |
| # echo -e '\e[38;5;226mYellow text\e[0m' | |
| # Set bg color with \e[48;5;${COLOR}m: | |
| # echo -e '\e[48;5;17mBlue background\e[0m' | |
| # Change the fg and bg colors: |
| function checkmd5 { | |
| local string="${1?No string provided to test}" | |
| local checksum=$(printf "${string}" | md5sum | awk '{print $1}') | |
| printf "%10s: %s\n" "string" "${string}" | |
| printf "%10s: %s\n" "checksum" "${checksum}" | |
| printf "%10s: %s\n" "type" "MD5" | |
| printf "%10s: %s" "result" "Checking..." |