An aggressively minimized, bootable NixOS ISO, continuing where natkr's "NixOS but smol" left off. The post took a stock minimal ISO from 458 MiB → 183 MiB. This takes that 183 MiB result and pushes it much further while keeping it a real NixOS system that boots to an autologin root shell.
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
This document describes how to merge multiple JJ workspaces into a single linear history on main.
Use this workflow when you have:
- Multiple JJ workspaces with independent development branches
- Work that needs to be consolidated into a single linear history
- Commits in different workspaces that you cannot directly rebase (causes stale workspace errors)
| {lib, ...}: { | |
| toBase64 = text: let | |
| inherit (lib) sublist mod stringToCharacters concatMapStrings; | |
| inherit (lib.strings) charToInt; | |
| inherit (builtins) substring foldl' genList elemAt length concatStringsSep stringLength; | |
| lookup = stringToCharacters "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | |
| sliceN = size: list: n: sublist (n * size) size list; | |
| pows = [(64 * 64 * 64) (64 * 64) 64 1]; | |
| intSextets = i: map (j: mod (i / j) 64) pows; | |
| compose = f: g: x: f (g x); |
| Latest docker version to support macos 10 => https://desktop.docker.com/mac/main/amd64/93002/Docker.dmg | |
| https://docs.docker.com/desktop/release-notes/#4150 |
| # Syntax | |
| nix run github:<owner>/<repo>/<revision>#<executable> | |
| # Examples | |
| ## Specific commit ID | |
| nix run github:DeterminateSystems/riff/a71a8b5ddf680df5db8cc17fa7fddd393ee39ffe | |
| ## Tag |
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
Running into this error message when trying to run a mosh server on macOS Catalina? The steps below should solve the problem which is most likely either a $PATH and/or firewall issues.
command not found: mosh-server
Connection to X.X.X.X closed.
/usr/local/bin/mosh: Did not find mosh server startup message. (Have you installed mosh on your server?)
| #!/bin/bash | |
| ## postinstall script to remove CCDA applications | |
| # remove any existing version of the tool | |
| echo "Moving the CC Cleaner app to Utilities in case users need it later" | |
| rm -rf /Applications/Utilities/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app ||: | |
| mv /Applications/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app /Applications/Utilities/Adobe\ Creative\ Cloud\ Cleaner\ Tool.app | |
| # run the cleaner tool to remove EVERYTHING! | |
| echo "Running the CC Cleaner app with 'removeAll=All' option" |
Download and run the Adobe Creative Cloud Cleaner Tool, their multi-app uninstaller and wipe assistant. Adobe does recommend running individual application uninstallers first, your call. Click the Clean All option.
Type a one line command in terminal find ~/ -iname "*adobe*" and it's shows up all files which match pattern.
To remove all files
`sudo rm -rf /Applications/Adobe* /Applications/Utilities/Adobe* /Library/Application\ Support/Adobe /Library/Preferences/com.adobe.* /Library/PrivilegedHelperTools/com.adobe.* /private/var/db/receipts/com.adobe.* ~/Library/Application\ Support/Adobe* ~/Library/Application\ Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.adobe* ~/Library/Application\ Support/CrashReporter/Adobe* ~/Library/Caches/Adobe ~/Library/Caches/com.Adobe.* ~/Library/Caches/com.adobe.* ~/Library/Cookies/com.adobe.* ~/Library/Logs/Adobe* ~/Librar