I was able to compile and cross compile the gnu and musl variants to all of our target triples :)
-
Install the cargo-zigbuild and dependencies (requires python3)
pip3 install ziglang cargo install cargo-zigbuild
/* Using a JavaScript proxy for a super low code REST client */ | |
// via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
// also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
// also see https://github.com/fastify/manifetch | |
// also see https://github.com/flash-oss/allserver | |
// and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const createApi = (url) => { | |
return new Proxy({}, { | |
get(target, key) { |
pacman -S --needed git base-devel | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si | |
yay -S flutter | |
java -version | |
sudo pacman -S jre8-openjdk |
class MediumHighlighter extends HTMLElement { | |
get markerPosition() { | |
return JSON.parse(this.getAttribute("markerPosition") || "{}"); | |
} | |
get styleElement() { | |
return this.shadowRoot.querySelector("style"); | |
} | |
get highlightTemplate() { |
Webpack 4 automatically polyfilled many Node APIs in the browser. This was not a great system, because it could lead to surprisingly giant libraries getting pulled into your app by accident, and it gave you no control over the exact versions of the polyfills you were using.
So Webpack 5 removed this functionality. That means you need to make changes if you were relying on those polyfills. This is a quick reference for how to replace the most common patterns.
For each automatically-polyfilled node package name on the left, this shows the name of the NPM package that was used to polyfill it on the right. Under webpack 5 you can manually install these packages and use them via resolve.fallback
.
#!/usr/bin/env bash | |
echo 'Adding Dell repository...' | |
# https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958 | |
sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF | |
deb http://dell.archive.canonical.com/updates/ focal-dell public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public | |
deb http://dell.archive.canonical.com/updates/ focal-oem public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-oem public |
/** | |
* Requires jsdoc and jsdoc-to-markdown | |
*/ | |
/* eslint-disable no-console */ | |
const fs = require('fs') | |
const path = require('path') | |
const glob = require('glob') | |
const { execSync } = require('child_process') | |
const jsdoc2md = require('jsdoc-to-markdown') |