From: EdTheDev Date: Tue, 3 Oct 2023 02:50:27 +0000 (-0500) Subject: Utils X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/d93a72d0ac1c113f7c02b9e4b982e031644bbb34?ds=sidebyside Utils --- diff --git a/setup/deploy_pubkey.ps1 b/setup/deploy_pubkey.ps1 new file mode 100644 index 0000000..7a448d3 --- /dev/null +++ b/setup/deploy_pubkey.ps1 @@ -0,0 +1,6 @@ +Param( + [string]$hostname +) + +scp ~/.ssh/id_rsa.pub ${hostname}:~/ +ssh $hostname -C 'cat ~/.ssh/new_key.pub >> ~/.ssh/authorized_keys' diff --git a/win/stay_awake.ps1 b/win/stay_awake.ps1 index aba956a..40bc896 100644 --- a/win/stay_awake.ps1 +++ b/win/stay_awake.ps1 @@ -1,5 +1,5 @@ +param($minutes=90) $wsh = New-Object -ComObject WScript.Shell -$minutes = 15 do{ "Staying awake for $minutes minutes" $minutes-=1;