Skip to content

Instantly share code, notes, and snippets.

View mcrumm's full-sized avatar

Michael Crumm mcrumm

View GitHub Profile
hyperupcall / settings.jsonc
Last active November 24, 2023 09:31
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
View settings.jsonc
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
kconner / macOS
Last active December 1, 2023 16:48
macOS Internals
View macOS

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

rain-1 /
Last active December 4, 2023 01:01
LLM Introduction: Learn Language Models


Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.


Neural network links before starting with transformers.

caspg / 1_searchbar_live.ex
Last active December 1, 2023 21:37
Example of real-time search bar implementation in Phoenix LiveView and Tailwind. Working example on
View 1_searchbar_live.ex
defmodule TravelerWeb.SearchbarLive do
use TravelerWeb, :live_view
alias Phoenix.LiveView.JS
alias Traveler.Places
def mount(_params, _session, socket) do
socket = assign(socket, places: [])
{:ok, socket, layout: false}
joshchernoff / app.js
Last active May 10, 2022 19:41
MinIO uploader for LiveView Uploader
View app.js
let Uploaders = {}
Uploaders.S3 = function(entries, onViewError){
entries.forEach(entry => {
let {url, full_string} = entry.meta
var blob = new Blob([entry.file], {type: entry.file.type});
let xhr = new XMLHttpRequest()
onViewError(() => xhr.abort())
LostKobrakai / form_live.ex
Last active October 24, 2023 19:22
Phoenix LiveView form with nested embeds and add/delete buttons
View form_live.ex
defmodule NestedWeb.FormLive do
use NestedWeb, :live_view
require Logger
defmodule Form do
use Ecto.Schema
import Ecto.Changeset
embedded_schema do
field :name, :string
steven2358 /
Last active December 3, 2023 16:03
FFmpeg cheat sheet
jabenninghoff /
Last active November 7, 2023 13:58
RemoteManagement "hidden" options

macOS Sierra (and possibly earlier) has some "hidden" screen sharing options:

If you're connecting to VNC using ssh tunneling, you can force macOS to listen only on localhost:

sudo defaults write /Library/Preferences/ VNCOnlyLocalConnections -bool yes

In newer versions of macOS, screen sharing will automatically re-lock the screen when you disconnect if it was locked when you first connected. To change this behavior, use:

sudo defaults write /Library/Preferences/ RestoreMachineState -bool NO

# Note: ~/.ssh/environment should not be used, as it
# already has a different purpose in SSH.
# Note: Don't bother checking SSH_AGENT_PID. It's not used
# by SSH itself, and it might even be incorrect
# (for example, when using agent-forwarding over SSH).
agent_is_running() {