Skip to content

Instantly share code, notes, and snippets.

View AlexGilleran's full-sized avatar
🤖
recharge work recharge work walk home recharge shut-down reboot repeat

Alex Gilleran AlexGilleran

🤖
recharge work recharge work walk home recharge shut-down reboot repeat
View GitHub Profile
name ring quadrant isNew description
Dataloader Hold Technologies FALSE
Mock Service Worker Adopt Technologies TRUE
Jest Preview Trial Tools TRUE
SUI Adopt Technologies FALSE
NX Assess Tools TRUE
Vue3 Assess Languages and Frameworks TRUE
Progress Web Application Assess Technologies TRUE
Fake Siteminder Assess Tools TRUE
Non-Batman Release Managers Trial Techniques TRUE
@AlexGilleran
AlexGilleran / helm_deployment_migration.sh
Created April 24, 2020 06:07 — forked from t83714/helm_deployment_migration.sh
Fixed it to work on Linux with GNU sed / GNU base64
#!/usr/bin/env bash
#
# This script ports deployed Helm v2 Packages from k8s API v1.15 to 1.16
#
# When upgrading K8s clusters to a new minor API version it is possible that
# already deprecated API Endpoints are removed e.g.,
# extensions/v1beta1/DaemonSet
# K8s handles this transparently for already deployed ressources from the
# deprecated paths, making them available via their new API. They are no longer
# available through the removed paths though.

Magda

Contributor License Agreement ("Agreement") v1.0.0

Thank you for your interest in the Magda open source Project which is being administered by CSIRO Data61. This document describes the terms under which You may contribute software, bug fixes, configuration changes, documentation, or any other materials that you send to Us related to the Project (each a "Contribution") to the Project. This contributor license agreement ("Agreement") documents the rights granted by You to Us with respect to your Contributions.

Once agreed, these terms apply not only to your initial Contribution but also to all past Contributions and subsequent Contributions by You to the Project, unless we change the terms. When we change the terms, you will be asked to sign the new version of the agreement the next time you contribute.

We appreciate your participation in our Project, and your help in improving the Project, so we want you to understand what will be done with the Contributions. This license is for your protect

@AlexGilleran
AlexGilleran / index.ts
Created August 28, 2017 06:39
Wait for a job to be deleted by godaddy/kubernetes-client as a promise
function waitForDelete() {
return new Promise((resolve, reject) => {
const stream = batchApi.ns.jobs.getStream({ qs: { watch: true } });
const jsonStream = new JSONStream();
stream.pipe(jsonStream);
const onError = (error: Error) => reject(error);
const onData = (res: any) => {
if (res.type === "DELETED") {
jsonStream.removeListener("error", onError);
@AlexGilleran
AlexGilleran / deferred.ts
Created August 21, 2017 01:20
Typescript Deferred
export default class Deferred<T> {
promise: Promise<T>;
resolve: (value?: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
constructor() {
this.promise = new Promise((resolve, reject) => {
this.resolve = resolve;
this.reject = reject;
});