30 January 2016
I own one host with a dynamic ip and I’am using dyndns to find this host. But from time to time the dyndns-provider changes it’s fingerprint and this host is unable to propergate it’s ip. In such situations I am unable to connect since I don’t know the current ip. I could change the dyndns-provider and just get a stable one, but i don’t wanna lose the domainname and it just happens from time to time. So I want to find out the new ip of my host even if dyndns fails.
25 January 2016
Magnificent app which corrects your previous console command, inspired by a @liamosaur tweet.
19 January 2016
Git was invented by Linus Thorvalds for managing the Linux-kernel-sources. So it’s pretty clear that it is the best tool for managing our own kernel-builds too. I love to use Docker. That’s why I also need the AUFS-Support which is not included in the Linux-Tree. Git can also help us to easily include external kernel-patches. In this article I will clone the linux tree and create an own branch with my prefered kernel-version(and my customized kernel-config). I will pull the AUFS-Patches directly into this branch and compile this kernel afterwards.
15 January 2016
Convert video to different formats:
Mp4 (H.264 / ACC):
ffmpeg -i INPUTFILE -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 "OUTPUTFILE.mp4
Webm (VP8 / Vorbis):
ffmpeg -i "INPUTFILE" -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 "OUTPUTFILE.webm"
Ogv (Theora / Vorbis):
ffmpeg -i "INPUTFILE" -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 "OUTPUTFILE.ogv"
Rotate video 90 clockwise:
ffmpeg -i INPUTFILE.ogv -vf "transpose=1" -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 "OUTPUTFILE.ogv"
Remove sound from video:
ffmpeg -i INPUTFILE.ogv -c copy -an OUTPUTFILE.ogv
15 January 2016
I created 2 tasks in RTOS: one for reading from uart and one for the display(8x8 LED-Matrix). Both tasks are communicating via queues. The space-invaders-programm gets started by pressing F1. If F2 is pressed, the programm will display all keyboard-input on the led-display.
15 January 2016
Many times I have to remotely transfer files between 2 Hosts. And sometimes those hosts are not able to communicate to each other. In order to copy a file from host1 to host2 I had to copy it to my workstation first. But this is not necessary…
15 January 2016
Amavis seems to block some Word documents. I experienced those problems with signed documents. In the logfiles amavis writes:
11 January 2016
cat /etc/shadow | awk -F: '($2==""){print $1}'
11 January 2016
Recently I was confrontated with a strange problem. Logrotate did not rotate logfiles. When I started it in debug-mode I got the following message:
empty log files are not rotated, old logs are removed considering log /var/log/syslog log does not need rotating not running postrotate script, since no logs were rotated
The problem was that some logfiles had a zero size so logrotate did not rotate them. It was quite easy to solve the problem by deleting the files:
2 January 2016
Ian Murdock, founder of the Debian Projectdied at the age of 42.
Rest In Peace Ian and thank you for your amazing work.