ls -l . | egrep -c ‘^-‘
Author: Shafiq Alibhai
How To Install PHP (7.4, 7.3 & 5.6) on Debian 9 Stretch
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 […]
Fix casks with `depends_on` that reference pre-Mavericks
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 […]
How to run VLC player as root user
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
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 […]
List all Azure VM extensions
$ 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” }, […]
How To Find My Public IP Address From Command Line On a Mac OS
Run the following command in the terminal: dig +short myip.opendns.com @resolver1.opendns.com
NPM update all globally installed packages
npm update -g
Failure sending request: StatusCode=0 — Original Error: Code=”ReferencedResourceNotProvisioned” Message=”Cannot proceed with operation because resource used by resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation.” Details=[]
Failure sending request: StatusCode=0 — Original Error: Code=”ReferencedResourceNotProvisioned” Message=”Cannot proceed with operation because resource used by resource is not in Succeeded state. Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation.” Details=[] Fix/hack: Azure may has a rate limit on their api because when I set -parallelism=1 for […]
Import a Resource to Terraform Module
The example below will import an AWS instance into a terraform module: