]> apps.delaporte.us Git - dotfiles.git/commitdiff
Utils
authorEdTheDev <edward@delaporte.us>
Tue, 3 Oct 2023 02:50:27 +0000 (21:50 -0500)
committerEdTheDev <edward@delaporte.us>
Tue, 3 Oct 2023 02:50:27 +0000 (21:50 -0500)
setup/deploy_pubkey.ps1 [new file with mode: 0644]
win/stay_awake.ps1

diff --git a/setup/deploy_pubkey.ps1 b/setup/deploy_pubkey.ps1
new file mode 100644 (file)
index 0000000..7a448d3
--- /dev/null
@@ -0,0 +1,6 @@
+Param(\r
+       [string]$hostname\r
+)\r
+\r
+scp ~/.ssh/id_rsa.pub ${hostname}:~/\r
+ssh $hostname -C 'cat ~/.ssh/new_key.pub >> ~/.ssh/authorized_keys'\r
index aba956ace00e78771b65bf33fb13606d4f996779..40bc896ffc34dc5dae60371e6df9aca523620d9a 100644 (file)
@@ -1,5 +1,5 @@
+param($minutes=90)
 $wsh = New-Object -ComObject WScript.Shell
-$minutes = 15
 do{
        "Staying awake for $minutes minutes"
   $minutes-=1;