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 EEVBlog Remove The Annoyance | |
// @namespace https://gist.github.com/sleemanj/84e15fda23f79a7852b6 | |
// @updateURL https://gist.github.com/sleemanj/84e15fda23f79a7852b6/raw/eevblog-no-annoyance.user.js | |
// @downloadURL https://gist.github.com/sleemanj/84e15fda23f79a7852b6/raw/eevblog-no-annoyance.user.js | |
// @version 0.5 | |
// @description Remove tha silly ad-containing post | |
// @match http://www.eevblog.com/forum/* | |
// @copyright 2015+, James Sleeman | |
// ==/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
// ==UserScript== | |
// @name Return the Quantity Search, Show Per Piece Pricing | |
// @namespace https://gist.github.com/sleemanj/95035bf2c0141ac72420 | |
// @updateURL https://gist.github.com/sleemanj/95035bf2c0141ac72420/raw/aliexpress-qty-search-fix.js | |
// @downloadURL https://gist.github.com/sleemanj/95035bf2c0141ac72420/raw/aliexpress-qty-search-fix.js | |
// @version 1.1 | |
// @description Put the quantity search fields back into the search interface on Aliexpress when they are not present and add a per-piece pricing when possible on the listing pages. | |
// @author James Sleeman | |
// @match *://*.aliexpress.com/* | |
// @exclude *://trade.aliexpress.com/orderList.htm* |
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
#!/bin/bash | |
HOLES="$1" | |
SILK="$2" | |
MASK="$3" | |
COPPER="$4" | |
# We need to "invert" the mask, this is dirty but seems to work, further testing required on larger sample set :) | |
echo "%IPNEG*%" > /tmp/newMask.gbr | |
cat "$MASK" | sed -r 's/%IP(POS|NEG)\*%//' >>/tmp/newMask.gbr |
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
/** MAX6675 Thermocouple Reader Example Code | |
* | |
* This is so simple a library would be silly! | |
* | |
* 6675 Module ==> Arduino | |
* CS ==> D10 | |
* SO ==> D12 | |
* SCK ==> D13 | |
* Vcc ==> Vcc (5v OK) | |
* Gnd ==> Gnd |
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
## | |
## This file is part of the libsigrokdecode project. | |
## | |
## Copyright (C) 2014 Torsten Duwe <[email protected]> | |
## Copyright (C) 2014 Sebastien Bourdelin <[email protected]> | |
## | |
## This program is free software; you can redistribute it and/or modify | |
## it under the terms of the GNU General Public License as published by | |
## the Free Software Foundation; either version 2 of the License, or | |
## (at your option) any later version. |
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/python | |
# Convert a step file (or other) into a wrl file (or other) with FreeCAD | |
# You must provide an absolute input and output file path (NO RELATIVE!) | |
# A freecad window will open, the conversion will happen, and it will | |
# close. The export requires gui functions it seems so this is unavoidable. | |
# PROTIP: | |
# sudo startx -display :1 -- :1 vt8 | |
# CTRL-ALT-F8 to switch to the new X session on VT8 and run `xhost +` in the terminal |
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/python | |
# Take an input step file and duplicate it along the X axis | |
# creating files named by the pattern | |
# | |
# Example: | |
# ./freecad-linear-pattern-step-wrl.py /tmp/hdr-1x1t_2.54.step "/tmp/hdr-1x%dt_2.54.wrl" | |
# Where "%d" will be replaced by the copy number... | |
# will generate hdr-1x1t_2.54.wrl | |
# hdr-1x2t_2.54.wrl |
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 | |
// Convert .asc into a .xml representation, or the reverse | |
// | |
// The attributes of each "asc" element '(Blah 123 "abc" )' are just dumped | |
// into _PARAMS="" attribute of the node '<Blah _PARAMS="123 "abc"" />' | |
// | |
// Take note that in the XML, _UNCLOSED="1" means that this tag | |
// when converted to asc must have the closing ")" on a separate line | |
// even if it is empty, not all do. |
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 Collapse Order History on Aliexpress and highlight time remaining for orders awaiting delivery. | |
// @namespace https://gist.github.com/sleemanj/352f095f6f67564dae825f79204f1f01 | |
// @updateURL https://gist.github.com/sleemanj/352f095f6f67564dae825f79204f1f01/raw/aliexpress-order-list-collapse.js | |
// @downloadURL https://gist.github.com/sleemanj/352f095f6f67564dae825f79204f1f01/raw/aliexpress-order-list-collapse.js | |
// @version 1.2 | |
// @description Collapse the orders in My Orders to make the page more compact, highlight "Awaiting Delivery" ones. | |
// @author James Sleeman | |
// @match *://trade.aliexpress.com/orderList.htm* | |
// @grant GM_addStyle |
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 |
OlderNewer