> triton -p west1 services
NAME ENDPOINT
cmon https://cmon.us-west-1.triton.zone:9163
docker tcp://us-west-1.docker.joyent.com:2376
> triton -p west1 services -j
{"docker":"tcp://us-west-1.docker.joyent.com:2376","cmon":"https://cmon.us-west-1.triton.zone:9163"}
> triton -p west1 services -j | json
{
"docker": "tcp://us-west-1.docker.joyent.com:2376",
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/bash -x | |
set -o pipefail | |
api_v="1.21" | |
call_docker() { | |
local uuid=$(uuid) | |
/opt/pkg/bin/curl -k -si \ | |
--cert ${DOCKER_CERT_PATH}/cert.pem \ |
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
# include this file from nginx.conf inside the http stanza. | |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
server_name adminui.example.com; | |
access_log /var/log/nginx/adminui.access.log bunyan; | |
error_log /var/log/nginx/adminui.error.log; |
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
#!/usr/bin/env python2.7 | |
# Matt's DNS management tool | |
# Manage DNS using DDNS features | |
# | |
# See http://planetfoo.org/blog/archive/2012/01/24/a-better-nsupdate/ | |
# | |
# Usage: dnsupdate -s server -k key -t ttl add _minecraft._tcp.mc.example.com SRV 0 0 25566 mc.example.com. | |
# -h HELP! | |
# -s the server | |
# -k the key |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
NAME STATE READ WRITE CKSUM | |
zones ONLINE 0 0 0 | |
mirror-0 ONLINE 0 0 0 | |
c10t01d0 ONLINE 0 0 0 | |
c11t01d0 ONLINE 0 0 0 | |
mirror-1 ONLINE 0 0 0 | |
c1t05d0 ONLINE 0 0 0 | |
c2t0Dd0 ONLINE 0 0 0 | |
mirror-2 ONLINE 0 0 0 | |
c3t09d0 ONLINE 0 0 0 |
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/bash | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
# | |
# Copyright 2018 Brian Bennett <[email protected]> | |
# Inspired by | |
# http://znogger.blogspot.com/2010/05/solaris-automatic-creation-of-home-dirs.html |
See https://flask.readthedocs.org/en/0.1/quickstart/ for more.
import flask
app = flask.Flask(__name__)
@app.route('/')
def index():
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/bash | |
set -o errexit | |
set -o pipefail | |
if [[ -n "$TRACE" ]]; then | |
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
set -o xtrace | |
fi |
pkg | why |
---|---|
dnstracer | not available |
fortune | not available |
ghc | not available on mac |
hping | out of date (pkgsrc==hping2, brew==hping3) |
nagios-plugins | does not compile on mac. Maybe brew patch(es) can be used? |
shunit2 | not available |
tcpflow | out of date (pkgrsc==0.21, brew==1.4); depends on dfxml which does not compile on smartos due to missing MAP_FILE ([tcpflow#91)[simsong/tcpflow#91]) |