Skip to content

Instantly share code, notes, and snippets.

View ianfinch's full-sized avatar

Ian Finch ianfinch

View GitHub Profile
@ianfinch
ianfinch / craneoperator
Created June 22, 2022 17:59
How to run Crane Operator
docker run -d \
-p 8080:80 \
-e REGISTRY_HOST=$REGISTRY_HOST_IP \
-e REGISTRY_PORT=$REGISTRY_PORT \
-e REGISTRY_PROTOCOL=http \
-e SSL_VERIFY=false \
-e REGISTRY_ALLOW_DELETE=true \
parabuzzle/craneoperator:latest
@ianfinch
ianfinch / js-pass-by-value.txt
Last active July 8, 2022 07:31
Example of Javascript pass by value side effects
// Function to change the passed in variable
testFn0 = obj => { obj = {}; }
// Function to change level one variable
testFn1 = obj => { obj.b = 999; }
// Function to change level two variable
testFn2 = obj => { obj.b.b = 999; }
// Directly changing the passed in variable should not affect it