Meisha, just like me, is a fan of Tom and Jerry. I have a good collection of Tom and Jerry videos. The only problem was all those videos are in mkv format and she had to open her laptop to watch those videos every time. I realised the need to convert all of those videos to avi format so that they can be played from the TV. Wrote a bash script to do the conversion for me. Used xargs for parallel processing; ultimately there is a good number of videos and time is precious. That’s all. Check out here, if you have any requirement of such conversion.
I’ve been working with a bash script which monitors different processes. If it detects any error then trigger alert and exit. While working there, I noticed there are different ways to do this e.g.
There are a lot of commands which I use regularly. Some of them are very frequently used. The problem is rarely I remember all the required syntax and probable options for many of them. There is a very popular comic on xkcd on the same. Sometimes I check
man and sometimes I google them. So to help myself I’m accumulating some of them here. Continue reading
I already had set up a reminder process using which I get periodic notification to back up my data. This time I applied the same thought along with email reminder for my due insurance premiums. It’s true that insurance providers send a reminder SMS/ email just before the due date, but I’ve had the experience when their SMS gateway was jammed due to heavy traffic and I got reminder post one month of my due date! So better to be safe than sorry. I kept those due dates in my reminder service.
Last week I had a requirement to fetch details of some records. For simplicity let’s assume records are id of some entity; I need to get details from an API for those id. Let’s also assume that API accepts 100 id at maximum in a single request. I’d almost 1 million id to fetch details.
I’m using Upstart Event System to start uTorrent server when system is up. The setup process is pretty simple and the most useful advantage is- if the job gets terminated then it would be restarted.
Setting up job configuration file-
Few days ago I was working to set up a backup reminder process for myself. After having few searches I observed anacron fits the best to solve my requirement- sending notification at certain frequency and at my availability too. The issue is sytem’s default /etc/anacrontab by default works for root user. We can execute a job for other users too by adding new group and user to the same. When I did that I saw though the execution time has been logged successfully but that job was silently failing to notify me. So I left that approch and setup a separate anacron instance to run for my profile.