Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
@ChristopherA
ChristopherA / macos_screen_sharing_local.md
Created November 10, 2023 03:30
MacOS Screen Sharing to Another User on Local Machine

Enable Remote Login (SSH) in System Preferences > Sharing, then in Terminal run:

ssh -NL 5901:localhost:5900 localhost and enter admin password

In the Screen Sharing.app connect localhost:5901 (default is 5900) and enter password for other user account. Then login that user from the login UX.

I beleive this only works reliably from two accounts with admin privs.

@ChristopherA
ChristopherA / MacOS_Sonoma_New_System_Notes.md
Last active April 7, 2024 20:20
MacOS Sonoma New Dev System Notes
@ChristopherA
ChristopherA / touchidforsudo.md
Last active December 2, 2023 03:27
TouchID for sudo (updated for Sonoma 14.0)
@ChristopherA
ChristopherA / apple_install_dates.md
Created September 19, 2023 00:22 — forked from pjobson/apple_install_dates.md
OSX Install Dates

Various Versions of macOS/OSX will fail on install for various reasons. You can fix them by disconnecting from your wifi or network or resetting your NVRAM. Booting from your USB stick, opening terminal and doing: date ########## where the # nubers are below. Format is: MMDDhhmmYY

10.16 - 0.5 Leopard   - date 0101010121 <- Currently not needed
10.15 - Catalina      - date 0101010120 <- Currently not needed
10.14 - Mojave        - date 0101010119 <- Currently not needed
10.13 - High Sierra   - date 0101010118

10.12 - Sierra - date 0101010117

@ChristopherA
ChristopherA / How_to_Count_in_an_iOS-macOS_Shortcut.md
Last active October 4, 2025 03:51
How to Count in an iOS/macOS Shortcut

It feels fairly ridiculous to me that you can't do simple increments of a counter that works on all three platforms (iOS/macOS/watchOS).

There is a hack that works with only default scripting functions, but only within a repeat loop.

  • Use the "Number" verb to create a text item.
  • Use the "Add Variable" verb to append the Number to a text variable.
  • Use the "Count" verb to count the items in that text variable.
@ChristopherA
ChristopherA / yt-dlp-tips.md
Last active November 7, 2025 20:18
yt-dlp tips

yt-dlp

A youtube-dl fork with additional features and fixes. Download videos from YouTube and other websites. More information at https://github.com/yt-dlp/yt-dlp

  • Download a video or playlist (with the default options from command below):
yt-dlp "https://www.youtube.com/watch?v=oHg5SJYRHA0"
@ChristopherA
ChristopherA / [email protected]
Last active July 24, 2023 15:29
Christopher Allen @ IETF 117 (San Francisco)

Christopher Allen @ IETF 117 (San Francisco)

IETF 117

Shigeya Suzuki, Wolf McNally, and I will be holding a public IETF Side Meeting on Monday, July 24, during IETF 117 in San Francisco, to discuss drafting a Problem Statement and Areas of Work for hash-based elision and our current Gordian Envelope Internet-Draft. If you're near SF and interested in our new privacy-focused data format, we'd love to have you participate. As I understand it, you don't have to be registered for IETF 117 to join us for a Side Meeting.

  • Gordian Envelope (& dCBOR)
    • Monday July 24th, 15:30-17:00
    • IETF 117, Golden Gate 4 Room (seats 16)
@ChristopherA
ChristopherA / zsh-tips_fc-examples.md
Last active July 17, 2023 06:43
ZSH Tips - `fc` Examples

ZSH Tips - fc Examples

Tags: zsh, fc command, command history

This gist provides useful examples and tips on how to utilize the fc command in zsh (Z Shell) to interact with and manipulate your command history effectively.

  • Editing the Previous Command: Open the last command in your default editor to make changes before re-execution.

fc

@ChristopherA
ChristopherA / cli-history-tips.md
Last active July 16, 2023 20:28
CLI `history` tips

BASH

Clear All

history -c

ZSH

@ChristopherA
ChristopherA / macos-find-cli-tips.md
Created July 16, 2023 20:12
MacOS `find` from CLI Tips

MacOS find and grep are slightly different from Linux. I've found this useful:

# find using regular expression
find . -type f -name "*.part*" -print