Instructions for building a NetBSD VM
vmadm create < netbsd-install.json
vmadm list
zoneuuid=...
cp NetBSD-6.0-amd64.iso /zones/$zoneuuid/root/netbsd.iso
vmadm boot $zoneuuid order=cd,once=d cdrom=/netbsd.iso,ide
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
) | |
const privateKey = `content of id_rsa` |
# Wanelo Universal Bootstrap Script (W.U.B.S.) | |
bash -c ' | |
# Linux Distros: | |
if [ $(uname -s | grep Linux) ]; then | |
true && curl -s -L https://www.opscode.com/chef/install.sh | bash | |
# Illumos Distros: | |
elif [ $(uname -s | grep SunOS) ]; then |
{ | |
"Statement": [ | |
{ | |
"Sid": "PackerSecurityGroupAccess", | |
"Action": [ | |
"ec2:CreateSecurityGroup", | |
"ec2:DeleteSecurityGroup", | |
"ec2:DescribeSecurityGroups", | |
"ec2:AuthorizeSecurityGroupIngress", | |
"ec2:RevokeSecurityGroupIngress" |
Date: Wed, 2 Jul 2014 20:07:53 +0100 | |
From: Jonathan Perkin <jperkin@joyent.com> | |
To: smartos-discuss@lists.smartos.org | |
Subject: Tools package set now available | |
Message-ID: <20140702190753.GB77263@joyent.com> | |
User-Agent: Mutt/1.5.23 (2014-03-12) | |
Hi all, | |
A while back we discussed providing a separate bootstrap and package |
1. On a phone that's still working: | |
mount -o subvolid=0 /dev/mmcblk0p28 /mnt/ | |
2. On a Linux laptop: | |
ssh jolla tar c /mnt/factory-@ >factory.tar | |
ssh jolla tar c /mnt/factory-@home >factory-home.tar | |
3. On the working phone again: | |
umount /mnt |
ikev2 "inet" passive ipcomp esp \ | |
from 0.0.0.0/0 to 10.0.1.0/24 \ | |
from 10.0.0.0/24 to 10.0.1.0/24 \ | |
local egress peer any \ | |
srcid egress \ | |
psk "strong-password" \ | |
config protected-subnet 0.0.0.0/0 \ | |
config address 10.0.1.0/24 \ | |
config name-server 10.0.0.1 \ | |
tag IKED |
I wanted to be able to detect when Dark mode was turned on or off in my Go program so I can swap icons in my tray app, but the Apple-blessed methods all use Swift and ObjectiveC. To work around this I figured out the following:
// Dark Mode On
defaults read -g AppleInterfaceStyle
Dark
This note details the changes made to the Zen and ZMK codebase to improve the experience of e-ink displays.
You can test out below changes using your Zen config repo by modifying your config/west.yml
file, following ZMK instructions:
manifest:
remotes:
- name: caksoylar