Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Build & Run LibreTranslate Docker Image for Offline Work

The documentation on https://hub.docker.com/r/libretranslate/libretranslate was a bit misleading, so here are the proper steps: Building The above will take some time to build and download all the dictionaries for offline use. Running That’s it, Enjoy! Sources

Posted in docker | Tagged , | Leave a comment

Set Ollama default context size on Linux

Just as simply as this: Then add the following lines (to set to 64k tokens context size): Save and exit, then restart Ollama: And you’re done: Note: Tested on Ubuntu 24.04 with Ollama 0.15 That’s it, Enjoy!

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

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