This file contains 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
// ==UserScript== | |
// @name JLC Parts Category Filter | |
// @namespace https://yaqwsx.github.io/jlcparts/#/ | |
// @version 2024-07-29 | |
// @description Add a category filter to the excellent JLC Parts Thing | |
// @author James Sleeman < [email protected] > | |
// @match https://yaqwsx.github.io/jlcparts/ | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.io | |
// @grant none | |
// ==/UserScript== |
This file contains 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
/* Javascript snippet for when you accidentially move thousands of emails to the Zoho Mail Trash and want to restore them | |
* Zoho only lets you restore up to 300 at a time, you can't select all. | |
* | |
* This hacky javascript works around it. Open Zoho Mail and go into the Trash, open the console with CTRL-SHIFT-J | |
* paste this in, and then it will just sit there hitting the select-all checkbox and then the restore button for gogoCycleCount times | |
* to restore 50 emails at a time. Set the cycle count to however many emails you are restoring divided by 50. | |
* | |
* DO NOT TOUCH THE ZOHO MAIL WINDOW WHILE IT IS WORKING, no checks are made that it is in the Trash folder. | |
* | |
*/ |
This file contains 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
#include <WiFi.h> | |
#include <HTTPClient.h> | |
const String ssid = "PUT_YOUR_WIFI_NAME_HERE"; | |
const String password = "PUT_YOUR_WIFI_PASS_HERE"; | |
HTTPClient http; | |
String url = "http://sparks.gogo.co.nz/esp32/hello.html"; | |
void setup() { |
This file contains 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
/** Kludgy script for fillling out a Superbuy Forwarding Order | |
* From LCSC Cart export | |
* | |
* Add stuff to your LCSC cart, export the cart (don't purchase yet) | |
* open the export in spreadsheet, add column 1 for type | |
* in column one record, for example "Capacitors", "Diodes", | |
* "Inductors"... | |
* | |
* Ensure that all parts have Customer # from BOM | |
* (set it to LCSC if none) |
This file contains 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
<?php | |
$Pronto = "0000 006d 0022 0002 0155 00ab 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 05ea 0155 0055 0015 0e3d"; | |
$Pronto = preg_split('/ /', $Pronto); | |
// Remove header | |
array_shift($Pronto); | |
array_shift($Pronto); | |
array_shift($Pronto); | |
array_shift($Pronto); |
This file contains 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
#!/usr/bin/php | |
<?php | |
/* Yes this is terribly cobbled togethor, no there are no tests, it does what it needs to do, | |
which is to allow you to dump a bind format zonefile over the WHM API, and to update a | |
WHM domain from a bind zonefile, over the API, so you only need usual WHM access, resellers are fine. */ | |
if(count($argv) < 2) | |
{ | |
echo "\nBind To/From WHM API, Especially For Resellers\n"; |
This file contains 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
<?php | |
/** | |
* Go through all DNS Zones in your Metaname account and for any zone that have | |
* a CNAME record called "_apex_", resolve the cname to an IP address and | |
* update thea actual Apex A record (what you get when you resolve the domain | |
* without a host) with that IP address. | |
* | |
* So you can do like for your example.com zone | |
* |
This file contains 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
// ==UserScript== | |
// @name Resistor Paralleler For JLC Parts | |
// @namespace https://gist.github.com/sleemanj/b5e75f18d7292ab43e37b96e2a7ef905 | |
// @downloadURL https://gist.github.com/sleemanj/b5e75f18d7292ab43e37b96e2a7ef905/raw/resistor-paralleler-for-jlcpcb-assembly-parts.js | |
// @updateURL https://gist.github.com/sleemanj/b5e75f18d7292ab43e37b96e2a7ef905/raw/resistor-paralleler-for-jlcpcb-assembly-parts.js | |
// @version 0.3 | |
// @description Send the resistors to the resistor paralleler. You must add Resistance as the last column in the table. | |
// @author James Sleeman | |
// @match https://yaqwsx.github.io/jlcparts/ | |
// @grant none |
This file contains 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
/* Quick Dirty Patch for Recaptcha with Mootools 1.2 Compatability Layer | |
* | |
* Make sure that all your mootools core/more source is loaded before this | |
* fix is loaded. | |
* | |
* @author James Sleeman <[email protected]> | |
* @see https://github.com/google/recaptcha/issues/374 | |
* | |
*/ |
This file contains 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
// ==UserScript== | |
// @name Adjust order details to amortize shipping, discount and tax into item prices | |
// @namespace https://gist.githubusercontent.com/sleemanj/a56415ef7c9b8983888a7d7ec8686eb2 | |
// @updateURL https://gist.githubusercontent.com/sleemanj/a56415ef7c9b8983888a7d7ec8686eb2/raw/aliexpress-amortise-shipping-discount-tax.js | |
// @downloadURL https://gist.githubusercontent.com/sleemanj/a56415ef7c9b8983888a7d7ec8686eb2/raw/aliexpress-amortise-shipping-discount-tax.js | |
// @version 1.0 | |
// @description Adjust order details to amortize shipping, discount and tax into item prices | |
// @author James Sleeman | |
// @match *://trade.aliexpress.com/order_detail.htm* | |
// @grant GM_addStyle |
NewerOlder