login | interactive | files |
---|---|---|
N | N | |
N | Y | $ENV |
Y | N | /etc/profile , ~/.profile |
Y | Y | /etc/profile , ~/.profile , $ENV |
This file contains 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
[root@headnode (barovia) ~]# cat /opt/custom/bin/update-all | |
#!/bin/bash | |
set -o errexit | |
set -o xtrace | |
imgadm vacuum -f | |
sdcadm update --all --just-images -y | |
sdcadm self-update --allow-major-update --latest |
This file contains 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 | |
# shellcheck disable=SC2154 | |
if [[ -n "$TRACE" ]]; then | |
export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' | |
set -o xtrace | |
fi | |
export PATH=/opt/pkg/bin:/opt/local/bin:/opt/custom/bin:$PATH |
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]) |
This file contains 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 |
See https://flask.readthedocs.org/en/0.1/quickstart/ for more.
import flask
app = flask.Flask(__name__)
@app.route('/')
def index():
This file contains 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 <brian.bennett@joyent.com> | |
# Inspired by | |
# http://znogger.blogspot.com/2010/05/solaris-automatic-creation-of-home-dirs.html |
This file contains 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 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 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 |