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.
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
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: