❯ defaults read com.apple.touchbar.agent
{
PresentationModeFnModes = {
appWithControlStrip = functionKeys;
};
PresentationModeGlobal = appWithControlStrip;
PresentationModePerApp = {
"com.hnc.Discord" = functionKeys;
"com.hnc.DiscordPTB" = functionKeys;
This file contains 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" query=@query.graphql \ | |
| 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 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 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 ^ | |
query=@query.graphql | | |
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
OlderNewer