"It's not what you can do, it's what you can get done."

Saturday, December 23, 2017

mac (home)brew command completion

Been missing this in my life:

Found via poking at the "triton completion" command.

(Don't forget to "source ~/.bash_profile" or equivalent. .bash_profile for me on OSX 10.12.)

Wednesday, December 6, 2017

Two things that need more exposure: The heir apparent to NTP (the old codebase was a mess with many barriers to contributors, leading to many of the security issues allowing DDoS attacks)


NTPsec is a secure, hardened, and improved implementation of Network Time Protocol derived from NTP Classic, Dave Mills’s original.
NTPsec, as its name implies, is a more secure NTP. Our goal is to deliver code that can be used with confidence in deployments with the most stringent security, availability, and assurance requirements.

Which is partly supported by the Internet Civil Engineering Institute: (icei.org)

Which leads to their "New Guard" program for mentoring younger programmers on infrastructure software: (icei.org/newguard/)

Something funny happened a few years ago. Google came out with a feature by which a user can have his or her account turned over to a third party after a certain period of inactivity, to essentially will it to someone . A few infrastructure devs set their accounts to go to me.
"Why?" I asked. "Why me instead of your co-developer, children, or spouse?"
"You", they answered, "Are the only one of us under 30".

Thursday, November 23, 2017

Glue system/util/thing I love - Pashua - Quick Scripting of Mac dialog windows.

Mac-only: This one has a soft spot in my heart as I used it many years ago for adding a menu and rudimentary password protection to Netboot Deployments. (I could netboot and deploy our custom MacOS9 ASR image in under 10 minutes over 100MBit, if I recall correctly.) To my delight, I discovered it's still being maintained!

Pashua  (https://www.bluem.net/en/projects/pashua/) provides a pretty simple way of scripting dialog boxes, takes input, and send it back. Currently it has bindings for AppleScript, Shell, JavaScript for Automation (JXA), Perl, PHP, Python (even Python3!), Rexx (?!?), Ruby and Tcl.

Thursday, August 10, 2017

Thursday, March 2, 2017

Compiling sysbench on WSL and SmartOS

As I noted in https://github.com/akopytov/sysbench/issues/102
( joyent_20161013T025521Z) in a native zone (base-64-lts 16.4.0), required:

#pkgin install automake make gcc libtool gcc49 pkg-config gmake

Windows Subsystem for Linux:
Current Windows 10 Pro (1607, build 14393.693).

Already had GCC installed and who knows what else, needed packages:
apt-get install autoconf libtool pkg-config libmysqlclient-dev

Both of these are using current from a straight "git clone https://github.com/akopytov/sysbench.git",
 version is "sysbench 1.1.0-2343e4b (using bundled LuaJIT 2.1.0-beta2)". I've just tried CPU test as a quick sanity check for now.

So thank you to whoever did the configure/make scripts in such a way as to be more portable. (Probably for supporting Oracle/Solaris back in the day.)

Monday, November 14, 2016

SmartOS native zone rename

SmartOS hostname rename:

(from Bob to Alice)

vmadm get 12345678-e0fa-c099-b6f0-ead8e357826d | grep bob
"alias": "bob",
  "hostname": "bob-server",
vmadm update 12345678-e0fa-c099-b6f0-ead8e357826d hostname=alice-server
vmadm update 12345678-e0fa-c099-b6f0-ead8e357826d alias=alice

To actually rename, within the zone, edit:

/etc/hostname.[interface]  (e.g. /etc/hostname.net0)

Thursday, September 15, 2016

Solaris(h) OS link love

I'm picking my way through the "Solarish" and BSD world, looking for something cleaner than Linux, but with ZFS/DTRACE goodness, and has to support both OS virtualization (probably KVM) and containers. (Docker support is a bonus.) For myself and to bump those google scores up oh-so-slightly so that others might find them: