- Create 5GB FreeBSD image.
- Install FreeBSD on xhyve.
- Mount host directory.
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
sudo yum install yum-utils | |
sudo yum-config-manager --add-repo https://pkgs.tailscale.com/stable/amazon-linux/2/tailscale.repo | |
sudo yum install tailscale | |
sudo systemctl enable --now tailscaled | |
sudo tailscale up | |
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf | |
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -p /etc/sysctl.conf | |
sudo tailscale up --advertise-exit-node |
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
po String.init(data: response.data!, encoding: NSUTF8StringEncoding) |
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 python | |
# -*- coding: utf-8 -*- | |
import click | |
@click.command() | |
@click.option('--outfile', '-o') | |
@click.argument('src') | |
def fetch(outfile, src): | |
import requests |
$ brew cask install vagrant
==> Downloading https://releases.hashicorp.com/vagrant/1.8.7/vagrant_1.8.7.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask vagrant
==> Running installer for vagrant; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
==> installer: Package name is Vagrant
$ brew install rbenv
$ brew install ruby-build
$ brew install rbenv-gemset
$ brew install xcproj
$ rbenv install -l
$ rbenv install 2.3.1
$ rbenv versions
$ rbenv shell system
$ rbenv shell 2.3.1
I hereby claim:
- I am tanb on github.
- I am tanb (https://keybase.io/tanb) on keybase.
- I have a public key whose fingerprint is D854 BC00 7352 C128 8FCB 4536 5825 714E 2349 64DC
To claim this, I am signing this object:
- Task typeを返す非同期メソッドを呼び出す
- 非同期処理の戻り値はTaskクラスのResultにセットされる.awaitがそれを返している.
- 非同期処理が終了するとawait以降のコードに処理が戻る
// これと
var worker = await TplWorker.DoWorkAsync();
ShowResult(worker);
NewerOlder