This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt update | |
| sudo apt upgrade -y | |
| sudo apt install wget zip unzip git htop vim hwinfo gparted -y | |
| sudo apt install screen tmux -y | |
| # install python3.10 | |
| sudo apt install build-essential libblas3 libbz2-dev libffi-dev libgdbm-dev liblapack3 liblzma-dev libncurses5-dev libnss3-dev libomp5 libreadline-dev libreadline-dev libsqlite3-dev libssl-dev lzma lzma-dev tk-dev zlib1g-dev -y | |
| sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev libgdbm-compat-dev -y | |
| wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz | |
| tar -xvf Python-3.10.8.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| InputBox, ColabFileName, Colab Keep Alive Script, Enter the Google Colab filename | |
| ColabWinTitle := ColabFileName . " - Colaboratory - Google Chrome" | |
| if WinExist(ColabWinTitle){ | |
| WinActivate | |
| InputBox, Interval, Keep Alive : %ColabWinTitle%, Enter an interval (in minutes) to emulate mouse and keyboard behaviour : | |
| if Interval is not integer | |
| { | |
| MsgBox, , Halt : Bad Type, Enter an Integer for the Interval | |
| Return | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| KeepAlive(ColabWinTitle, Interval){ | |
| Loop | |
| { | |
| Sleep, 1000 * 3 | |
| if WinExist(ColabWinTitle) | |
| { | |
| WinActivate ; Automatically uses the window found above. | |
| WinMaximize ; same | |
| Sleep, 2000 | |
| MouseClick, left, 1750, 250, 1, 30 |