If you’ve ever written a bash script with variables, and know that it wasn’t your last one, I promise you, you’ll love this wiki page. It covers a whole lot of different ways to expand and manipulate variable values in bash, all on a single, conveniently organized page.
Category: Sysadmin
System administration is a special are of IT. It also has a special place in my heart. It is an interesting mixture of all the other disciplines, both common across the whole industry, and at the same time unique for each person, company, and geographical location. When I have something to say or share about system administration, I use this category.
The best way to get the full PHP version string
Jeff Geerling shares the best way to get the full PHP version string. I’d think that “php –version” externally or “echo PHP_VERSION” internally would do the job. However, that’s not exactly right, as there are a number of inconsistencies on different platforms. The best option seems to be the combination of the PHP_MAJOR_VERSION, PHP_MINOR_VERSION, and PHP_RELEASE_VERSION constants.
$ php -r 'echo join(".",[PHP_MAJOR_VERSION,PHP_MINOR_VERSION,PHP_RELEASE_VERSION]);'
7.2.12
jq: deep comparison of 5GB files
I’ve blogged about jq – a lightweight and flexible command line JSON processor – a few times already (look here and here). Today I came across this blog post that showcases jq in deep comparison of really large JSON files (5 GB or so). This is not something that I need on a daily basis, but I’m sure it’ll come in handy one day.
Awesome git addons
Awesome git addons is yet another one of those curated awesome lists. This time it’s for git version control tool. And once again, it’s mind blowing.
Git itself is a very flexible and powerful tool. But it truly amazing how far some people take it. In the list you can find anything from aliases for complex commands, to full-featured integrations with GitHub, git flow process, deployment tools, and much more.
MySQL High Availability at GitHub
Shlomi Noach, GitHub’s Senior Infrastructure Engineer, shares some details on both the current and future high availability setup of MySQL databases at GitHub.
This is probably way too far out for most people using MySQL for their web applications. But it does highlight the technical complexity of running high load web applications, and how some of the issues can be solved or worked around.
Pretty fascinating stuff there …Â