name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
Terminals should generate the 256-color palette from the user's base16 theme.
If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.
The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.
It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive
There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support
to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder
which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!
| (defun formatted-copy (start end) | |
| "Export region to HTML, and copy it to the clipboard." | |
| (interactive "r") | |
| (let* ((region-string (buffer-substring-no-properties start end)) | |
| (shell-command "pandoc -f gfm -t html5 | pbcopy_html") | |
| (output-buffer (generate-new-buffer "*Shell Command Output*"))) | |
| (with-current-buffer output-buffer | |
| (erase-buffer) | |
| (insert region-string) | |
| (shell-command-on-region (point-min) (point-max) shell-command t t)) |
| use AppleScript version "2.4" -- Yosemite (10.10) or later | |
| use scripting additions | |
| (* | |
| Original script: John Gruber (https://daringfireball.net/linked/2023/12/05/an-applescript-for-safari-split-tabs-to-new-window) | |
| Much more elegant version: Leon Cowle (https://github.com/leoncowle) | |
| Even more elegant version: https://stackoverflow.com/questions/54066100/applescript-to-split-safari-tabs-into-new-window/54089865#54089865 | |
| Worth a warning: "moving" tabs with this script doesn't actually move them like | |
| drag-and-drop does. The tabs "moved" by this script will reload in the new window, |
I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.
The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.
- Setup your Custom Domain (or subdomain) with iCloud+
| 1) Add this code to a new file in Script Editor | |
| 2) Export the script as "Application" and make sure it's code signed | |
| 3) Put "Startup.app" in the root folder of the test website (e.g. where index.html is located) | |
| 4) Make sure that "Startup.app" has Full Disk Access in System Preferences > Security & Privacy > Privacy |
| /* | |
| * credit to Dhrumil Shah (@wandcrafting) and Robert Haisfield (@RobertHaisfield) | |
| * for the original concept which was part of their RoamGames submission | |
| * and can be found at: https://www.figma.com/file/5shwLdUCHxSaPNEO7pazbe/ | |
| * | |
| */ | |
| /* ======= OPTIONS ======== */ | |
| /* note: if you change these, reload the page to see the effect */ |
| /* | |
| * Viktor's Roam Mobile Long tap to Exluce Filters and Right click on bullets + pages + title | |
| * version: 0.3 | |
| * author: @ViktorTabori | |
| * | |
| * How to install it: | |
| * - go to page [[roam/js]] | |
| * - create a node with: { {[[roam/js]]}} | |
| * - create a clode block under it, and change its type from clojure to javascript | |
| * - allow the running of the javascript on the {{[[roam/js]]}} node |
