Blog

How To Install PHP (7.4, 7.3 & 5.6) on Debian 9 Stretch

July 14, 2020

Prerequisites # Login to your Debian 9 system using shell access. For remote systems connect with SSH. Windows users can use Putty or other alternatives applications for SSH connection. ssh root@debian9 Run below commands to upgrade the current packages to the latest version. sudo apt update sudo apt upgrade Let’s execute the following commands to install the required packages first on your system. Then import packages signing key. After that configure PPA for the PHP packages on your system. ...

Fix casks with `depends_on` that reference pre-Mavericks

May 18, 2020

If you get an error of the type Error: Cask 'hex-fiend-beta' definition is invalid: invalid 'depends_on macos' value: ":lion", where hex-fiend-beta can be any cask name, and :lion any macOS release name, run the following command: /usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/perl -i -pe 's/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g' This will remove all depends_on macos references of installed casks.

How to run VLC player as root user

May 18, 2020

sed -i 's/geteuid/getppid/' /usr/bin/vlc Explanation: The initialization script check if the UID is equals to zero. Zero is reserved for the root user. Using sed to replace geteuid for getppid fools the initialization script because it is always > 0. While running the VLC as root is not recommended, it works. Be aware of the risks and obviously do not do it for production environments.

A lawyers christmas greeting

December 31, 2018

Please accept with no obligation, implied or implicit, my best wishes for an environmentally conscious, socially responsible, low stress, non-addictive, gender neutral celebration of the winter solstice holiday, practiced within the most enjoyable traditions of the religious persuasion of your choice, or secular practices of your choice, with respect for the religious/secular persuasions and/or traditions of others, or their choice not to practice religious or secular traditions at all… and a fiscally successful, personally fulfilling, and medically uncomplicated recognition of the onset of the generally accepted calendar year 2019, but not without due respect for the calendars of choice of other cultures whose contributions to society have helped make the United Kingdom great (not to imply that the United Kingdom is necessarily greater than any other country or is the only “United Kingdom” in the Northern hemisphere), and without regard to the race, creed, colour, age, physical ability, religious faith, or sexual orientation of the wishee. ...

List all Azure VM extensions

December 28, 2018

az vm extension image list [ { "name": "AcronisBackup", "publisher": "Acronis.Backup", "version": "1.0.33" }, { "name": "AcronisBackupLinux", "publisher": "Acronis.Backup", "version": "1.0.33" }, { "name": "AlertLogicLM", "publisher": "alertlogic", "version": "1.3.0.1" }, { "name": "AlertLogicLM", "publisher": "AlertLogic.Extension", "version": "1.3.0.0" }, { "name": "AlertLogicLM", "publisher": "AlertLogic.Extension", "version": "1.4.0.0" }, { "name": "AlertLogicLM", "publisher": "AlertLogic.Extension", "version": "1.9.0.0" }, { "name": "AlertLogicLM", "publisher": "AlertLogic.Extension", "version": "1.9.1.0" }, { "name": "AgentWinExt", "publisher": "bmc.ctm", "version": "9.0.0.1" }, { "name": "ChefClient", "publisher": "Chef. ...