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
44
results
Andrew Fletcher
•
Currently, I have a situation where I have two repositories. The first is where I've held the code since the beginning. The second has come on board recently and is the client repo. However, rather than shut the original down, I want to keep both running with the same code. How do I synchronise them so that they contain the same thing?
Configure a remote that points to the upstream repository in Git to sync changes you make in a fork with the original repository....
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
•
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 file.
Using a symbol : is a shell built-in command that is essence equivalent to the true command and it can be used as a no-op (no operation). It can be used as follows:
# : > filename.txtOR
# true > filename.txt
My initial file was as follows:
21548342 16 Mar 20:27 code.logPost using the command
: > filename.txtThe response was
0 16 Mar 20:27...
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...
Andrew Fletcher
•
Running Docker
Dangerous word... I'm assuming that Docker is installed....
Andrew Fletcher
•
Working in Drupal 9.x, I was loading images via the Media module. Below 1...
Andrew Fletcher
•
Have you noticed through your Google account that there are items being indexed that shouldn't have been? One for me was taxonomy terms. Not important to be followed.
Being indexed on my sitemap (do I just erase those entries on the XML file?)
Being crawled (I am guessing this is with a robots.txt file though I have never created one before)
Being viewed (stumbled upon) -> if this even possible to block?
Resolve these quickly by simply adding disallow in robots.txt...
Andrew Fletcher
•
Z shell (Zsh) is a Unix shell built on top of bash (the default shell for...
Andrew Fletcher
•
A bug bear that I have had for a while with Drupal content is how come the...
Andrew Fletcher
•
To add Erlang repository that also includes the public key for verifying signed...