sh -c 'sleep 1 && stty -f /dev/cu.usbmodem2211301 38400' &; cat /dev/cu.usbmodem2211301
This file contains hidden or 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
#!/bin/bash | |
set -eu | |
# 事前に名前付きプロファイルとして aws config --profile=プロファイル で登録しておく | |
# aws sts get-caller-identity でアカウントナンバー(Account)を確認する | |
BASE_PROFILE="プロファイル" | |
MFA_ACCOUNT_ID="AWSアカウントナンバー" | |
MFA_USERNAME="IAMユーザ名" |
This file contains hidden or 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
# シリアルポート | |
AR_PORT=/dev/cu.usbmodem2211301 | |
# スケッチ | |
AR_SKETCH=app | |
# Arduino Nano Every | |
AR_FQBN=arduino:megaavr:nona4809 | |
upload: build/$(AR_SKETCH).ino.hex |
- https://grpc.io/docs/languages/go/quickstart/
- https://github.com/grpc/grpc-go/tree/master/examples/helloworld
protocのインストール
$ mkdir protoc
$ cd protoc
$ curl -o protoc.zip -L https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-osx-x86_64.zip
こちら にまとめてあります
bash
$ curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
$ echo 'export PATH=$HOME/bin:$PATH' >> $HOME/.bashrc
$ exec $SHELL
ESXiで仮想マシンをクローンする例
- vmware ESXi 7.0
- データストアはdatastore1
- debian10からdebian10-1 にコピーする
- ディスクは1つ、EFIによるインストール
- thinプロビジョニングに変更
ESXiのSSHコンソールにログインして作業を行う
This file contains hidden or 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 perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Getopt::Std; | |
use feature 'say'; | |
binmode STDIN,":utf8"; | |
binmode STDOUT,":utf8"; | |
my %opt; |
This file contains hidden or 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 perl | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use Time::HiRes 'usleep'; | |
sub get_cpu_stat { | |
my $stat=''; | |
open(my $fh,'<','/proc/stat') || die $!; | |
local $/; $stat=<$fh>; |