Skip to content

Instantly share code, notes, and snippets.

@intelligenced
Created November 22, 2017 08:16
Show Gist options
  • Save intelligenced/7bbaec54d37ac6aa0cdf7b2ee21bc42e to your computer and use it in GitHub Desktop.
Save intelligenced/7bbaec54d37ac6aa0cdf7b2ee21bc42e to your computer and use it in GitHub Desktop.
Unconventional Auto Deploy - AHK Script
#SingleInstance, force
Path = C:\putty.exe
IP = IP
User = Instance User
Pass = Instance Pass
Directory = Repo Directory
GitUser =
GitPass =
Origin = origin
Master = master
;~ ^t::
run %Path%
WinWaitActive, PuTTY Configuration ahk_class PuTTYConfigBox ahk_exe putty.exe
send %IP%
send !o
WinWaitActive, %IP% - PuTTY ahk_class PuTTY ahk_exe putty.exe
Sleep 500
send %User%{enter}
Sleep 500
send %Pass%{enter}
Sleep 500
send cd %Directory%{enter}
Sleep 500
send sudo git pull %Origin% %Master%{enter}
Sleep 500
send %User%{enter}
Sleep 500
send %GitUser%{enter}
Sleep 500
send %GitPass%{enter}
Sleep 500
ExitApp
return
F5::
Send ^s
sleep 100
Reload
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment