Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Machine, learning ...

mrchainhead chainhead

💭
Machine, learning ...
View GitHub Profile
@chainhead
chainhead / 0-intro.md
Last active Sep 24, 2020
Getting git credentials from AWS Systems Manager
View 0-intro.md

Introduction

This is a short description of how to get git credentials in an EC2 instance set-up for CI/CD scripts. In the following scripts, we do the following:

  • Install the AWS CLI. See here for description of steps on Linux.
  • Install jq to parse the JSON output from CLI.
  • Run the aws CLI for ssm (AWS Systems Manager) to extract parameter values for git user.
  • Set the git user name globally.
  • Set the name of the script in GIT_ASKPASS that will return the git password.
@chainhead
chainhead / keycloak-setup.md
Created May 2, 2020
Setting up Keycloak server
View keycloak-setup.md
@chainhead
chainhead / 0-intro.md
Last active Mar 24, 2020
MQTT and Server Sent Events with NodeJs
View 0-intro.md

Introduction

This gist describes an MQTT client writing sensor data to an Server Sent Events (SSE) end-point.

Getting started

git clone https://gist.github.com/chainhead/715e48a2f157e2bfe3f012f587f8bf5b
npm i express mqtt
node server.js
@chainhead
chainhead / cert-manager.md
Last active Dec 25, 2019
Using cert-manager
View cert-manager.md
View openshift-nodes.md

Introduction

This file documents the steps I followed to create and deploy an application to an OpenShift cluster. These instructions have been gathered after much trials and tribulations on maxcOS Mojave - YMMV.

Installation - minishift

Since this is an educational exercise, I used minishift - an OpenShift cluster that is just enough to get started. To work with minishift, a CLI tool oc is also installed.

Pre-requisites

You can’t perform that action at this time.