Add image to MP3

You can add album art images to your mp3 files. Use EasyTAG (GUI) or eyed3 (CLI) ID3 tag editors to accomplish that.

Example. Use eyed3 to remove any embedded images, then list options for embedded image file, then embed an image for an icon:

  • eyeD3 --remove-images test.mp3
  • eyeD3 --list-image-types
  • eyeD3 --add-image=test.jpg:ICON test.mp3


Add an image, various text info and a longer comment from a text file:

  • comment=`cat test.txt`;
  • eyeD3 --set-encoding="utf8" --year="2018" --artist="test" --album="test" --publisher="test" --title="test" --comment=:"test":"$comment" --add-image=test.jpg:ICON test.mp3

Mounting a directory in a directory

You can mount a directory inside another directory. It is a functional analogue of having it hard linked, which is normally available only for files.

You can do it either by running a command:

  • mount --bind source_dir destination_dir

or, if you want it to be permanent, adding a line to your /etc/fstab:

  • source_dir   destination_dir   none   defaults,bind   0   0

Fix charset in Midnight Commander

If you see strange characters in mc, with all the line art ruined, run the following command in the terminal, before starting mc:

  • export LANG=en_US.ISO-8859-1

Losslessly rotate JPEG image

Use exiftran to losslessly rotate JPEG images. It preserves EXIF data while doing it. And it can even auto-rotate your images in accordance to the EXIF rotation data.

Example to losslessly autorotate all JPEG images in the current directory:

  • exiftran -ai *.jpg*

Making Gantt charts in Excel

A tutorial on how to make make a Gantt chart in Excel by using standard graphing tools.

Start page for Chome

Speed Dial 2, an extension for Chrome browser, giving you a start page you can add your favorite links to. You can look for it at the Chrome Web Store too.

MHT and EML file formats

Little known fact, that both .mht and .eml files are basically the same thing – plain text file, containing specially formatted HTML text with extra resources, e.g. images, added at the end of the file in base64 encoding.

You can freely change file extension from .mht to .eml and back, for it to be opened by default either by a web browser or an e-mail application.

More reading: