❯ defaults read com.apple.touchbar.agent
{
PresentationModeFnModes = {
appWithControlStrip = functionKeys;
};
PresentationModeGlobal = appWithControlStrip;
PresentationModePerApp = {
"com.hnc.Discord" = functionKeys;
"com.hnc.DiscordPTB" = functionKeys;
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # The GraphQL query could also be inlined instead of referencing the file, but | |
| # I kept it in a separate file for syntax highlighting and stuff | |
| xhs \ | |
| --check-status --ignore-stdin --timeout 2.5 \ | |
| example.instructure.com/api/graphql Authorization:"Bearer $CANVAS_TOKEN" [email protected] \ | |
| | fx .data Object.entries '.forEach(([subject, {grades: {currentScore}}]) => console.log(`${subject}: ${currentScore === null ? "--" : `${String(currentScore).padEnd(5, "0")}%`}`))' 2> /dev/null \ | |
| | column -t |
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
| # https://github.com/NixOS/nix/issues/3261 | |
| # sudo ln -sf /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt | |
| # https://discourse.nixos.org/t/nix-flake-and-fetcher-cache-v1-sqlite/8958 | |
| # (local u="$(whoami); sudo chown "$u:users" ~/.cache/nix) | |
| # https://github.com/numtide/nix-unstable-installer | |
| sh <(curl -L https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install) --daemon | |
| nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs |
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
| #!/usr/bin/env elvish | |
| var result = ( | |
| xhs ^ | |
| --check-status --ignore-stdin --timeout 2.5 ^ | |
| example.instructure.com/api/graphql ^ | |
| Authorization:'Bearer '$E:CANVAS_TOKEN ^ | |
| [email protected] | | |
| from-json | |
| ) |
Don’t like the
This document is intended for <student name> at <school> (user ID: <id>). Unauthorised circulation in any form is not permitted.
at the bottom of each page of an Edrolo PDF textbook?
Use this script!
- Install Python 3
pip install pikepdf
If you are participating in the MAC Introduction to Haskell Workshop and want to install Haskell locally, follow these instructions to install Haskell to save time during the workshop. If you don’t want to install Haskell, there will also be an option to code online which does not require you to install anything.
- Install GHCup:
- Windows:
Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { & ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -Interactive -DisableCurl -Minimal } catch { Write-Error $_ }
- Windows:
OlderNewer