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++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"consul": "consul:8500", | |
"preStart": "/bin/reload-nginx.sh preStart", | |
"logging": { | |
"level": "DEBUG", | |
"format": "text" | |
}, | |
"services": [ | |
{ | |
"name": "nginx", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
DTrace Internals Deck https://www.bsdcan.org/2017/schedule/attachments/432_dtrace_internals.pdf
HISTORY OF SILICON VALLEY https://www.youtube.com/watch?v=ZTC_RxWN_xo&t=242s
Memory leak analysis http://docs.oracle.com/cd/E19205-01/820-4221/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OS level virtualisation is attracting a lot of attention at the moment. A list of the technologies is available here http://blog.aquasec.com/a-brief-history-of-containers-from-1970s-chroot-to-docker-2016
A far more detailed history of the formative years is available here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"> |