Pages

23 April 2020

Birthday 2020 and counting...

Last night I got a lawn mower as a present given to myself. I have never had one before and I felt like having one. I must say it is fantastic and really really fast. I could only try it for half an hour or so but I am very happy.

The problem is that there is not a lot of grass since we are in the middle of the rain season (April) but the grass is starting to grow fast now.



 Anyway the results are great :)












19 April 2020

And meanwhile... life goes on

This morning I discovered hundreds of newborn baby spiders in the garden. What a beautiful sight. No doubt life goes on.


02 April 2020

cpulimit YAIT (Yet Another Impressive Tool)

One of the truly impressive tools I discovered this week is cpulimit. It allows you to limit how much cpu percentage a process can use. It is specially indicated when running cpu intensive applications. In my case it is 'ffmpeg'.                                                                                                     
                                                                                                                                       
I use 'ffmpeg' on a daily basis to convert my .avi videos to .mp4. I often run the script at night with cron.daily but the problem arises when I need to run it during the day. Here comes cpulimit to the rescue:

 $ cpulimit -e ffmpeg -l 800 -b

Here is a quick explanation:
 -e ffmpeg (the process to limit)
 -l 800 (I have 16 cores: 800 = 50%)
 -b Run cpulimit in the background to free the terminal

Really impressive (and handy).