developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
107
results
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
•
Working on a decoupled React / Drupal 9 site.
Aim: Adjust the output of curated...
Andrew Fletcher
•
How to make React calls on a Drupal 9 backend site using the search functionality
Tools
Drupal
9.4
React
The sample sent through from the front-end is as follows:
https://localhost/search?keyword=&sort=changed&type=%20CommissionerHowever, to run requests, the keyword requires a string. Such as searching the word 'committee'.
https://localhost:8006/search?keyword=committeeIf no keyword is entered, the response will be empty.
No results found for "".How to...
Andrew Fletcher
•
This code is from Drupal 9 back-end for a React front-end via REST API.
Working...
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
•
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. The client was getting no response from the dev company, when they asked if I could have a look. The app hadn't been updated for 18 months. So of course, a product that hasn't been updated in that timeframe is going to have a suite of npm update issues / conflicts.
What is the difference between dependancy and devDependancy packages?
When you install an npm package using npm install...
Andrew Fletcher
•
First off, this isn't the only method to achieve the outcome of emptying a...
Andrew Fletcher
•
Changes in your .env file
Connecting your app to the new environment you need to...
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...