This AHK file is setup to issue commands within cmd prompt. Autohotkey is a program that allows you to create macros/hotkeys that you can program easilly. The text below is the text within the AHK file attached and I will describe in bold what everything does. 


Download AHK here: https://www.autohotkey.com/download/


After, download the attachment below


The documentation for AHK can be found at https://www.autohotkey.com/docs/AutoHotkey.htm



#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.

; #Warn  ; Enable warnings to assist with detecting common errors.

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.


^+~:: This is the command key that will be pressed on the keyboard to activate the hotkey. ^ = CTRL , + = Shift, and ~ = the ~ key (The key next to the 1 on the keyboard) So to activate the command you will press CTRL + Shift + ~

Send, ssh soladrive+223.94.156.25 -p2323{enter} This is the part where you are setting the command that will be input, send is saying you want to send the following characters to whatever you have selected. Keep in mind that you cant put @ and expect it to type out @ in the hotkey, we instead have to input it the same way you would type it, so we type +2 (shift and 2) to type out @. This command is telling CMD prompt you want to connect to the server 23.94.156.25 on port 2323 via ssh.

return


^+1:: (Ctrl + Shift + 1)

Send, os5LdYgxMu2cMA={enter} The {enter} is telling the keyboard to press the enter button. This command is for inputting the password to login. Make sure to do a su root command before going to the next step.

return


^+2:: (Ctrl + Shift + 2) 

Send, cd {NumpadDiv}opt{NumpadDiv}odoo11{NumpadDiv}custom{NumpadDiv}addons_2{NumpadDiv}matrix-staging{enter} The {NumpadDiv} is sending the / character. This command is going to the directory on the server where the production odoo instances custom modules are located.

return


^+3:: (Ctrl + Shift + 3) 

Send, git pull origin master{enter} This command is pulling the git code from gitlab

return


^+4:: (Ctrl + Shift + 4) 

Send, ebourne+2equityandhelp.com{enter} This command is for the git username credentials.

return


^+5:: (Ctrl + Shift + 5) 

Send, SuperHelp2018+3{enter} This command is for the git password credentials.

return


^+6:: (Ctrl + Shift + 6) 

Send, tail -f -n 40 /var/log/odoo11/odoo11.log{enter} This command is for seeing the last 40 lines of the odoo log for production instance.

return


^+7:: (Ctrl + Shift + 7) 

Send, tail -f -n 40 /var/log/odoo11new/odoo11new.log{enter} This command is for seeing the last 40 lines of the odoo log for testing instance.

return


^+8:: (Ctrl + Shift + 8) 

Send, "C:\Program Files (x86)\Odoo 13.0\python\python.exe" "C:\Program Files (x86)\Odoo 13.0\server\odoo-bin" scaffold MODULE_NAME_HERE "C:\Users\Equity & Help\PycharmProjects\matrix-staging" This is the scaffold command for odoo to create a new module.

return