Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Enable debug mode for Ollama on Linux/mac

Simply run it as follows: Note: You might want to export another variable to show the ollama serve command where the models are saved in case you receive a 404 about model not available, this happened to me for some … Continue reading

Posted in Ollama | Tagged , | Leave a comment

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