Skip to content

Instantly share code, notes, and snippets.

View abstractmachines's full-sized avatar
🤸

Amanda Falke abstractmachines

🤸
View GitHub Profile
@abstractmachines
abstractmachines / chromium-v8-runbook.md
Last active September 16, 2022 14:44
Chromium/V8 runbook

Chromium/V8 runbook

XCode:

  • Note that you'll need XCode, not just the XCode Mac CLI tools, to build/compile Chromium/V8 on Mac.
  • Ensure that you see this:
     $ xcode-select --print-path
     /Applications/Xcode.app/Contents/Developer
    
@abstractmachines
abstractmachines / git-config-crlf-filemode.md
Last active August 27, 2022 15:55
git config re: cross-platform EOL and executables core.crlf core.filemode

core.autocrlf (man git-config)

core.autocrlf
   Setting this variable to "true" is the same as setting the text attribute to "auto" on all files and core.eol to "crlf".
   Set to true if you want to have CRLF line endings in your working directory and the repository has LF line endings.            This variable can be set to input, in which case no output conversion is performed.

e.g., CRLF false for EOL in Github POSIX/Windows cross-platform development.

@abstractmachines
abstractmachines / python-language.md
Last active August 25, 2022 01:01
Python language

Python Handbook

Intended audience: relatively experienced software engineers who don't know Python (yet).

Python lambdas

Python isn't a "functional" language, but it has adopted some FP methods around 1994.

A function in Python:

def identity(x):
@abstractmachines
abstractmachines / calcuating-probability.md
Last active May 29, 2022 18:05
How to calculate probability

How to calculate probability

Counting Distinct Objects

Combinations and Permutations

Combinations: Order Doesn't Matter

$$ C = \frac{n!}{(n-r)!r!}$$

@abstractmachines
abstractmachines / debugging-kubernetes-flow-chart.md
Last active September 23, 2021 20:36
Debugging Kubernetes Flow Chart

Debugging Kubernetes Flow Chart

Not sure of the source of this

image

@abstractmachines
abstractmachines / kubernetes-envtest-an-api-server.md
Last active September 21, 2021 15:05
Kubernetes envtest: An API Server

Kubernetes envtest

A testing environment for Kubernetes

Note: Everything mentioned here is also in the Controller Runtime's pkg envtest docs.

envtest can run on a local control plane, or an existing cluster.

  • To start up a local control plane, envtest spins up a local instance of control plane binaries. These would be, etcd and kube-apiserver. It's available as a package under controller-runtime.
  • Alternatively, an existing cluster can be used to run envtest, by loading up CRDs and client config.
@abstractmachines
abstractmachines / vscode-go.md
Created August 18, 2021 20:42
VSCode Go Extension

How to keep VSCode's Go Extension from removing Go imports while developing

We would think this would be enough for VSCode's Go Linter/formatter, but nopes:

{
  "editor.formatOnSave": false,
}

We instead need to do this: