| login | interactive | files |
|---|---|---|
| N | N | |
| N | Y | $ENV |
| Y | N | /etc/profile, ~/.profile |
| Y | Y | /etc/profile, ~/.profile, $ENV |
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 | |
| # dnssd-register.sh -- Register common services for SmartOS | |
| # | |
| # This is really only useful for people who run SmartOS on a LAN segment | |
| # with workstations. E.g., your house. | |
| # | |
| # This script scans for common locally listening services and registers | |
| # them with mDNS/DNS-SD/Bonjour. | |
| # |
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 | |
| if [[ -z $1 ]]; then | |
| printf 'Must supply a path\n' | |
| exit 1 | |
| fi | |
| # We want to advertise a consistent volume UUID that will survive reprovisions. | |
| zone_uuid=$(zonename) | |
| bonjour_name="$(hostname -s).local" |
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 | |
| # 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 |
This error is somewhat ambiguious because there is seemingly no indication which resource is exhausted.
Triton chooses compute nodes with a subcomponent called sdc-designation (also refered to as , DAPI). The full DAPI log for a provision job is embedded in the CNAPI log file and can be extracted with the workflow job uuid.
Note: The script below is no longer necessary because cnapi now includes /opt/smartdc/cnapi/bin/alloc-reasons.sh which does the same thing.
#!/bin/bash
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 https://mozilla.org/MPL/2.0/. | |
| # Copyright 2014 Brian Bennett | |
| if [[ -n "$TRACE" ]]; then | |
| export PS4='[\D{%FT%TZ}] ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[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
| [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 |
Useful but not complete: https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Illumos
pkgin up
pkgin in build-essential ghc
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
| $ echo quote what? ; read quoteme ; printf %q "$quoteme" ; echo | |
| quote what? | |
| The horse said "$)#*@(!!%" when he stubbed his hoof. | |
| The\ horse\ said\ \"\$\)#\*@\(\!\!%\"\ when\ he\ stubbed\ his\ hoof. | |
| $ |
NewerOlder