Skip to content

Instantly share code, notes, and snippets.

View MatthewCash's full-sized avatar

Matthew MatthewCash

View GitHub Profile
@MatthewCash
MatthewCash / flake.nix
Created July 11, 2025 02:40
nix flake for rust + musl
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, rust-overlay, ... }:
@MatthewCash
MatthewCash / script.js
Created September 4, 2021 18:34
Download Pearson Textbook PNGs
// Edit the 2 values below and run in browser console
const bookUrl = 'https://plus.pearson.com/eplayer/pdfassets/prod1/XXXXXXX/UUIDXXXXXXXXXXX'
const lastPageNum = 1431;
const download = (filename, url) => {
const element = document.createElement('a');
element.setAttribute('href', url);
element.setAttribute('download', filename);