- create a new pool by first creating an empty partition space using
diskutilorDisk Utility
zpool status -v
| ; Copyright 2009-2015 RackTop Systems Inc. and/or its affiliates. | |
| ; http://www.racktopsystems.com | |
| ; | |
| ; The methods and techniques utilized herein are considered TRADE SECRETS | |
| ; and/or CONFIDENTIAL unless otherwise noted. REPRODUCTION or DISTRIBUTION | |
| ; is FORBIDDEN, in whole and/or in part, except by express written permission | |
| ; of RackTop Systems. | |
| ; | |
| ; @@DESCRIPTION@@ Configuration file for Netatalk -- Apple Filing Protocol. | |
| ; @@NAME@@ afp.conf |
| #! /usr/bin/env python | |
| from pykka.actor import Actor | |
| import pykka | |
| import urllib | |
| class Fetcher(Actor): | |
| def fetch(self, url): | |
| return urllib.urlopen(url).read() |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| Using pyCLI to create some commands and subcommands. |
| set -U fish_color_user magenta | |
| set -U fish_color_host yellow | |
| function fish_prompt --description 'Write out the prompt' | |
| set -l last_status $status | |
| # User | |
| set_color $fish_color_user | |
| printf (whoami) | |
| set_color normal |
| input { | |
| exec { | |
| type => "dstat" | |
| command => "dstat -cdngypms --nocolor 1 0" | |
| interval => 13 | |
| } | |
| exec { | |
| type => "apache-benchmark" |
| import time | |
| import socket | |
| def collect_metric(name, value, timestamp): | |
| sock = socket.socket() | |
| sock.connect( ("localhost", 2003) ) | |
| sock.send("%s %d %d\n" % (name, value, timestamp)) | |
| sock.close() | |
| def now(): | |
| int(time.time()) |