[misc] win10 utilities
This commit is contained in:
parent
7f8e76b9fb
commit
5b1fddc565
BIN
win/play-by-mpv-as-bluray.reg
Normal file
BIN
win/play-by-mpv-as-bluray.reg
Normal file
Binary file not shown.
|
@ -46,4 +46,18 @@ function d {
|
|||
function vsbuild {
|
||||
Import-Module "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
|
||||
Enter-VsDevShell 56e7bf1c
|
||||
}
|
||||
|
||||
function ssh-copy-id {
|
||||
[Cmdletbinding()]
|
||||
param (
|
||||
[Parameter()]
|
||||
[String]
|
||||
$IdentityFile="~/.ssh/id_rsa.pub",
|
||||
[Parameter(Mandatory=$true, Position=0)]
|
||||
[String]
|
||||
$UserHost
|
||||
)
|
||||
|
||||
Get-Content $IdentityFile | ssh $UserHost "umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys"
|
||||
}
|
Loading…
Reference in New Issue
Block a user