2021-01-01から1年間の記事一覧

windows - 計測

# cpu 10秒単位 > typeperf -si 10 "\processor(_total)\% processor time" # ファイルへ出力 > typeperf -si 10 -y "\processor(_total)\% processor time" -o d:\temp\process_log.csv # メモリ空き容量(10秒単位) > typeperf -si 10 "\Memory\Available…

powershell - Test-Path

mtgpowershell.blogspot.com social.technet.microsoft.com

powershell - 並列処理

直列 $job1 = Start-job -ScriptBlock { Get-Service | out-null; $ret=@{} $ret.Add("status", "finish-job1"); return $ret; } $job2 = Start-job -ScriptBlock { Get-Service | out-null; $ret=@{} $ret.Add("status", "finish-job2"); return $ret; } Ge…

powershell - パスワードファイルを使ってログイン

blog.macorin.net www.lifewithunix.jp qiita.com www.kayura-se.com

powershell - モジュールの読み込み

qiita.com 基本的にはドットソース演算子を利用ですかね。

powershell - vscodeデバッグ

blog.janjan.net

powershell - 関数の戻り値

winscript.jp

powershell - カスタムオブジェクト

www.vwnet.jp function CreateCustomObject() { $data = New-Object PSObject | Select-Object one, two, three; return $data } $datas = @() $o1 = CreateCustomObject $o1.one = "a1" $o1.two= "b1" $o1.three= "c1" $datas += $o1; $o2 = CreateCustomOb…

powershell - Read-Host

soma-engineering.com [ValidateSet("y","n")] $res= Read-Host "ok?(y or n)" Write-Host $res

powershell - help

> Get-Help Get-ChildItem -detailed #> help Get-ChildItem 名前 Get-ChildItem 構文 Get-ChildItem [[-Path] <string[]>] [[-Filter] <string>] [<CommonParameters>] Get-ChildItem [[-Filter] <string>] [<CommonParameters>] パラメーター -Attributes <FlagsExpression[FileAttributes]> -Depth <uint32> -Directory -Exclude <…</uint32></flagsexpression[fileattributes]></commonparameters></string></commonparameters></string></string[]>

powershell - Format-Table 出力の改善(AutoSize,Wrap)

Get-Service -Name win* | Format-Table -Property Name,Status,StartType,DisplayName,DependentServices -Wrap Name Status StartType DisplayName DependentServices ---- ------ --------- ----------- ----------------- WinDefend Stopped Manual Micr…

powershell - 詳細情報

docs.microsoft.com Get-Process -Name explorer | Where-Object{$_.id -eq 9964} | Format-List -Property * Name : explorer Id : 9964 PriorityClass : Normal FileVersion : 10.0.22000.258 (WinBuild.160101.0800) HandleCount : 4724 WorkingSet : 381…

powershell - フォーマット

docs.microsoft.com

powershell - オブジェクトの構造

docs.microsoft.com

powershell - NoProfile パラメーター

docs.microsoft.com ja.gouma.org

bat - 日付

@echo off rem 本日 FOR /F "usebackq delims=" %%a in (`powershell "(get-date).ToString(\"yyyy/MM/dd\")"`) do Set TODAY=%%a echo %TODAY% rem 本日9時 setlocal set command=`powershell "[DateTime]::Today.AddHours(9).ToString('yyyy-MM-dd HH:mm:s…

powershell - bat

@echo off echo bat start rem powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 -startTime '2012/12/1 13:00:00' -endTime '2012/12/2 15:00:00' powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 echo bat finish! press…

powershell - デフォルトパラメータ

Param( # 先頭行でないとエラー $startTime = [DateTime]::Today.AddHours(-15), # 前日9時 $endTime = [DateTime]::Today.AddHours(9), # 本日9時 $thresholdValue = 10 ) echo "startTime: $startTime" echo "endTime: $endTime" echo "thresholdValue: $t…

タスクスケジューラ

技術メモメモ: タスクスケジューラーを使って1分間隔で実行するタスクを作成する方法 起動バッチ @echo off powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1 exit hina.ps1 $time = get-random -minimum 1 -maximum 5; Write-Host "wait ti…

tslint - rule 参考

gist.github.com

vue.js - select

vue-select.org bootstrap-vue.org

vscode - extensions

ihatetomatoes.net github.com

TypeScript - eslint

tech.ga-tech.co.jp

vue.js - key

iwb.jp

vscode - マルチカーソル参考

qiita.com

d3.js - ref

ajike.github.io www.willstyle.co.jp

d3.js - api

www.finddevguides.com

d3.js / c3.js

wizardace.com qiita.com www.uosansatox.biz

dependency-cruiser

github.com github.com

async/await

qiita.com www.tohoho-web.com rightcode.co.jp