Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
Rusting with a slight chance of code

Anton Whalley No9

🦀
Rusting with a slight chance of code
View GitHub Profile
@No9
No9 / prereqs.md
Last active May 5, 2020
IBM Cloud Workshop - Pre-Reqs
View prereqs.md

Prerequisites

This lab assumes that the reader is familiar with basic Kubernetes concepts. See the IBM Cloud Kubernetes Service Lab for a refresher of these concepts.

Before you begin, you need to install the required CLIs to manage your Kubernetes clusters. IBM provides an installer here to get all of these tools together. There are instructions for how to obtain the tools manually if desired. The following tools are used in this lab:

  • kubectl CLI
    • kubectl is a command line interface for running commands against Kubernetes clusters.
@No9
No9 / install-cos-openshift.sh
Last active Mar 31, 2020
install-cos-openshift.sh
View install-cos-openshift.sh
#/bin/sh
# Default script for provisining a core dump handler environment.
# See: https://github.com/No9/ibm-core-dump-handler
# Assumes login of ibmcloud is already performed and helm v3 is installed on the local machine
# Change this clustername to install on the specific cluster or pass it with -c
# e.g. ./install-cos.sh -c kcdt-test-002
CLUSTER_NAME='kcdt-test-002'
@No9
No9 / install-cos.sh
Last active Mar 27, 2020
A script to provision and configure a cloud object store instance on IBM Cloud Kuberenetes Service
View install-cos.sh
#/bin/sh
# Default script for provisining a core dump handler environment.
# See: https://github.com/No9/ibm-core-dump-handler
# Assumes login of ibmcloud is already performed and helm v3 is installed on the local machine
# Change this clustername to install on the specific cluster or pass it with -c
# e.g. ./install-cos.sh -c kcdt-test-002
CLUSTER_NAME='kcdt-test-002'
@No9
No9 / pilot.json
Created Dec 23, 2018
Pilot Sample JSON
View pilot.json
{
"consul": "consul:8500",
"preStart": "/bin/reload-nginx.sh preStart",
"logging": {
"level": "DEBUG",
"format": "text"
},
"services": [
{
"name": "nginx",
@No9
No9 / blog
Last active Aug 27, 2018
A set of files to act as a template for running a PM2 job in a jail
View blog
#!/bin/sh
# PROVIDE: blog
# Save this into /usr/local/etc/rc.d/blog
# Make sure it's executable and validate with
# /usr/local/etc/rc.d/blog rcvar
# This will allow you to stop and start the service with:
# service blog restart
@No9
No9 / imgadm.md
Last active Jul 21, 2018
pkgin install
View imgadm.md
sudo pkgin install gmake
sudo pkgin install gcc5
sudo pkg install onbld  
sudo mv /usr/bin/make /usr/bin/smake                                    
sudo ln -s /usr/bin/gmake /usr/bin/make
sudo ln -s /usr/gnu/i386\-pc\-solaris2.11/bin/ar /usr/bin/ar 
sudo ln -s /usr/gnu/i386\-pc\-solaris2.11/bin/nm /usr/bin/nm 
sudo ln -s /opt/local/gcc5/bin/gcc /opt/local/bin/gcc
sudo ln -s /opt/local/gcc5/bin/g++ /opt/local/bin/g++   
@No9
No9 / index.js
Last active Jan 19, 2018
strong tls
View index.js
var https = require('https');
var cluster = require('cluster');
var express = require('express');
var fs = require('fs');
var shareTlsSessions = require('strong-cluster-tls-store');
if (cluster.isMaster) {
// Count the machine's CPUs
var cpuCount = require('os').cpus().length;
// Create a worker for each CPU
@No9
No9 / notes.md
Created May 18, 2017
BSD-Dublin-2017-05-18-Capsicum
View notes.md

Scribble Pad for the May Meetup

@No9
No9 / consuld.sh
Last active May 9, 2017
consuld - a consul daemon config for freebsd
View consuld.sh
#!/bin/sh
#
# $FreeBSD: releng/11.0/etc/rc.d/consuld 298514 2016-04-23 16:10:54Z lme $
#
# PROVIDE: consuld
# REQUIRE: LOGIN FILESYSTEMS
# KEYWORD: shutdown
. /etc/rc.subr
You can’t perform that action at this time.