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
const console = { | |
log: (msg) => { | |
const para = document.createElement('p'); | |
para.insertAdjacentHTML('beforeend', msg); | |
document.body.insertAdjacentElement('beforeend', para); | |
} | |
}; | |
const space = ' '; | |
const empty = ''; |
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
Usage: createinstallmedia --volume <path to volume to convert> | |
Arguments | |
--volume, A path to a volume that can be unmounted and erased to create the install media. | |
--applicationpath, A path to copy of the OS installer application to create the bootable media from. | |
--nointeraction, Erase the disk pointed to by volume without prompting for confirmation. | |
Example: createinstallmedia --volume /Volumes/Untitled | |
This tool must be run as root. |
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
ffmpeg -i input.mov -map 0 -map_metadata -1 -c copy output-noloc.mov |
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
/*! Modifications to normalize */ | |
*, | |
*::before, | |
*::after { | |
border: 0; | |
box-sizing: inherit; | |
font-weight: normal; | |
margin: 0; | |
padding: 0; |
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:(()=>{'use strict';const items={cards:{all:document.querySelectorAll('div.fp-display-item-holder')},titles:{all:document.querySelectorAll('div.fp-display-item-title'),notMusic:[]}};for(let i=0;i<items.titles.all.length;i++){if(items.titles.all[i].textContent.trim()!=='YouTube Music'){items.titles.notMusic.push(items.titles.all[i]);}};for(let i=0;i<items.cards.all.length;i++){for(let j=0;j<items.titles.notMusic.length;j++){if(items.cards.all[i].contains(items.titles.notMusic[j])){items.cards.all[i].remove();}}};let s=document.createElement('style');s.textContent='div.fp-date-block-overflow {display:none}';document.head.appendChild(s);})(); |
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
{ | |
"tabs": [ | |
"https://davesteele.github.io/raspberrypi/2016/04/23/raspberry-pi-cloudprint/", | |
"https://samhobbs.co.uk/2014/07/raspberry-pi-print-scanner-server", | |
"https://www.openprinting.org/printer/Epson/Epson-NX420_Series", | |
"https://github.com/google/cloud-print-connector/wiki/Installing-on-Raspberry-Pi-Raspbian-Jessie", | |
"https://github.com/google/cloud-print-connector/wiki" | |
] | |
} |
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
for (const tx of document.getElementsByTagName('textarea')) { | |
tx.style.setProperty('height', `${tx.scrollHeight}px`); | |
tx.style.setProperty('overflow-y', 'hidden'); | |
tx.addEventListener('input', (ev) => { | |
ev.target.style.setProperty('height', 'auto'); | |
ev.target.style.setProperty('height', `${ev.target.scrollHeight}px`); | |
}); | |
} |
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
'use strict'; | |
function genEl (tagName, attributes, ...childNodes) { | |
const el = document.createElement(tagName); | |
if (attributes) { | |
for (const [prop, value] of Object.entries(attributes)) { | |
if (prop === 'style' && (Array.isArray(value) || value instanceof Map)) { | |
for (const declaration of value) { | |
el.style.setProperty(...declaration); | |
} |
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/env node | |
// cli usage: `node 1p-parser.js input.1pif` | |
'use strict'; | |
const getJSON = require('1pif-to-json'); | |
(async () => { | |
const items = await getJSON(process.argv.slice(2)[0]); |
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 list was derived from the macOS installer for Node.js v10.15 and might not be complete | |
# Additionally, if you have modified your npm prefix, you will also need to address that directory | |
/usr/local/bin/node | |
/usr/local/include/node | |
/usr/local/lib/dtrace/node.d | |
/usr/local/lib/node_modules | |
/usr/local/share/doc/node | |
/usr/local/share/man/man1/node.1 | |
/usr/local/share/systemtap/tapset/node.stp |