Skip to main content
105
results
Andrew Fletcher
Using Homebrew for speed tests... I'm using Speediest CLI - for more details go to https://github.com/sivel/speedtest-cli To install speedtest CLI is is quick by running the following brew install speedtest-cliI had a few brew updates required as you'll see by the response below You have 18 outdated formulae installed. ==> Fetching dependencies for speedtest-cli: mpdecimal, openssl@3 and python@3.11 ==> Fetching mpdecimal ==> Downloading...
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to...
Andrew Fletcher
How to count the number of files in a directory.  At some point you'll have...
Andrew Fletcher
I've recently upgraded the server Ubuntu 20.04 updating the PHP version from 7.4...
Andrew Fletcher
Installing PHP on OSX and it installed PHP 8.2.x.  However, for my...
Andrew Fletcher
Find by file name To perform a find command in terminal use find / -name php.ini -type f find / -name {filename} {type parameters}Note there are many parameters in the commands, so I'll cover a couple regular expressions here.  Such as,  -name matches the string being searched and is case sensitive -iname matches the string being searched and is case insensitive -type f means to find a file with the name being searched.  In this instance php.ini -type d find a...
Andrew Fletcher
I had generated a backup of key directories on the server - see Create a...
Andrew Fletcher
An approach to generating a backup server is using a shell script.  A...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your...
Andrew Fletcher
  JSON structure Outlining the structure of the elements common attributes:...
Andrew Fletcher
In this instance, I'll check the beginning of the string.  I want to focus on the href's that start with /node/.  Which has been added using the variable $catchPhrase. Using the Drupal service path_alias to return the node.nid as follows: /** * Load the node nid from the URL alias. * * @param string $url URL string. * * @return any */ public function getNodeNidFromAlias($url, $phrase) { // Default values. $nid = null; ...
Andrew Fletcher
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...
Andrew Fletcher
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
phpcs issue in Visual Studio Code, I'm receiving this warning in VS...