Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

How to send a random alphanumeric in Postman

If you have a kind of session ID or something that you are passing in your payload in your request on postman and you want it to be generated randomly with each call, use the randomAlphaNumberic function as follows: In … Continue reading

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

How to Tame Your Dragon, aka LLM!

I’m planning to create a series of articles/videos on how to effectively “tame” an LLM to enforce structured output for programmatic use. The goal is to make AI responses predictable, reliable, and easily consumable by applications. What do you think?

Posted in Linux | Tagged | Leave a comment

Renewing DHCP Lease from Ubuntu 24.04 Server

Just found out that Ubuntu 24.04 server doesn’t use dhclient anymore and uses dhcpcd instead for obtaining dhcp address leases. To renew your dhcp address, do the following: That’s it, Enjoy! Sources: https://askubuntu.com/questions/1511816/how-to-renew-ip-address-with-ubuntu-24-04

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

Docker file & compose for phpBB3

I needed a local instance to play around with phpBB, which I couldn’t find recent docker files for, so I just created my own. The below are the docker-compose.yml and Dockerfile for the latest version of phpBB as of now; … Continue reading

Posted in docker, Linux | Tagged , , , , , | 2 Comments

If WSLg apps show a black screen!

You might have rendering issues with WSLg apps, especially in case you are using an Intel graphics card, like this: In that case, just configure an environment variable named LIBGL_ALWAYS_SOFTWARE and set it to 1. To persist it, add this … Continue reading

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