Archives

Antranig Vartanian

October 9, 2025

I started getting into retro computing again, but this time also for phones, so I’m blogging from a BlackBerry phone 🙂

Let’s see if it works!

Antranig Vartanian

September 21, 2025

There’s a lot of work that needs to be done on Jailer.

To start with, I have finally decided on the release model. The main development branch will be main, similar to FreeBSD, and then the releases will be tagged.

I’m not sure how I feel about branches, as I don’t want to have any kind of LTS versions, but I might need to understand if there’s anything missing in FreeBSD that I would need.

Another problem that I have right now is the fact that we don’t have a Port. I’m not happy with Jailer enough to make a Port for it, but maybe in the coming days.

  • Fix the Git stuff that I don’t care about but I should
  • Create a stable non-development version/tag
  • Create more lists like this, because, let’s be honest, no one can work without lists.

I do wonder if I can pull an all nighter and finish everything that I hope to finish. Lets see.

Antranig Vartanian

July 19, 2025

Sometimes all I need to do is

sudo tmutil listlocalsnapshots / \
  | grep TimeMachine \
  | cut -d . -f 4 \
  |  xargs -I% sudo tmutil deletelocalsnapshots %

And suddenly I have like 70GB of more storage on my Mac.

I wish macOS was less… black magic-y.

Antranig Vartanian

July 7, 2025

Sometimes, when I have a long running process on my computer, like scp, rsync or curl I need to know when it’s done, so I don’t check the terminal every minute. That’s when I realized that this is a perfect fit for Apple Script and pwait.

Basically, it looks something like this:

pwait `pgrep xargs` \
  && osascript -e \
    'display notification "Extraction Done" with title "large xargs"'

Now I can go back to work, and I don’t have to check if the job is done every minute. A notification will appear when it’s done.

For remote jobs, I have realized, that I can send a notification to myself, kind of like a self-hosted Pushover, using XMPP, I don’t want to go into the details, but that seems like to be a good solution as well. Maybe I should just use Pushover anyway.

Antranig Vartanian

June 12, 2025

A while back I needed to get the input voltage from one of our UPSes, so I used bsnmpwalk(1) to get the information needed and ran it in a script with a loop and sleep. Running it in tmux(1), of course.

#!/bin/sh

lastoff="maybe"

while true;
do
  inpvol=$(bsnmpwalk -o quiet -s public@172.20.42.101 1.3.6.1.2.1.33.1.3.3.1.3)

  [ $? != 0 ] && \
    curl -s -X POST \
    https://api.telegram.org/botXXX:YYY/sendMessage \
    -d chat_id=-ZZZ \
    -d text="Something is wrong with the SNMP server"

  [ "${inpvol}" -lt 200 ] && \
    curl -s -X POST \
    https://api.telegram.org/botXXX:YYY/sendMessage \
    -d chat_id=-ZZZ \
    -d text="Power seems to be off. I see Input Voltage as ${inpvol}" && \
    lastoff="true"

  [ "${inpvol}" -ge 200 ] && [ "${lastoff}" == "true" ] && \
    curl -s -X POST \
    https://api.telegram.org/botXXX:YYY/sendMessage \
    -d chat_id=-ZZZ \
    -d text="Power back on. I see Input Voltage as ${inpvol}" && \
    lastoff="false"

  printf "%s  ---  %s\n" "$(date)" "${inpvol}"
  sleep 60
done

This got the job done, but I guess there’s place for improvement (leave a reply).

Anyways, I kept forgetting that I need to run the script in tmux after reboots, so I decided to use daemon(8).

touch /etc/rc.local
chmod +x /etc/rc.local
cat - >> /etc/rc.local
#!/bin/sh

daemon -u nobody -r -R 5 -f -t ups-notifier -o /var/log/ups_notifier.log /usr/local/bin/ups_notifier.sh

Again, there’s a place for improvement, specifically I can use a proper rc.d(8) script, yet again, this gets the job done.

Gotta say, I love the simplicity of FreeBSD.

Antranig Vartanian

February 27, 2025

For years I’ve been a night owl, staying up late until 5AM, hacking on code, chatting with friends and even drinking coffee at that late hour. I’ve been told that it’s a genetic thing, that people don’t choose what kind of a person they are, morning or evening. And yet, when I tried to find my “natural sleep cycle”, looks like I’ve been functioning at my best when I sleep around 10PM and wake up at 5AM. This has been a very weird experience, but what else do I not know about myself? I am not sure. The unknown unknown is a very weird place, unlike the known unknown.

In either case, I will keep a detailed log of my sleep for the coming months and see how if I actually function better, or is it just an illusion.

What’s your sleep cycle? when do you hack on code? or do you stay up late watching YouTube videos and doom-scroll on social media?

Antranig Vartanian

January 3, 2025

Here are some issues I had, which I fixed in the last three days

  • Email client not updating properly on phone. Fixed
  • Too many apps on phone and programs on computer. Deleted
  • Too many notes here and there. Collected and centralized
  • Too many packages outdated. Upgraded
  • Too many messages from friends left unanswered. Answered
  • Too many wires and cables in the cabinet. Organized
  • Too many cameras unused. Pictures Captured
  • Too many things on my TODO lists. Clarified.

Sometimes all you need is to sit down, clean up your laptop’s monitor and get to work.

Wish you all the best in the coming year. And if I ever missed your message, I’m sorry. If I ever texted too much, I am not.

That’s all folks…

Antranig Vartanian

December 22, 2024

We’ve organized a CTF (again), but this time it was way more interesting than the previous years, not just because of the newly introduced challenges, but because finally we are seeing the effects of LLMs in our industry, both the good and the bad, and we can now predict one of the possibilities of the future.

I need to articulate my thoughts for couple of days, and a long post might be published soon.

Antranig Vartanian

October 20, 2024

The story that Stefano shares in Outdated Infrastructure and the Cloud Illusion is a very sad one. I’ve seen this happen even at governments.

Current hypes aside, the NIST definition of Cloud Computing is actually under-hyped. A cloud should be on-demand, broad, elastic and measured. However, it can be Public, as well as Private. People keep forgetting that we can have Private Cloud deployments, and systems like FreeBSD, even Proxmox, have the ability to do that.

We can do better.

Antranig Vartanian

October 18, 2024

Couple of years ago I read the book “Getting Things Done” by David Allen. One of the things he mentioned is that

When I coach a client through this process, the capture phase usually takes between one and six hours, though it did take an entire twenty hours with one person (finally I told him, “You get the idea”)

Initially, I did not believe this. I’m not saying that David was lying, but rather, I cannot believe it took someone twenty hours to “unload” their state of mind.

Today, I take that back. I’ve fallen off the wagon (or is it “on the wagon”?) couple of months ago, and today I decided to recapture and re-implement my setup.

It took me 6 hours, and I’m not even at my peak load. I can’t imagine what would’ve happened if I delayed longer, or took on more projects.

Now that I have 120 things in my “Next Action” list (according to OmniFocus), I can finally feel calm knowing that I know exactly what I have to do. Hell, I even found time to blog about it.

See you tomorrow…