Skip to content

Instantly share code, notes, and snippets.

View lance's full-sized avatar
🎯
Focusing

Lance Ball lance

🎯
Focusing
View GitHub Profile
@lance
lance / chief-architect.md
Last active December 12, 2018 19:56
CA Responsibilities

Engineering/Development

  • Work on critical issues/features/blockers etc
  • Assist others when needed
  • Contribute to platform and project development tasks as required.
  • Mentor their team technically, organisationally and on Open Source matters
  • Is the ultimate technical decision maker in their area
I'm reading the 2017 Arctic Report Card [1] from @altNOAA and I keep thinking about this theory on the right
about how government government oversight and control is so detrimental to overall social efficacy.
We see this debate over government oversight in healthcare, finance, technology... everywhere. But for now,
let's simply consider the realm of climate change.
As I read the findings, I find my mind drifting. I wonder. Who are these people who write these reports and
do this research? What is their motivation? Why would a bright, engaged 19 year old high school valedictorian
or salutatorian, or just an average student curious about the world around them and how it works - why would
they choose to pursue a career in the sciences?
@lance
lance / rosemary-shortbread.md
Created December 23, 2017 18:56
Most excellent vegan rosemary and olive oil shortbread

Olive Oil Rosemary Shortbread

  • 130g (2/3 C) olive oil
  • 60 g (1/3 C) powdered sugar
  • 200g (1.5 C) all purpose flour
  • 60g (1/3 C) whole wheat flour
  • 2g (1/2 tsp) fleur de sel
  • 2g (1/4 tsp) kosher salt
  • 5g (2 Tbsp) chopped fresh rosemary
-- Checking `oc` support for startup flags ...
host-config-dir ... OK
host-data-dir ... OK
host-pv-dir ... OK
host-volumes-dir ... OK
version ... OK
routing-suffix ... OK
-- Running `oc` with: 'cluster up --use-existing-config --host-config-dir /var/lib/minishift/openshift.local.config --host-data-dir /var/lib/minishift/hostdata --host-pv-dir /var/lib/minishift/openshift.local.pv --host-volumes-dir /var/lib/minishift/openshift.local.volumes --version v3.7.0 --routing-suffix 192.168.99.100.nip.io'
Starting OpenShift using openshift/origin:v3.7.0 ...
-- Checking OpenShift client ... OK
@lance
lance / apply-resource.json
Created December 7, 2017 22:16
Results of running nodeshift on nodejs-rest-http and it's object of stuff that is returned. Filename denotes nodeshift command.
{
"resources": [
{
"apiVersion": "v1",
"kind": "DeploymentConfig",
"metadata": {
"name": "nodejs-rest-http",
"namespace": "myproject",
"labels": {
"project": "nodejs-rest-http",
@lance
lance / minishift-env.fish
Last active August 31, 2017 16:01
Using minishift commands to set up a development environment in fish shell
function minishift_oc_env
set -x PATH (command minishift oc-env | head -1 | cut -f2 -d\" | cut -f1 -d:) $PATH
end
function minishift_docker_env
for var in (command minishift docker-env)
set var (command echo $var | cut -f2 -d' ' | cut -f1,2 -d= | tr '=' '\n')
if test (count $var) -eq 2
set -g -x {$var[1]} (command echo $var[2] | tr -d '"')
end
@lance
lance / results.txt
Last active June 19, 2017 20:38
opossum rate limiting test
CircuitBreaker semaphore rate limiting
acquiring 1
acquired 0
acquiring 0
✖ should be truthy
-------------------
operator: ok
expected: true
// Not super helpful
> Error: Surprise!
at Timeout.foobar [as _onTimeout] (repl:2:7)
at ontimeout (timers.js:365:14)
at tryOnTimeout (timers.js:237:5)
at Timer.listOnTimeout (timers.js:207:5)
┌────────────────────┬─────────────────────────────────────┬────────┬────────┐
│ Function │ File │ Line │ Time │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ global.process.ne… │ /Users/lanceball/src/fidelity/lib/i │ 226 │ 23101 │
│ │ ndex.js │ │ │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ resolvePromise │ /Users/lanceball/src/fidelity/lib/i │ 185 │ 6862 │
│ │ ndex.js │ │ │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ transition │ /Users/lanceball/src/fidelity/lib/i │ 249 │ 6052 │
┌────────────────────┬─────────────────────────────────────┬────────┬────────┐
│ Function │ File │ Line │ Time │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ global.process.ne… │ /Users/lanceball/src/fidelity/lib/i │ 226 │ 23205 │
│ │ ndex.js │ │ │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ runner │ /Users/lanceball/src/fidelity/node_ │ 67 │ 20788 │
│ │ modules/bench/lib/bench.js │ │ │
├────────────────────┼─────────────────────────────────────┼────────┼────────┤
│ lap │ /Users/lanceball/src/fidelity/node_ │ 57 │ 9173 │