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
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
@No9
No9 / iocage-meetup.md
Last active Apr 18, 2018
Some notes for the BSD Dublin Meetup 2017-04-20
View iocage-meetup.md
@No9
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:
# docs.serverless.com
@No9
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"/>
<single_instance/>
<dependency name="network" grouping="require_all" restart_on="refresh" type="service">
You can’t perform that action at this time.