Skip to main content
97
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
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
Find by file name To perform a find command in terminal use find / -name...
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 script can define directories to backup, and pass those directories as arguments to the tar utility, which creates an archive file. The archive file can then be moved or copied to another location.   Example Shell Script #!/bin/bash # # Backup script # # NAME: daily-backup.sh # PATH: /mnt/e/bin # DESC: Backup scripts, documents and configuration files to .tar # # What to backup # backup_files="/home...
Andrew Fletcher
Creating a bash script Bash scripts are files containing code that tell your...
Andrew Fletcher
How do you generate a .pem file from an existing .ppk key? Is putty on your...
Andrew Fletcher
In this woalk through I am going to use GitHub.  However, the steps are...
Andrew Fletcher
As a web developer, you will most likely need to run local copies of a bunch of...
Andrew Fletcher
Every project has to kick off somewhere.  Yep well that's a no brainer.  However, the number of projects that I've seen where the planning step has been omitted is too high.  A throughly planned out project with as many features scoped before you start coding is critical in completing a project.  Whilst projects and their requirements are always fluid, the initial critical scoping is so important. Fail to plan, planning to fail There is no one way to plan.  Yes I've seen...
Andrew Fletcher
In terminal I ran a regular command - compose update.  Something I've...
Andrew Fletcher
Currently I'm working through an app that has been abandoned by the developers....
Andrew Fletcher
I installed Lando 3.6.2 and Laravel 9.  When I visit the web page, I...
Andrew Fletcher
First off, this isn't the only method to achieve the outcome of emptying a...