Robpol86 / robpol86.com

My personal website.
https://robpol86.com/
BSD 2-Clause "Simplified" License
16 stars 5 forks source link

Updating dependencies. #205

Closed Robpol86 closed 1 year ago

github-actions[bot] commented 1 year ago

Diff Against Old HTML

Show 30 lines from git_status.txt ``` M .buildinfo M 3d_printer_mpms2.html M _static/copybutton.css M _static/copybutton.js M _static/copybutton_funcs.js M atrix_lapdock.html M bareos_tape_backup.html M flash_droid_cricket.html M franklin_t9.html M imagecfg.html M index.html M mib2_comp_media.html M photo_albums.html M postfix_gmail_forwarding.html M posts/2022/2022-06-05-alltrack-homelink-mirror.html M posts/2022/2022-06-30-server-cabinet.html M posts/2022/2022-07-15-snapmaker.html M posts/2022/2022-08-23-oemtools-gauge.html M posts/2022/2022-10-24-snapmaker-reverse-door.html M raspberry_pi_luks.html M raspberry_pi_project_fi.html M rns_510_vim.html M root_certificate_authority.html M searchindex.js M vw_alltrack_2019.html M vw_jsw_2010.html M windows_11_mac.html M wireless_charging_car_dock.html ```
--- a/.buildinfo
+++ b/.buildinfo
@@ -1,4 +1,4 @@
 # Sphinx build info version 1
 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
-config: 7b9adcc8d01ba3f0a9a19e2cabbfed21
+config: d222fb0c9a563601ecbf1208c386429d
 tags: 645f666f9bcd5a90fca523b33c5a78b7
Show 41 lines from 2022-06-05-alltrack-homelink-mirror.html ```diff --- a/posts/2022/2022-06-05-alltrack-homelink-mirror.html +++ b/posts/2022/2022-06-05-alltrack-homelink-mirror.html @@ -12,31 +12,29 @@ - - - - - - - + + HomeLink Rearview Mirror — Robpol86.com
Show 71 lines from 2022-06-30-server-cabinet.html ```diff --- a/posts/2022/2022-06-30-server-cabinet.html +++ b/posts/2022/2022-06-30-server-cabinet.html @@ -9,34 +9,32 @@ content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> - - - - - - - + + Server Cabinet June 2022 — Robpol86.com
  • Tripp Lite PDUMH15-6 Metered PDU

  • @@ -1187,11 +1185,11 @@
  • ```
    Show 41 lines from 2022-07-15-snapmaker.html ```diff --- a/posts/2022/2022-07-15-snapmaker.html +++ b/posts/2022/2022-07-15-snapmaker.html @@ -12,31 +12,29 @@ - - - - - - - + + Snapmaker 2.0 A350T Teflon Tube — Robpol86.com
    Show 41 lines from 2022-08-23-oemtools-gauge.html ```diff --- a/posts/2022/2022-08-23-oemtools-gauge.html +++ b/posts/2022/2022-08-23-oemtools-gauge.html @@ -12,31 +12,29 @@ - - - - - - - + + OEMTools 24938 Gauge Mod — Robpol86.com
    Show 41 lines from 2022-10-24-snapmaker-reverse-door.html ```diff --- a/posts/2022/2022-10-24-snapmaker-reverse-door.html +++ b/posts/2022/2022-10-24-snapmaker-reverse-door.html @@ -12,31 +12,29 @@ - - - - - - - + + Snapmaker Enclosure Door Reversal — Robpol86.com
    Show 41 lines from 3d_printer_mpms2.html ```diff --- a/3d_printer_mpms2.html +++ b/3d_printer_mpms2.html @@ -12,31 +12,29 @@ - - - - - - - + + Monoprice Maker Select v2 — Robpol86.com
    Show 41 lines from atrix_lapdock.html ```diff --- a/atrix_lapdock.html +++ b/atrix_lapdock.html @@ -12,31 +12,29 @@ - - - - - - - + + Atrix Lapdock Other Uses — Robpol86.com
    Show 41 lines from bareos_tape_backup.html ```diff --- a/bareos_tape_backup.html +++ b/bareos_tape_backup.html @@ -12,31 +12,29 @@ - - - - - - - + + Bareos Tape Backup on a 124T — Robpol86.com
    Show 19 lines from copybutton.css ```diff --- a/_static/copybutton.css +++ b/_static/copybutton.css @@ -33,11 +33,13 @@ button.copybtn svg { div.highlight { position: relative; } -.highlight:hover button.copybtn { +/* Show the copybutton */ +.highlight:hover button.copybtn, +button.copybtn.success { opacity: 1; } .highlight button.copybtn:hover { background-color: rgb(235, 235, 235); ```
    Show 107 lines from copybutton.js ```diff --- a/_static/copybutton.js +++ b/_static/copybutton.js @@ -102,24 +102,31 @@ const clearSelection = () => { } else if (document.selection) { document.selection.empty(); } }; -// Changes tooltip text for two seconds, then changes it back +// Changes tooltip text for a moment, then changes it back +// We want the timeout of our `success` class to be a bit shorter than the +// tooltip and icon change, so that we can hide the icon before changing back. +var timeoutIcon = 2000; +var timeoutSuccessClass = 1500; + const temporarilyChangeTooltip = (el, oldText, newText) => { el.setAttribute("data-tooltip", newText); el.classList.add("success"); - setTimeout(() => el.setAttribute("data-tooltip", oldText), 2000); - setTimeout(() => el.classList.remove("success"), 2000); + // Remove success a little bit sooner than we change the tooltip + // So that we can use CSS to hide the copybutton first + setTimeout(() => el.classList.remove("success"), timeoutSuccessClass); + setTimeout(() => el.setAttribute("data-tooltip", oldText), timeoutIcon); }; // Changes the copy button icon for two seconds, then changes it back const temporarilyChangeIcon = (el) => { el.innerHTML = iconCheck; setTimeout(() => { el.innerHTML = iconCopy; - }, 2000); + }, timeoutIcon); }; const addCopyButtonToCodeCells = () => { // If ClipboardJS hasn't loaded, wait a bit and try again. This // happens because we load ClipboardJS asynchronously. @@ -127,11 +134,12 @@ const addCopyButtonToCodeCells = () => { setTimeout(addCopyButtonToCodeCells, 250); return; } // Add copybuttons to all of our code cells - const codeCells = document.querySelectorAll("div.highlight pre"); + const COPYBUTTON_SELECTOR = "div.highlight pre"; + const codeCells = document.querySelectorAll(COPYBUTTON_SELECTOR); codeCells.forEach((codeCell, index) => { const id = codeCellId(index); codeCell.setAttribute("id", id); const clipboardButton = (id) => @@ -143,10 +151,26 @@ const addCopyButtonToCodeCells = () => { function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string } + /** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ + function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach((node) => node.remove()); + } + return clone.innerText; + } + // Callback when a copy button is clicked. Will be passed the node that was clicked // should then grab the text and replace pieces of text that shouldn't be used in output function formatCopyText( textContent, copybuttonPromptText, @@ -209,20 +233,16 @@ const addCopyButtonToCodeCells = () => { var copyTargetText = (trigger) => { var target = document.querySelector( trigger.attributes["data-clipboard-target"].value ); - return formatCopyText( - target.innerText, - "", - false, - true, - true, - true, - "", - "" - ); + + // get filtered text + let exclude = ".linenos, .gp"; + + let text = filterText(target, exclude); + return formatCopyText(text, "", false, true, true, true, "", ""); }; // Initialize with a callback so we can modify the text before copy const clipboard = new ClipboardJS(".copybtn", { text: copyTargetText }); ```
    Show 30 lines from copybutton_funcs.js ```diff --- a/_static/copybutton_funcs.js +++ b/_static/copybutton_funcs.js @@ -1,9 +1,25 @@ function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string } +/** + * Removes excluded text from a Node. + * + * @param {Node} target Node to filter. + * @param {string} exclude CSS selector of nodes to exclude. + * @returns {DOMString} Text from `target` with text removed. + */ +export function filterText(target, exclude) { + const clone = target.cloneNode(true); // clone as to not modify the live DOM + if (exclude) { + // remove excluded nodes + clone.querySelectorAll(exclude).forEach((node) => node.remove()); + } + return clone.innerText; +} + // Callback when a copy button is clicked. Will be passed the node that was clicked // should then grab the text and replace pieces of text that shouldn't be used in output export function formatCopyText( textContent, copybuttonPromptText, ```
    Show 41 lines from flash_droid_cricket.html ```diff --- a/flash_droid_cricket.html +++ b/flash_droid_cricket.html @@ -12,31 +12,29 @@ - - - - - - - + + Flashing Motorola Droid to Cricket — Robpol86.com
    Show 73 lines from franklin_t9.html ```diff --- a/franklin_t9.html +++ b/franklin_t9.html @@ -9,34 +9,32 @@ content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> - - - - - - - + + T-Mobile Franklin T9 Hacking — Robpol86.com
  • https://datasheets.maximintegrated.com/en/ds/MAX77818.pdfhttps://www.analog.com/media/en/technical-documentation/data-sheets/max77818.pdf

  • @@ -14006,11 +14004,11 @@ CONFIG_QMI_ENCDEC=y ```
    Show 44 lines from imagecfg.html ```diff --- a/imagecfg.html +++ b/imagecfg.html @@ -12,34 +12,32 @@ - - - - - - - + + ImageCFG — Robpol86.com
    Show 44 lines from index.html ```diff --- a/index.html +++ b/index.html @@ -12,34 +12,32 @@ - - - - - - - + + Robert Pooley — Robpol86.com
    Show 41 lines from mib2_comp_media.html ```diff --- a/mib2_comp_media.html +++ b/mib2_comp_media.html @@ -12,31 +12,29 @@ - - - - - - - + + MIB2 Composition Media Hacking — Robpol86.com
    Show 41 lines from photo_albums.html ```diff --- a/photo_albums.html +++ b/photo_albums.html @@ -12,31 +12,29 @@ - - - - - - - + + Photo Albums — Robpol86.com
    Show 44 lines from postfix_gmail_forwarding.html ```diff --- a/postfix_gmail_forwarding.html +++ b/postfix_gmail_forwarding.html @@ -12,34 +12,32 @@ - - - - - - - + + Postfix and Gmail Forwarding — Robpol86.com
    Show 44 lines from raspberry_pi_luks.html ```diff --- a/raspberry_pi_luks.html +++ b/raspberry_pi_luks.html @@ -12,34 +12,32 @@ - - - - - - - + + Raspberry Pi LUKS Root Encryption — Robpol86.com
    Show 41 lines from raspberry_pi_project_fi.html ```diff --- a/raspberry_pi_project_fi.html +++ b/raspberry_pi_project_fi.html @@ -12,31 +12,29 @@ - - - - - - - + + Raspberry Pi on Project Fi — Robpol86.com
    Show 44 lines from rns_510_vim.html ```diff --- a/rns_510_vim.html +++ b/rns_510_vim.html @@ -12,34 +12,32 @@ - - - - - - - + + US RNS-510 Video In Motion — Robpol86.com
    Show 41 lines from root_certificate_authority.html ```diff --- a/root_certificate_authority.html +++ b/root_certificate_authority.html @@ -12,31 +12,29 @@ - - - - - - - + + Setting Up a Home Root CA — Robpol86.com
    Show 67 lines from searchindex.js ```diff --- a/searchindex.js +++ b/searchindex.js @@ -7277,11 +7277,11 @@ Search.setIndex({ dnf: 9, dnsmasq: 4, do9uqa3p30hkfn: 7, doc: [7, 15, 18], dock: [1, 6, 20], - document: [2, 5, 21], + document: [2, 4, 5, 21], doe: [1, 2, 3, 4, 5, 16, 17, 18, 19, 21], doesn: [2, 4, 5, 8, 14, 15, 16, 19, 22], domain: [4, 6, 7, 9, 18], don: [1, 2, 4, 5, 7, 8, 9, 13, 15, 16, 18, 19, 20, 21, 22], done: [2, 3, 4, 5, 15, 16, 17, 18, 19, 20, 21, 22], @@ -7316,11 +7316,10 @@ Search.setIndex({ drove: [10, 22], drwxrwxrwt: 7, drwxrwxrwx: 7, dry: 19, ds1: 4, - ds: 4, dsiexclud: 7, dsl: 6, dsp: 4, dsplogger: 7, dsrc: 4, @@ -8630,11 +8629,10 @@ Search.setIndex({ max77818_pmic_setup: 4, max: [4, 7, 12, 16], max_antenna_gain: 4, max_eirp: 4, maxim: [4, 19], - maximintegr: 4, maximum: [2, 4, 18], maxk: 4, maxmsgsperhtcbundl: 4, mayb: 18, mb: 4, @@ -10121,11 +10119,11 @@ Search.setIndex({ sha: 2, shallow: 8, shape: 4, share: [4, 6, 7, 15, 16, 18], shave: 1, - sheet: 0, + sheet: [0, 4], shelf: 8, shell: [4, 6, 15, 21], shellgit: 21, shift: [6, 21], shifter: 22, @@ -10529,11 +10527,11 @@ Search.setIndex({ tdiclub: 17, tdm: 4, team: [4, 21], teardown: 6, tech: [6, 12], - technic: [17, 18], + technic: [4, 17, 18], technolog: [4, 16], tee: [2, 9, 18, 21], teflon: [0, 6], tekton: 20, telephon: 3, ```
    Show 41 lines from vw_alltrack_2019.html ```diff --- a/vw_alltrack_2019.html +++ b/vw_alltrack_2019.html @@ -12,31 +12,29 @@ - - - - - - - + + Golf Alltrack SE — Robpol86.com
    Show 44 lines from vw_jsw_2010.html ```diff --- a/vw_jsw_2010.html +++ b/vw_jsw_2010.html @@ -12,34 +12,32 @@ - - - - - - - + + Jetta SportWagen TDI — Robpol86.com
    Show 71 lines from windows_11_mac.html ```diff --- a/windows_11_mac.html +++ b/windows_11_mac.html @@ -9,34 +9,32 @@ content="Docutils 0.17.1: http://docutils.sourceforge.net/" /> - - - - - - - + + Install Windows 11 on an Intel Mac — Robpol86.com NTLite. I discovered that even though I removed the TPM requirement, I wasn’t able to get Boot Camp to use the custom ISO on my 2019 MacBook Air (however it worked just fine on my 2013 Mac Pro). I ended up bypassing the Boot Camp Assistant almost completely and installing my customized @@ -2211,11 +2209,11 @@ ps aux |grep -v grep |grep ssh-age ```
    Show 41 lines from wireless_charging_car_dock.html ```diff --- a/wireless_charging_car_dock.html +++ b/wireless_charging_car_dock.html @@ -12,31 +12,29 @@ - - - - - - - + + Wireless Charging Car Dock — Robpol86.com