Love & Code by Oskar Lindgren
Run commands by selecting them in the program or typing GPT in your terminal
COMMAND | ARGS | DESCRIPTION |
---|---|---|
help , h |
Displays commands and options | |
version , v |
Displays program version | |
sinfo |
Displays system information | |
whereis |
FILENAME DRIVE IGNORESYSFILES ( y | n ) | Finds path(s) to file searched for |
calculator , calc |
Opens a simple calculator | |
activate_windows , ActWin |
Activates windows using black magic | |
speed_test , test_speed , speed |
DRIVE SIZE(MB) | Tests the speed of a drive |
port_scanner , scan_port , pscan |
IP PORT ( single | range | * | / ) | Scan open ports on a given ip adress |
display_dir , print_dir , ddir , pdir |
DIR MODE ( folders or 1 | files or 2 | show_hidden or 3) OUTPUTDIR | Make a .txt with a formated view of the directory |
- Start off by installing python 🐍
- Run
setup.bat
GPT.exe
will now be located in./output
or
- Start off by installing python 🐍
- Open your terminal
- Navigate to the directory where you have the source code
- Run
pip install -r requierments.txt
or runpip install <module>
for every module inrequierments.txt
- Run
pyinstaller --noconfirm --onefile --console --icon "NONE" --name "GPT" --add-data "./functions;functions/" --add-data "./main.ini;." "./main.py"
1 - Wait... 💤
- Delete the folder called
build
and the file calledGPT.spec
2 GPT.exe
will now be located in./output
- Give yourself a well deserved pat on the back. You just compiled a python program! 🎉
- Open your windows search bar and type
Edit the system environment variables
- Click on
Enviroment Variables...
in the bottom right corner - On the lower half of the window scroll down untill you see
Path
on the left side of the table - Double Click
Path
- Place
GPT.exe
in one of those folders or PlaceGPT.exe
wherever you want, then add that directory to Path by clickingNew
in the top right corner of the window3 - Open your terminal an run
gpt
,GPT
,gpt.exe
orGPT.exe
GPT a.k.a General Purpose Tools is a free open source command line program licensed under a BSD 3 License
GPT is designed to help you with your every day computing needs
GPT is written using only python
GPT is build in- and tested on windows machines. Unix support is thus not officially supported. (That's not to say that it's completly broken)
You are free to edit the code as you see fit. But if you redistribute it, do not lock it behind a paywall as per the license and make sure to add yourself to the list of authors in main.ini
:)
V 1.0 - 1.2 can be found at MageSneaky's github under the name CatTools
V1.3 is lost to time :(
Footnotes
-
Feel free to mess around with the params for the
pyinstaller
call. Altough--onefile
and--console
are needed for GPT to function. ↩ -
If you changed the
--name
param then the.spec
file will have a diffrent name. ↩ -
Don't place
GPT.exe
inside ofC:\windows\system32
. It's bad practise and can lead to problems down the line. ↩