Homepage Questions Blogs My Music
Kaju Burfi's TIL

Today I Learned

As and when I learn something new, typically computer oriented, I'll update it here with a new TIL so that I can refer back to this whenever required.
2026-10-11
Yet another quite cool website!(for circuits)

A really cool website with a bunch of homemade circuits and the like; here. Really old as well, last updated May 2012! I haven't yet put it in the Cool websites section of my homepage because I haven't yet fully explored this. Will probably add it though.

2026-09-09
An LTSpice component discovered! - Arbitrary Voltage Source

LTSpice has a component called Arbitrary Voltage Source, where you can just give any function of time as an input, and it will create the function directly!

2026-09-03
An LTSpice component discovered! - Voltage Controlled Switch

This component acts like a switch with a trigger as the amount of voltage across two of its ends. We can set the threshold as a parameter. Furthermore, we can make use of a simple RC-clock, which is basically an RC circuit, with the voltage out as the inputs to this voltage controlled switch. This gives some amount of time delay. I used it to charge a capacitor to some amount(I gave it a couple time constants), and then modelled a simple LC oscillator with minimal resistance.

2026-06-03
Using minicom!

Minicom is a small cool util used for serial communications(At least that's what I used it for). I used it to oversee UART communications between an FPGA and my laptop. After installing minicom(through apt-get), you should first set it up(sudo minicom -s), where you set the baud rate, number of bits parallel, parity checking, etc. Then you can just directly do sudo minicom, and you get the terminal. I used it to exchange ASCII characters with an FPGA.

2026-05-23
Scripting for TILs(awk and sed)

To simplify making my TILs, I made this small script. It basically opens the HTML file that contains this page, pre-fills it in with some data(like date and basic syntax), so all I have to do is just write out what I learned today. Like I'm doing right now. I also learned that we should use & lt; and & gt;(but without the space) when using "<" and ">" in html code for it to be displayed.


#!/usr/bin/zsh

TIL_file=~/repos/kajuburfi.github.io/til/index.html

line_to_enter=$(awk '/TILPostCard/ {print NR; exit}' $TIL_file)

text="\ \ <div class=\"TILPostCard\">\n    <div class=\"topRight\">$(date -u +%Y-%m-%d)</div>\n    <div class=\"title\"></div>\n    <p></p>\n  </div>\n"

sed -i "$((line_to_enter))i $text" $TIL_file

line_to_type=$(awk '/<p><\/p>/ {print NR; exit}' $TIL_file)

hx $TIL_file:$line_to_type:8

echo -n "Push to GitHub?[Y/n]: "
read confirm
if [ "$confirm" = "Y" ]; then
  cd ~/repos/kajuburfi.github.io/til
  git add index.html
  git commit -m "Add new TIL"
  git push
else
  echo "Not pushing."
fi
    

2026-05-20
RGB lighting control for HP Omen

This repo is a very good source for using RGB colors(and dynamic modes) on your HP Omen laptop.
It's amazing! We can control basically every part that we could with Windows, but in Linux. Further, it's great for scripting. So, for instance, I can make my keyboard blink deep red rapidly if the CPU Utilization is above a certain amount.

Last Edited: