To the extent possible under law,
m-hayabusa
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "shell", | |
"style": "plain", | |
"foreground": "white", |
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
<# | |
.SYNOPSIS | |
pingで疎通監視して、ダメそうだったらルートを別のNICに切り替えてSoftEther VPNを再接続するやつ | |
.DESCRIPTION | |
主回線で接続しているとき、主回線で0.5秒ごとにVPNサーバーへpingを送信し、2連続で失敗した場合に、 | |
* VPNサーバーへのルートを副回線へ変更 | |
* VPNのセッションを繋ぎなおす | |
副回線で接続しているとき、主回線で5秒ごとにVPNサーバーへpingを送信し、2連続で成功した場合に、 | |
* VPNサーバーへのルートを主回線へ変更 | |
* VPNのセッションを繋ぎなおす |
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
Write-Host "このスクリプトは、Node.JSとGitが存在しなければWingetを利用しインストールし、Gitで`https://github.com/m-hayabusa/VRChat-Exif-Writer`をcloneし、自動起動をタスクスケジューラに登録するものです。`nEnterで実行 / Ctrl Cでキャンセル" | |
while ($host.UI.RawUI.ReadKey().VirtualKeyCode -ne ([ConsoleKey]::Enter).value__) {} | |
# https://devblogs.microsoft.com/scripting/use-a-powershell-function-to-see-if-a-command-exists/ | |
Function Test-CommandExists{ | |
Param ($command) | |
$oldPreference = $ErrorActionPreference | |
$ErrorActionPreference = 'stop' | |
try {if(Get-Command $command){$TRUE}} | |
Catch {$FALSE} |
write-timestamp.ps1
を保存- PowerShellを起動
- 実行
> write-timestamp.ps1 -Pathes @("C:\Program Files (x86)\Steam\userdata\308230826\760\remote\438100\screenshots", "C:\Users\hayabusa\Amazon Drive\Pictures\Quest") -DestPath "D:\VRCImage\"
(そこにあるファイルに日付を付けてD:\VRCImageへ移動)> write-timestamp.ps1 -Pathes "C:\Users\hayabusa\Pictures\VRChat"
(-DestPathを指定しなければ移動しません)
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
$endPoint = New-Object System.Net.IPEndPoint([IPAddress]::Loopback, 9001) | |
$udpListener = New-Object System.Net.Sockets.UdpClient($endPoint) | |
$udpClient = New-Object System.Net.Sockets.UdpClient | |
$udpClient.Connect("127.0.0.1", 9011) | |
while ($true) { | |
$data = $udpListener.Receive([ref]$endPoint) | |
[System.Text.Encoding]::ASCII.GetString($data) | Write-Host | |
[Void]$udpClient.Send($data, $data.Length) |
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
{ | |
"head": { | |
"docType": "3", | |
"editorVersion": "6.5.5", | |
"importedFrom": "Eagle", | |
"x": "0", | |
"y": "0", | |
"importFlag": 0, | |
"c_para": {}, | |
"transformList": "", |
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
import sys | |
import re | |
import mido | |
import keyboard | |
shift = 0 | |
wait = 0.05 | |
flag = 0 |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "lightWhite", | |
"foreground": "black", | |
"powerline_symbol": "\ue0b0", |
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
Shader "nS/StrShader" | |
{ | |
Properties | |
{ | |
_MainTex ("(ダミー)", 2D) = "white" {} | |
_BgColor ("背景色", Color) = (1,1,1,1) | |
_Color ("文字色", Color) = (0,0,0,0) | |
_UnifontTex ("フォント", 2D) = "white" {} | |
_DataTex ("記憶用", 2D) = "white" {} | |
_WidRow ("横幅", Vector) = (16,4,0,0) |
NewerOlder