Skip to content

Instantly share code, notes, and snippets.

@arturo182
arturo182 / userChrome.css
Created September 30, 2024 02:10
Firefox
/* Make tabs look like tabs */
.tab-background {
border-radius: 0px 0px !important;
margin-bottom: 0px !important;
}
.tabbrowser-tab:not([selected=true]):not([multiselected=true]) .tab-background {
background-color: color-mix(in srgb, currentColor 2%, transparent);
}
#!/bin/bash
OUTPUT_DIR=""
INPUT_FILE=""
ZOOM=0.7
WIDTH=1080
HEIGHT=1080
ROTATE_X=0
ROTATE_Z=45
ROTATION=360 # Total rotation angle
// ==UserScript==
// @name Proper Twitter Favicon
// @author arturo182
// @version 0.1.0
// @description Bring back the Twitter favicon
// @match https://twitter.com/*
// @match https://mobile.twitter.com/*
// @match https://x.com/*
// @match https://mobile.x.com/*
// @updateURL https://gist.github.com/arturo182/e488bbb641c906143930a97c9438b696/raw/twitter-favicon.user.js
// ==UserScript==
// @name @chaoticvibing Twitter Blue red ticks - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @grant none
// @version 1.5.2
// @author @chaoticvibing - GH @busybox11, modified by @arturo182
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/arturo182/85251cbc370a12d9de6766dd44b88d5c/raw/twitterblue-red.user.js
// @downloadURL https://gist.githubusercontent.com/arturo182/85251cbc370a12d9de6766dd44b88d5c/raw/twitterblue-red.user.js
// ==UserScript==
// @name Remove bluechecks from all Twitter user names
// @match *://*.twitter.com/*
// @grant none
// @version 1.0
// @author arturo182
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==
tbody = document.querySelectorAll(".table-area tbody")[0];
i = tbody.children.length;
while (i--) {
child = tbody.children[i];
qty = child.children[3].firstChild.innerText.split('\n')[0];
//console.log(qty);
qtyint = parseInt(qty);
// Change 3000 here to preferred qty
if ((qtyint < 3000) || (qty == "Discontinued"))
(footprint "RP2040_Stamp" (version 20210228) (generator pcbnew) (layer "F.Cu")
(tedit 606DAF9F)
(fp_text reference "REF**" (at 0 -0.5 unlocked) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 7aa074a1-817f-4075-b862-25913493fa4a)
)
(fp_text value "RP2040_Stamp" (at 0 1 unlocked) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 34727f4e-1bf7-49d3-a44d-fd33d404b779)
)
// config
var itemsPerPage = 25;
var filterZeroStock = true; // May screw with pagination and items per page
var filterExpanded = false; // Same as above
var sortBy = 'price'; // 'price' or 'stock'
// end of config
scope = angular.element(document).scope();
child = scope.$$childHead;
// Results above this price will not be listed
var maxPrice = 50;
// Configurations that would result in more than this qty of boards will not get listed
var maxBoardQty = 500;
// Maximum number of panels to check for
var maxPanelQty = 50;
// Maximum number of boards in a panel, X and Y
var maxPanelSize = 10;
// Should the results be sorted by price per PCB, if false, they're sorted by total qty
var sortByPrice = true;
@arturo182
arturo182 / bom2grouped_csv_jlcpcb.xsl
Last active November 13, 2024 06:35
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
GPL v2.
Functionality:
Generation of JLCPCB PCBA compatible BOM