Yii framework has a really nice CRUD generator that can speed up building back-end applications, which tend to be rather similar and therefore repetitive. If you prepare reasonable taxonomy of the underlying database tables, it also manages the page headers …

Yii CRUD generator and plural forms Read More »

Tagged with: , ,

I’ve got this blog of mine where I log in every now and then, so whenever there is a new version of WordPress, I see the update reminder message. There is, however, over a dozen other blogs under my wings …

Check the WordPress version of several sites at once Read More »

Tagged with: , ,

Using awk to display information, the print function, by default, adds newline after each iteration. I wanted to copy the results and use them as an actual array in a program and preferred to have them all on one line, …

AWK – print no newline Read More »

Tagged with: , ,

There was this website containing regularly updated content I wanted to follow. Unfortunately, they had no RSS feed available and I didn’t feel like checking on the website every now and then. Also, what I needed was just the posts …

Grep result to a shell variable – no line breaks Read More »

Tagged with: , ,

I’ve got a small home server made from a half-broken laptop nobody wanted any more. The screen was’t working, but otherwise the machine was fine, so I took it, shipped Centos 6 on it and it’s been serving as a …

CentOS 6 and MiniDLNA Read More »

Tagged with: ,

It’s very convenient, even necessary, to use a version control system, e.g. CVS or Git. One can go back in history and easily trace the changes (especially) when something goes wrong. Git, being a distributed system, can be used to …

Subdirectory Checkout with git sparse-checkout Read More »

Tagged with:

If you have an image with standard partitions, you can mount any partition as a loopback device using the offset given by fdisk: user@machine:/home/user# fdisk -l disk.img Disk disk.img: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total …

Mount a disk image containing LVM Read More »

Tagged with: ,

Some tasks you find yourself doing only once in a while, so they never stick in your memory for too long. Adding a new device to Observium (a great monitoring tool), and that device being off the premises, so it’s …

Observium and SNMPv3 Read More »

Tagged with: ,

Following an upgrade in Debian Jessie/testing, I was left with no panels at all after logging into the MATE desktop. Running dpkg -s mate-desktop, I saw that MATE had been changed to 1.8 from the previous 1.6 version. My first …

Broken MATE panel Read More »

Tagged with: , , ,

It’s always best to commit your work only once it’s done. Sometimes the changes span over days or weeks and this is where stashing comes useful. Sometimes, however, I start work at the office and then I want to go …

Git – show all files modified between two commits Read More »