Skip to main content
37
results
Andrew Fletcher
I'm in an environment where the default branch is staging and I'm attempting to run a git merge.  However, in actioning this command, I'm been greeted with the following response 'not something we can merge' ❯ git merge origin/{branch} merge: origin/{branch} - not something we can mergeTo resolve this, first I attempted to do a git checkout to the branch But this was swiftly meet with "did not match any file(s) known to git" git checkout {branch} error: pathspec '{branch}' did not match...
Andrew Fletcher
This guide has been compiled as a reference tool on how to access field values...
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
Recently I have been investigating one of my Linux server's speed using the...
Andrew Fletcher
I had generated a backup of key directories on the server - see Create a Ubuntu backup shell script.  With a backup in hand, now it was time to test how to unpack a backup and overwrite the directories. First I unpacked the backup to a temporary directory tmp-cc. Now I wanted to replace several of the directories on the server.  Starting with home, var and etc.   But what is an efficient method to overwrite a directory?   Also removing any directories that aren't in the...
Andrew Fletcher
Currently, I have a situation where I have two repositories.  The first is...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your...
Andrew Fletcher
Accessing a remote server using PEM key, and I had the following...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...
Andrew Fletcher
Do you want to know how to add a node alias in a twig file?  Rather than do the set up in a custom module or using your theme file. To be able to create a node alias in a twig file you need to know the node.nid value.  Obviously without it you have nothing to reference from.  In this example, the node.nid value is extracted during a loop.  A fairly standard loop such as {% for row in rows %} // ... script doing some magic ... // {% endfor %}Begin by setting the nid value...
Andrew Fletcher
Currently I'm working through an app that has been abandoned by the developers....
Andrew Fletcher
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
Clear DNS Cache The DNS (Domain Name Service) cache on your Mac helps browsers...
Andrew Fletcher
Changing git push from passphrase?  There are several ways to tackle this...