qshinoの日記

Powershell関係と徒然なこと

ウマ娘、ゴールドシチー育成

指向性

中距離差し

特性

成長率、8%, 0%, 8%,0,14%

ターゲットステ 1200, 750, 900, 400, 800=4000 1200,750,800,400,600=3750 1100,750,800,400,500=3550

目標因子、スタミナ3, パワー3 スタ63, 63

実績2/試行中

デッキ、スピ3, 賢さ2,理子 因子、スピ12, スタ63, パワー42

  • 予想、1200, 740, 810, 425, 742
  • 目標、1200, 800, 900, 400, 900

静かな呼吸、コーナ回復、直線回復。

実績1

スピ3, 賢さ2, 友人1 1200|649|756|425|742

因子、スピ42, スタ33, パワー24

Extend TdrDelay

Registry

2つのレジストリを変更。存在しなければ追加。

Lication

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers

Keys for Dword/ 32bit values.

TdrDelay  2 to 60
TdrDdiDelay 5 to 60

大文字小文字も合わせる。また、Decimal設定とする。

設定後、リブートする。

また、DCI/Timeout も変更するという記事もあり。

バックアップを忘れずに。

registory backup, create restore point

https://support.microsoft.com/en-us/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692

ref

https://substance3d.adobe.com/documentation/spdoc/gpu-drivers-crash-with-long-computations-tdr-crash-128745489.html

Includes DCI

https://answers.microsoft.com/en-us/windows/forum/all/registry-fix-for-videotimeoutdetectionandrecovery/deea25d5-d94a-47f8-a09f-be7ce56d5084

powershell diffがない時に

Powershell でdiff

Powershell にdiffがなく、emacsのediffはdiffが必要。

unix系ツールを導入すればdiffが入っているが選択が悩ましい。

そこで、今回はgitを利用。

何方かのファイルがあるDirで、

git init
git add .
git commit -m poi

もう一つのファイルをコピーし、

git diff xx

かなり面倒ではあるが、できない事はない。

git conflict 解消

git で conflictと言われたら

基本的にはconflict と言われたファイルを修正して

git add .
git commit -m fixed

conflict 発生経緯

git log --graph --all --format=oneline

とても便利かも

merge branch

merge branchでの発生頻度が高い。その際は、merge 元で作業し、conflict解消後にmerge 先にmerge するのが良いかも。

  1. merge 元に、merge先をmerge
  2. conflict 解消
  3. merge先にmerge(元々のmerge)

これだとmerge元が同期し、merge元で作業が続けられる。

Powershell, gpu情報

Gpu info

Get-WmiObject win32_videocontroller

or

get-ciminstance

Get-WmiObject win32_videocontroller | select caption, CurrentHorizontalResolution, CurrentVerticalResolution

Get-WmiObject win32_desktopmonitor

ref

https://devblogs.microsoft.com/scripting/use-powershell-to-discover-multi-monitor-information/

teams bot 改行が無視される

teams bot で改行のあるテキストを送ると、改行が無視される。

改行は\n または\r でエスケープが必要とのこと。

また、書式はtextblockで使え、markdown, xml, htmlが選択できる。但し、title等には使えない。

githubへの移行方法

githubへの移行方法

複数ある模様。

とりあえず、github doc記載のgithub 間で移動する方法。これをローカル→github でも使えるかも。

まずはgithub to github

github に使用中リポジトリ/oldと移行先として作成した空のリポジトリ/newがある所から始める。

  • git clone --bare old
  • git push --mirror new

ローカル→github

上記でoldが手持ちのローカルリポジトリと考えれば、ローカル→githubが可能?

その他

他にもいくつか方法があり、下記はその中の2つ。

  1. mirror clone & mirror push
  2. checkout all branch & push all branch

ref