I stood in line for my switch for several hours one midnight in the late 20-teens, finally getting mine from BestBuy at something like 3am. I used it a fair amount for the first year or two, and then it mostly collected dust. Until now! Evidently, Switches made prior to August 2018 have an unpatchable bug that allows you to run alternative bootloaders and firmwares. You can even
This file contains hidden or 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
| = LinuxFromScratch using Mac OS X = | |
| Linux From Scratch is a fun way to learn about Linux, but it expects you to already have Linux running. [http://trac.cross-lfs.org Cross-compiling] is already supported but OS X is a little weird--so here are some hints for bootstrapping LFS from OS X. I've only tried this on 32-bit PPC, I have no idea how well or badly it would work on G5 or Intel chips. | |
| Generally, you can follow the [http://cross-lfs.org/view/1.0.0rc4/ppc/ Cross-LFS book], I only refer to areas where changes are needed. | |
| == Chapter 2 == | |
| === Partitioning === | |
| To perform the partitioning, you'll probably want to use a Linux rescue CD. Gentoo's PPC CD has a version of parted that can even resize existing HFS+ partitions non-destructively, I think Debian's does too. Using Disk Utility or a commercial tool like iPartition is an option, but I'm not certain they can create the special partition types Apple_Bootstrap and Apple_UNIX_SVR2. |
This file contains hidden or 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
| html { | |
| max-width: 70ch; | |
| padding: 3em 1em; | |
| margin: auto; | |
| line-height: 1.75; | |
| font-size: 1.25em; | |
| } |
To get Comply running on Lubuntu 18.04 minimal install, I had to:
Download comply-v1.2.6-linux-amd64.tgz from the Comply releases page, and ensure it's my executable path:
curl -LO https://github.com/strongdm/comply/releases/download/v1.2.6/comply-v1.2.6-linux-amd64.tgz
tar -xzvf comply-v1.2.6-linux-amd64.tgz
sudo ln -s $PWD/comply-v1.2.6-linux-amd64 /usr/local/bin/comply
Download the latest pandoc 2.x binary from here because the latest Ubuntu package is 1.19.x
This file contains hidden or 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
| python -m markdown -x markdown.extensions.footnotes -x markdown.extensions.tables in.md > out.html |
This file contains hidden or 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
| // Pressing Control-R will render this sketch. | |
| int x = 50; | |
| int y = 50; | |
| void setup() { // this is run once. | |
| // set the background color | |
| background(255); |
This file contains hidden or 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
| { | |
| "_id": "6c5cfc1c77bfa802c55f2a8561005f34", | |
| "_rev": "2-8abc0d63720e5f85b74a5af0342b41c3", | |
| "publication_timestmap": "1516779903", | |
| "title": "Vegan Tex-Mex Tacos", | |
| "author": "Brian L. Patton", | |
| "packs": [ | |
| { | |
| "id": "a1b2c3", | |
| "name": "Amazing Breakfasts" |
This file contains hidden or 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 util = require('util') | |
| const execFile = util.promisify(require('child_process').execFile); // node 8+ | |
| const getGatewayIp = () => | |
| new Promise((resolve, reject) => { | |
| execFile('/sbin/ip', ["route"]) | |
| .then(result => { | |
| if (result.stdout) { | |
| const ip_pattern = /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/; | |
| const ip = result.stdout.match(ip_pattern)[0]; |
This file contains hidden or 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
| // First, click on the event link that looks like "0 Going · 28 Interested" and then "inspect element" on the modal | |
| const list = document.getElementsByClassName("uiScrollableAreaBody")[6] // Your markup may vary. The One I wanted was index 6 | |
| const people = list.getElementsByTagName("span") // HTMLCollection | |
| const peopleArray = [].slice.call(people) // Convert to an array we can map() | |
| peopleArray.map(personEl => personEl.innerText) // Copy the results and clean up in Vim :D |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Simple Map</title> | |
| <meta name="viewport" content="initial-scale=1.0"> | |
| <meta charset="utf-8"> | |
| <style> | |
| /* Always set the map height explicitly to define the size of the div | |
| * element that contains the map. */ | |
| #map { |
NewerOlder