クライアントOSとsshにて通信したいが、ネットがない状態での接続ができないのは許容できないので。
とりあえずネットワークアダプタを2つ用意することで対応できたので備忘。
初期のネットワークをprivate networkとして、追加ネットワークアダプタを Internet Sharingとして設定
#!/bin/sh | |
# Example script for removing a Maildir from a Courier-IMAP virtual mail | |
# hierarchy. | |
# The script looks at arguments 1 and 2, assuming that they | |
# indicate username and domain, respectively. | |
# The script will not actually delete the maildir. I moves it | |
# to a special directory which may once in a while be cleaned up |
#!/bin/sh | |
# Example script for removing a Maildir domain top-level folder | |
# from a Courier-IMAP virtual mail hierarchy. | |
# The script only looks at argument 1, assuming that it | |
# indicates the relative name of a domain, such as | |
# "somedomain.com". If $basedir/somedomain.com exists, it will | |
# be removed. |
require 'openssl' | |
require 'base64' | |
# 以下は自分で作ったテスト用鍵(password:test) | |
key = "-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5FXW2ILwLtuzTZyftaBX | |
47C5kvQk0q+qBB8iuTOoJawrgE5lzspDYJSwA8fPtbzAdxooNUTMdyv6SVWj1vH2 | |
SWP3M0KH9LzyQJlxoS03GoRpw8XHNWZr5+JClcBEuUiAp09B9pLR3i+kX4vzc1+z | |
1LRLCwBLq8BiL+lSf1mDNrMKi8pSzsYHk1TTPeQuRjCRip6rQFvr1Gllj+ZrCir4 | |
q3z77/7xbE23JdbqB9wmXUhKHcIlO5nwVnczkdz0d6OL4vU7F9feRoMGDXCKq7ZZ |
# https://github.com/alloy/terminal-notifier | |
# | |
# via. | |
# https://github.com/kern/minitest-reporters/blob/master/lib/minitest/reporters/base_reporter.rb | |
module Minitest | |
module Reporters | |
class NotificationReporter < Minitest::StatisticsReporter | |
attr_accessor :tests |
require 'diff/lcs' | |
require 'diff/lcs/string' | |
require 'digest/md5' | |
require 'fileutils' | |
require 'shellwords' | |
@project_name = "hogehoge" | |
watch( 'test/test_.*\.rb' ) {|md| system("rake test") } |
# | |
# # install phantomjs | |
# | |
# * https://bitbucket.org/ariya/phantomjs/downloads # simply use binary! | |
# * brew install phantomjs | |
# | |
# # Gemfile | |
# | |
# source 'https://rubygems.org' | |
# |
# ソフトウェアアップデートを実行 | |
# | |
# ライセンスが karamunode app storeから入れるmono | |
# | |
# * witch | |
# * 1password | |
# | |
# # witch | |
# | |
# command-tabに設定するにはまずはtabを設定してみてからその後command-tabに設定するとうまく行った、、、、 |