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
# ホスト要件 # https://docs.ansible.com/ansible/2.9_ja/user_guide/windows_setup.html#id1 | |
# Windows version | |
Get-WmiObject Win32_OperatingSystem | |
# PowerShell 3.0+ supported | |
$PSVersionTable | |
# .NET 4.0+ supported | |
# https://stackoverflow.com/a/3495491 |
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
# https://qiita.com/acuo/items/9928e1fbb31b238d9705#%E4%BB%8A%E5%9B%9E%E4%BD%BF%E3%81%A3%E3%81%9F%E3%82%B3%E3%83%BC%E3%83%89%E5%85%A8%E3%81%A6 | |
function Test($Scripts, $N) { | |
# 各スクリプトの並びをシャッフルしてN回試行しその平均タイムを取得 | |
$Scripts * $N | Sort-Object { Get-random } | | |
Select-Object Name, @{ name = "Time"; expression = { (Measure-Command $_.Script).TotalMilliseconds } } | | |
Group-Object Name | | |
Select-Object Name, @{ name = "AverageTime"; expression = { ($_.Group | Measure-Object Time -Average).Average } } | | |
Sort-Object AverageTime | | |
Format-Table Name, @{ label = "AverageTime(msec)"; expression = { $_.AverageTime -as "int" } } -AutoSize |
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 | |
# https://amd-osx.com/forum/viewtopic.php?t=413 | |
ls -AFG /Volumes/ | |
#VOLUME_NAME='Install OS X El Capitan' | |
VOLUME_NAME='Image Volume' | |
DOWNLOAD_PATH="/Volumes/$VOLUME_NAME/Downloads" | |
FONTS_PATH="/Volumes/$VOLUME_NAME/System/Library/Fonts" | |
ls -FG "/Volumes/$VOLUME_NAME/" |
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 -eux | |
# https://note.com/nuts_b/n/n87f1b2f291e5 | |
# https://qiita.com/matarillo/items/f036a9561a4839275e5f | |
sudo apt -y install daemonize | |
sudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.target | |
exec sudo nsenter --target $(pidof systemd) --all su - $LOGNAME |
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
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": |
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
## from https://qiita.com/kobake@github/items/fb317b4fdacad718a4b2 | |
C:\Program Files\WinMerge\WinMergeU.exe | |
-e -u "$LOCAL" "$REMOTE" "$MERGED" | |
-f "*.*" -e -u -r "$LOCAL" "$REMOTE" | |
## -- | |
%LocalAppData%\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd |
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
// GetTable | |
(rangeName as text) => Excel.CurrentWorkbook(){[Name=rangeName]}[Content] as table | |
// GetValue | |
let | |
result = (key as text, optional rangeName as nullable text) => | |
if rangeName = null or rangeName = "" then | |
GetTable("t_props"){[key=key]}[value] | |
else | |
GetTable(rangeName){[key=key]}[value] |
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/sh | |
find ~ -type f -name '.localized' -maxdepth 2 -delete | |
# see http://neos21.hatenablog.com/entry/2019/01/10/080000 | |
chflags nohidden ~/Library # ~/Library ディレクトリを見えるようにする | |
# 全ての拡張子のファイルを表示する | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
# キーリピートの速度 | |
defaults write NSGlobalDomain KeyRepeat -int 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
status key command | |
Composition Backspace Backspace | |
Conversion Backspace Cancel | |
Precomposition Backspace Revert | |
Composition Ctrl a MoveCursorToBeginning | |
Conversion Ctrl a SegmentFocusFirst | |
Composition Ctrl Backspace Backspace | |
Conversion Ctrl Backspace Cancel | |
Precomposition Ctrl Backspace Undo | |
Composition Ctrl d MoveCursorRight |
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
{"lastUpload":"2019-12-05T04:15:50.960Z","extensionVersion":"v3.4.3"} |
NewerOlder