https://checkertechmemo.blogspot.com/2019/05/redmine-redminerest-api-redmine-param.html https://redmine.tokyo/issues/318
Azure Cli VM操作メモ
vm開始
az vm start --name myVmMachine --resource-group myResourceGroupvm停止&割り当て解除
az vm stop --name myVmMachine --resource-group myResourceGroup
az vm deallocate --name myVmMachine --resource-group myResourceGroupvm状態取得
az vm show --resource-group myResourceGroup --name myVmMachinevm状態取得
az vm get-instance-view --name myVmMachine --resource-group myResourceGroup --query instanceView.statuses[1] --output tablevm状態取得(状態のみ)
az vm get-instance-view --name myVmMachine --resource-group myResourceGroup --query instanceView.statuses[1].codevm状態取得(状態を取得して結果を変数に格納)
$state = az vm get-instance-view --name myVmMachine --resource-group myResourceGroup --query instanceView.statuses[1].codeIPアドレス取得
az vm list-ip-addresses --resource-group myResourceGroup --name myVmMachine --output tableIPアドレス取得(パブリックIPのみ)
az vm list-ip-addresses --resource-group myResourceGroup --name myVmMachine --query publicIpIPアドレス取得(パブリックIPのみ + "なし)
az vm show -d --resource-group myResourceGroup --name myVmMachine --query publicIps -o tsvIPアドレス取得(プライベートIPのみ + "なし)
az vm show -d --resource-group myResourceGroup --name myVmMachine --query privateIps -o tsv
Windows/Macの画面キャプチャ方法
目的
今まで、PCの画面キャプチャは、PrintScreenコマンドとペイントソフトで頑張っていましたが、効率的にキャプチャ出来るようにと思い、Windows/Macでショートカットを整理してみました。
デフォルトのスクリーンショットの保存先
Windows
- ピクチャフォルダ配下
(xxxx)
Mac
- デスクトップ配下
(/Users/ユーザ名/Desktop/配下)
ショートカット
通番 | 機能 | Windows | Mac |
---|---|---|---|
1 | 画面全体のスクリーンショットを保存 | Windows + PrintScreen |command【⌘】 + shift + 3 | |
2 | 画面全体のスクリーンショットをクリップボードへコピー | PrintScreen | control + command【⌘】 + shift + + 3 | |
3 | ウィンドウ画面単位で保存 | ????? | 1.command【⌘】 + shift + 4 ↓ 2.spaceキー ↓ 3.ウィンドゥを選択 |
|
4 | ウィンドウ画面単位でクリップボードへコピー | ????? | 1.control + command【⌘】 + shift + 4 ↓ 2.spaceキー ↓ 3.ウィンドゥを選択 |
|
5 | アクティブなウィンドウ画面の保存 | ????? |※通番5と同じ手順 | |
6 | アクティブなウィンドウ画面をクリップボードへコピー | Alt + Windows |※通番6と同じ手順 | |
7 | 範囲を選択して保存 | ??? |1.command【⌘】 + shift + 4 ↓ 2.ウィンドゥを選択 |
|
8 | 範囲を選択してスクリーンショットをクリップボードへコピー | Windows + shift + s |1.control + command【⌘】 + shift + 4 ↓ 2.ウィンドゥを選択 |
保存先を変更
Windowsの場合
Macの場合
- command【⌘】 + space でspotlightを表示
- terminalかターミナルを入力して、ターミナル画面を表示
- ターミナル画面で以下のコマンドを入力 例)格納先をPicturesフォルダ配下に格納する場合
$ defaults write com.apple.screencapture location ~/Pictures/ $ killall SystemUIServer