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
132
results
Andrew Fletcher
•
To set an environment variable on Ubuntu, can be achieved via a few options. This depends on whether you want the variable to be system-wide or specific to a user's session. Here are a couple of more common methods for setting environment variables:
Setting environment variables for the current session
You can set an environment variable for the current user's session by using the export command in your shell. The variable will be available as long as the session is active.
To set an...
Andrew Fletcher
•
Whilst installing Python 3.11.6 and running the command 'sudo make altinstall',...
Andrew Fletcher
•
Visual Studio Code (VS Code) allows you to manage extensions using the VS Code...
Andrew Fletcher
•
Adding an SSL wildcard certificate to an Ubuntu server involves several steps....
Andrew Fletcher
•
When logging into Ubuntu server you will see a response similar to
Welcome to...
Andrew Fletcher
•
Forcing https and www or non-www is a process that I was a custom to through .htaccess. In fact I had become very strong at managing and working my .htaccess files. However, what I had become strong in one area, I was oblivious to using other methods. My bad.
Well that was until I had to change my way. Working on an Nginx server, .htaccess was not in play. Instead, I needed to configure the /etc/nginx/sites-available directory.
For me to force SSL and www I...
Andrew Fletcher
•
A summary of Node package commands
Short cut commands
npm install...
Andrew Fletcher
•
Logging into the server, and there are packages to be updated. You know...
Andrew Fletcher
•
git clone git@bitbucket.org:{username}/{repo}.git
And I was unceremoniously...
Andrew Fletcher
•
Something I haven't had to do in a while is to change the name of a Git branch...
Andrew Fletcher
•
Post a NetSkope update, composer would fail when running any command that required accessing an external package. Actually initially all external traffic was being blocked. The error was similar to
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.htmlThis error was also generated when running a basic command
curl https://www.google.com.auSeems like the updated Netskope client Windows machine is blocking...
Andrew Fletcher
•
I need to generate a patch and then apply automatically to my Drupal...
Andrew Fletcher
•
In the terminal type, the following command:
sudo apt updateAfter typing the...
Andrew Fletcher
•
Attempting to run a composer update command, you know the one used...
Andrew Fletcher
•
Post creating a new branch in the repo, next step was to run the checkout...