$ sudo vim /etc/wsl.conf
[network]
hostname = hogehoge
$ exit
> wsl --shutdown
> wsl
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 perl | |
#vim: ft=perl | |
# ----------------------------- | |
# 使い方 | |
# $ aws-profile-find [プロファイル名] | |
# プロファイル未指定・複数マッチの場合はプロファイル一覧を返します。 | |
# プロファイルが1つだけ見つかった場合は、AWS_DEFAULT_PROFILEのexport文を返します。 | |
# ----------------------------- | |
use strict; |
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
Wingetでよくインストールするアプリ | |
winget install Google.Chrome | |
winget install Mozilla.Firefox | |
winget install Microsoft.VisualStudioCode | |
winget install Microsoft.WindowsTerminal | |
winget install IrfanSkiljan.IrfanView | |
winget install 7zip.7zip | |
winget install Bitwarden.Bitwarden |
- WSL2はHyperVに依存するため、WindowsをESXiで動かす場合は「この仮想マシンでハイパーバイザーアプリケーションを有効にする」にしておく必要がある。
PowerShell 管理者モード
PS> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
PS> Enable-WindowsOptionalFeature -online -featurename VirtualMachinePlatform
PS> wsl --set-default-version 2
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
#!/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 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 |
sh -c 'sleep 1 && stty -f /dev/cu.usbmodem2211301 38400' &; cat /dev/cu.usbmodem2211301
- 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