Skip to content

Instantly share code, notes, and snippets.

View ChristopherA's full-sized avatar

Christopher Allen ChristopherA

View GitHub Profile
@ChristopherA
ChristopherA / git-repo-root-of-trust.md
Last active April 26, 2024 22:02
A Git Repo Root of Trust (A Proof-of-Concept & Work-in-Progress)

A Git Repo Root of Trust (A Proof-of-Concept & Work-in-Progress)

by Christopher Allen, Principal Architect, Blockchain Commons

Purpose of the Repository "Inception" Process

  • Initialization of a Secure Repository: Establishing a new repository with a root of trust ensures all future changes and commits build on a secure and verified foundation.
    • NOTE: This initial commit relies solely on basic git and ssh-keygen tools, without additional code libraries or identity infrastructure.
  • Leverage DIDs: By utilizing Decentralized Identifiers (DIDs) instead of traditional email addresses in the author and committer fields, we enhance privacy and align with decentralized practices.
  • NOTE: The resulting initial commit identifier can serve as a unique identifier for the repository. A future "did:repo:git-commit-id" method could be created that allows a DID resolver to create a temporary DID Document to verify authenticat
@ChristopherA
ChristopherA / Debian-apt-get-contrib-non-free.md
Last active April 20, 2024 20:33
How to enable contrib and non-free repos in Debian

As root you need to edit /etc/apt/sources.lst

Then add contrib and non-free at the end of each line that begins with deb and deb-src just like the example:

deb http://http.us.debian.org/debian jessie main contrib non-free

deb http://security.debian.org jessie/updates main contrib non-free
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active April 19, 2024 06:56
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@ChristopherA
ChristopherA / gordian_envelope_links.md
Last active April 19, 2024 05:33
Gordian Envelope Links
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active April 17, 2024 11:06
macOS Preferences Defaults
#!/usr/bin/env zsh
#===========================================================================
# * INFO
#
# macOS Preferences Defaults
# By Christopher Allen @ChristopherA https://github.com/christophera/
# My most basic macOS preferences, in this gist to make it easy to load on
# multiple machines and VMs. Ideally runs on all macOS versions since Yosemite,
@ChristopherA
ChristopherA / Mermaid_on_Github_Examples.md
Last active April 12, 2024 14:32
Mermaid on Github Examples

Mermaid on Github Examples

All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14

Pros & Cons:

  • Pro: You don't need to care about the layout.
  • Con: You cannot control the layout.

Notes:

  • Not all the features of Mermaid (in particular symbols B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.
@ChristopherA
ChristopherA / MacOS_Sonoma_New_System_Notes.md
Last active April 7, 2024 20:20
MacOS Sonoma New Dev System Notes
@ChristopherA
ChristopherA / yt-dlp-tips.md
Last active April 6, 2024 05:52
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 / macos_time_machine_tips.md
Created April 4, 2024 06:18
macOS Time Machine Tips

macOS Time Machines Tips

Speed up

To give priority to Time Machine:

sudo sysctl debug.lowpri_throttle_enabled=0