Skip to content

Instantly share code, notes, and snippets.

View marshall007's full-sized avatar

Marshall Cottrell marshall007

View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
annotations:
k8s.appdat.jsc.nasa.gov/gatekeeper: enabled
spec:
selector:
matchLabels:
app.kubernetes.io/component: app
@marshall007
marshall007 / base.kustomization.yaml
Last active July 9, 2021 15:54
kustomize v4.2.0 - failing replacements tests
namespace: base
configMapGenerator:
- name: blue
- name: red
replacements:
- source:
name: blue
fieldPath: metadata.namespace
@marshall007
marshall007 / Dockerfile
Created February 21, 2019 18:06
Postgres 11 Alpine (postgraphile v4.4.0 live queries)
FROM postgres:11-alpine
ENV WAL2JSON_COMMIT_ID=7360b1e8ddfaa5e0c033a084241885587056c674
# Compile the wal2json plugin from sources and install it
RUN apk --update add --virtual build-dependencies build-base git openssh \
&& git clone https://github.com/eulerto/wal2json -b master --single-branch \
&& cd /wal2json \
&& git checkout $WAL2JSON_COMMIT_ID \
&& USE_PGXS=1 make && USE_PGXS=1 make install \

Keybase proof

I hereby claim:

  • I am marshall007 on github.
  • I am marshall007 (https://keybase.io/marshall007) on keybase.
  • I have a public key ASATeVArGTkpsbdL_7cEb4ldpdYeiDvkPEX6pKZiS2DkVwo

To claim this, I am signing this object:

@marshall007
marshall007 / a_hello_world.md
Created January 5, 2018 06:30
A Hello World (A Whole New World)

This is my refactoring of A Whole New World, dedicated to @MikeFielden who will one day share my love for TypeScript.

I can show you `hello_world`
Shiny, shim'd, ts-linted
Tell me, **@Mike_Fielden**, now when did
You last let your autocomplete decide!

I can open your `vi`s
Take you caller by caller
1 [0xd65a40]: backtrace_t::backtrace_t() at backtrace.cc:221 (discriminator 1)
2 [0xd65da0]: format_backtrace(bool) at backtrace.cc:330
3 [0xd736b3]: report_fatal_error(char const*, int, char const*, ...) at errors.cc:85
4 [0x81d0c3]: linux_thread_pool_t::fatal_signal_handler(int, siginfo_t*, void*) at thread_pool.cc:369
5 [0x7f2be7c6b100]: /lib64/libpthread.so.0(+0xf100) [0x7f2be7c6b100] at 0x7f2be7c6b100 (/lib64/libpthread.so.0)
6 [0xb4e52f]: ql::env_t::do_eval_callback() at env.cc:29
7 [0xc3e7b8]: ql::runtime_term_t::eval_on_current_stack(ql::scope_env_t*, ql::eval_flags_t) const at term.cc:265
8 [0xc3ebaf]: ql::runtime_term_t::eval(ql::scope_env_t*, ql::eval_flags_t) const at term.cc:299
9 [0xcef441]: ql::reql_func_t::call(ql::env_t*, std::vector<ql::datum_t, std::allocator<ql::datum_t> > const&, ql::eval_flags_t) const at datum.hpp:110
10 [0xceeea2]: ql::func_t::call(ql::env_t*, ql::datum_t, ql::eval_flags_t) const at func.cc:26 (discriminator 2)
@marshall007
marshall007 / .block
Created August 12, 2016 06:15 — forked from rdpoor/.block
Modifying a Force Layout (with comments)
license: gpl-3.0
@marshall007
marshall007 / bootstrap.coffee
Last active August 29, 2015 14:13
Execute Selectivizr polyfills dynamically on every `$digest` cycle
# NWMatcher.js
# Load only in IE8-
# //cdnjs.cloudflare.com/ajax/libs/nwmatcher/1.2.5/nwmatcher.js
app.run [
'$rootScope', '$rootElement', '$timeout'
($rootScope, $rootElement, $timeout) ->
return if not NW? # don't add any watchers if our browser doesn't suck
selectivize = ->
@marshall007
marshall007 / profile.js
Created September 10, 2014 03:09
/api1/angular/profile.js?module=app.profile
var module = angular.module('app.profile', []);
module.constant('PROFILE', {
"id": "daa30ea387bf46ada316a09300cfc3cc",
"roles": [ ... ],
"firstName": "...",
"lastName": "...",
"title": "...",
"email": "...",
"vendors": [ ... ],
...
r.table('orders').indexCreate('ordered', function (row) {
return [ row('dateOrdered'), row('labCode'), row('bucketId') ];
})
// works
r.table('orders').between(
[ r.time(2014, 1, 1, 'Z'), '', 'efbe740b-3fb8-496d-894e-a2f100228af4' ],
[ r.time(2014, 6, 30, 'Z'), 'Z', 'efbe740b-3fb8-496d-894e-a2f100228af4' ],
{ index: 'ordered' }
)