Script | Description | Setup | Usage |
---|---|---|---|
ai_helper.py | GPT-4 AI chat in terminal | Bing Setup* | Ai helper |
network_card.py | Activate/Deactivate network card with a shortcut | Setup network_card.py | Network Card |
chat/terminal_chat.py | Chat with your friends in terminal in real time | Setup terminal-chat.py | Terminal Chat |
var_changer.py | Change the name of the variables/functions/classes in any code base | Bing Setup* | Var Changer |
exam2txt.py | Convert PDF and image files into text files | Poe Setup | Exam2txt |
pip install -r requirements.txt
- Python 3.9+
- Microsoft account with access to bing copilot (recommended but not required)
- Go to the Copilot web page.
- Open the developer tools in your browser (usually by pressing
F12
or right-clicking on the chat dialog and selecting Inspect). - Select the Network tab to view all requests sent to Copilot.
- Write a message on the chat dialog that appears on the web page.
- Find a request named
create?bundleVersion=XYZ
and click on it. - Scroll down to the requests headers section and copy the entire value after the
Cookie:
field. - Paste it to
config.ini
Tip
you can use Bing scripts without the cookies but you will have a limited number of requests (5 per chat session)
- Log into Poe on any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of the
p-b
cookie in the following menus:- Chromium: Devtools > Application > Cookies > poe.com
- Firefox: Devtools > Storage > Cookies
- Safari: Devtools > Storage > Cookies
Paste the value of the p-b
cookie into config.ini
- in terminal type
wmic nic get name, index
and find the name of your network adapter - paste it into
config.ini
- run
chat/terminal_chat_setup.py
- create your channel on https://dashboard.pusher.com/
- copy the credentials to the generated
.env
file
- Run
python ai_helper.py
and chat with the FREE GPT-4 AI - you can use custom commands like:
Command | Usage |
---|---|
!reset | Start new conversation |
!exit | exit the code |
!paste | paste clipboard |
!export | save chat to txt file |
- Run
python network_card.py
- press
Numpad1
+Numpad3
to deactivate your network adapter - press
Numpad7
+Numpad9
to activate your network adapter
- press
- first you need to activate the virtual environment
Windows
# change to the generated terminal-chat directory
cd terminal-chat
# activate environment
Scripts\activate
Linux
# change to the generated terminal-chat directory
cd terminal-chat
# activate environment
source bin/activate
- run
terminal_chat.py
- pick a nickname
- start chatting !
- put your codebase in a folder called
exam
in the same directory asvar_changer.py
- run
var_changer.py
- the script will modify the the codebase and zip it in a file called
modified.zip
This script is used to convert PDF and image files into text files using the Poe API. It takes a file path as an argument from the command line. If no file path is provided, it will look for PDF and image files in the current directory.
Here's how to use it:
- Run the script from the command line with a file path as an argument. The file should be a PDF or an image file (JPEG, PNG, or JPG).
python exam2txt.py /path/to/your/file.pdf
- If you don't provide a file path, the script will look for PDF and image files in the current directory.
python exam2txt.py
- The script will convert the provided file or the files in the current directory into text using the Poe API. If there are image files but no PDF files, it will first convert the images into a PDF file.
- The extracted text will be saved in a text file with the same name as the original file.