Skip to content

Instantly share code, notes, and snippets.

Anton Whalley No9

Block or report user

Report or block No9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
No9 / pilot.json
Created Dec 23, 2018
Pilot Sample JSON
View pilot.json
"consul": "consul:8500",
"preStart": "/bin/ preStart",
"logging": {
"level": "DEBUG",
"format": "text"
"services": [
"name": "nginx",
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
# 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 /
Last active Jul 21, 2018
pkgin install
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 / 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 /
Created May 18, 2017

Scribble Pad for the May Meetup

No9 /
Last active May 9, 2017
consuld - a consul daemon config for freebsd
# $FreeBSD: releng/11.0/etc/rc.d/consuld 298514 2016-04-23 16:10:54Z lme $
# PROVIDE: consuld
# KEYWORD: shutdown
. /etc/rc.subr
No9 /
Last active Apr 18, 2018
Some notes for the BSD Dublin Meetup 2017-04-20
No9 / helloworld.yaml
Created Mar 14, 2017
serverless yaml template for em
View helloworld.yaml
# Welcome to Serverless!
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
# For full config options, check the docs:
No9 / sinopia-manifest.xml
Created Jul 2, 2016
Sample config for sinopia on openindiana
View sinopia-manifest.xml
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="sinopia">
<service name="site/sinopia" type="service" version="1">
<create_default_instance enabled="true"/>
<dependency name="network" grouping="require_all" restart_on="refresh" type="service">
You can’t perform that action at this time.