Tag Archives: python

Upgrade vLLM (don’t!)

The best way to upgrade vLLM is actually NOT to upgrade it, but to wipe it’s venv and install from scratch, in my opinion and based on my experimentation, just run: deactivate rm -rf .venv uv venv –python 3.12 –seed … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

Simple Python Script to Communicate with ChatGPT API

I wrote a simple python script that allows you to communicate with the ChatGPT API, the workflow is as straight-forward as this: Prerequisites: Limitations: Here is the code in its simplest form: https://github.com/ahmedatawfik/usefulscripts/blob/main/chatgptcomm.py That’s it, Enjoy! Sources:

Posted in python | Tagged , , , | Leave a comment

How to enable Python to craft packets and listen to ports less than 1024 without sudo

To be able to craft packets with Scapy, you have to either use sudo or allow setcap for your python environment. I don’t prefer to use sudo when working with my Anaconda environments, so I did the following: sudo setcap … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Create a filesystem report with Python

In many cases, data accumulates over time, and a lot of this data is not being accessed at all, sometimes for years. Accordingly, it would be great if you could create a report that shows which data, the last access … Continue reading

Posted in Linux | Tagged , , , , | Leave a comment

azure-cli installation on Ubuntu Bionic (18.04)

No deb packages have been released yet for Ubuntu 18.04, so you have to use the script MS provided here. However, you will face the following error immediately:  fatal error: Python.h: No such file or directory To resolve this, simply … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment