Avatar
Jadi
c28aece562af2d5d33e79775d29fe6026023e55e641bfc03e138b2066ed9113a
A freedom lover from Iran. Techie, Programmer, Linux expert & Content creator who advocated the freedom of keyboard and human rights.

In this short video I'll show you how to start your LLM (Large language model) journey as a programmer. After a short intro on LLMs, I'll show you how to start using a smaller model (SLM / Small language model) via ollama and interact with it using CLI, Curl & Python using openai library.

https://youtu.be/WQPqyxxvBxA

Top Algorithm Interview Questions Fully Explained; Ransom Notes using hashmaps

https://youtu.be/V5NbOeaUCj8

regreSSHion: RCE in OpenSSH's server, on glibc-based Linux systems explained

https://youtu.be/1Me2ZwjB2cQTodays winner of #AI_of_shit

In this video I'm solving the Merge Sorted Arrays problem using the Two Pointers solution while explaining all my thought process. I'll use C for fun :D

https://youtu.be/VztSOFUtC78

#algorithm #programming #interview

Top Algorithm Interview Questions Explained - Valid Parentheses - Stacks, Easy

In these series I'm going to solve many Programming Interview questions related to algorithms and explain my thought process. I will try to be detailed and show you how a programmer thinks when confronted with such questions.

This one is about Stacks and is Easy:

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

An input string is valid if:

- Open brackets must be closed by the same type of brackets.

- Open brackets must be closed in the correct order.

- Every close bracket has a corresponding open bracket of the same type.

https://youtu.be/ovTttKIUyHk

Unleash Your Inner Geek: Crafting your own Unix Command! Program your own 'who' and 'users'.

Ever wondered how the Unix wizards conjure up their spells? Join me on a thrilling journey as we decode the magic behind the who and users commands. This isn't just another tutorial; it's your gateway to becoming a command line sorcerer on Linux, BSD, or Mac systems.

‍ We'll start by unraveling the mysteries of the UTMP unix version 1 format on OpenBSD, guiding you through the arcane process of information extraction. Then, we'll peek into the very source code of the users command, revealing secrets that have been closely guarded by the Unix Elders.

By the end of this adventure, you'll not only be versed in the ancient UTMPX texts but also be ready to craft your very own users or who commands. Imagine creating a bespoke tool like is_logged_in, which can divine the presence of a user with a simple 1 or 0.

Prepare for that 'Eureka!' moment, as the curtain lifts and the commandline's enigmatic workings become clear. If you're armed with basic programming knowledge, this video will elevate your skills to mystical heights.

So, are you ready to wield the power once held by the Unix Elders? Let's embark on this quest for command line enlightenment together!

https://youtu.be/LBC_EnJU9HI

Ansible. Ansible. Ansible. Running larege playbooks on a cluster of servers to test our installation process and become ready for our next release. #work

Published a new version of my UTMP-Classic crate. It can parse the classic UTMP files which #OpenBSD still uses to keep track of logged in users and such.

https://crates.io/crates/utmp-classic

in this version I upgraded the zerocopy to 0.7 series and it needed some changes because of the new zerocopy::Ref .

Hetzner (like many other providers) do not provide #OpenBSD machines.. but there is a nice #syadmin trick to install your beloved OS over whatever they provide. In this video we will see how you. In short:

1. Create your #GNU / #Linux machine

2. Login, wget & dd the IMG

3. Reboot in Console and install using network installation (say http packages)

4. Reboot in your new OS

5. Have fun.

Here is my video of above steps... with some more info, discussion and fun :)

https://youtu.be/vSVQXWbnNgY

Reminder: #Nostr is decentralize. Change your client, start your relays. Keep it decentralized. Decenteralization is not only a tech concept, but a metnal one. Search for clients and try them. Contribute and have fun.

Have 10mins to deepen your understanding of #Unix like systems?

Check the utistd.h page. This is the header file that provides access to the POSIX operating system API. Even a quick browse can show you how your program talks with your OS.

https://en.wikipedia.org/wiki/Unistd.h

For example whenever your program needs a higher privilege (or to act as another user), it calls `setuid` for that. Or starts with `sudo/doas` to have a higher access but calls `setuid` to become "nobody" in most of its life cycle.

If still have a click to spare, check the setuid.h on #OpenBSD man pages:

https://man.openbsd.org/setuid.2

in most cases OpenBSD man pages are the best references you need to understand the OS.

#BSD #Linux

I was sending a minor PR to the uutils / #coreutils project regarding a breaking test on #NetBSD and thought its a good opportunity to record a video and:

- talk about the uutils/coreutils which is a rewrite of coreutils in Rust

- show the #NetBSD env and do some coding in it

- Show the flow of sending a PR on #github

https://youtu.be/5JcaQWGMRVE

Moved my mastodon account from Mastodon.social to bsd.cafe . Why? to support the decentralized nature of mastodon, promote the federation and encouraging people to be part of smaller inter-connected communities.

So if on mastodon, find me at @jadi@bsd.cafe

Exploring the 'CON' Folder Mystery in Windows by studying the recently published source code of DOS4

It's a well-known quirk that Windows doesn't allow folders named "CON" or "COM1"—a restriction that persists in 2024. While the reasons may be familiar to some, the release of MS-DOS 4.0's source code by Microsoft offers new insights. Join me as we dive into this code from over three decades ago for a fresh perspective and a retrospective peer review.

#programming #clang #c

https://youtu.be/I-L1ZxATR8U

Fixing a bug in the #rust coreutils related to the returned value from the `kill` command & sending a pr on #github

https://youtu.be/wzWNkNPHJx0

#programming #unix #linux

Tried all major BSDs for a week and reinstalled the #OpenBSD and will use that on my laptop for some time.

#Fedora #GNU / #Linux 40 is now officially available.

https://fedoramagazine.org/announcing-fedora-linux-40

added a Zap icon & address the latest video on youtube... lets see if any body "understands" it. I would zap if I see one :D