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
78
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
•
Recently I have been investigating one of my Linux server's speed using the...
Andrew Fletcher
•
Find by file name
To perform a find command in terminal use
find / -name...
Andrew Fletcher
•
At first, I attempted
echo 1 > /proc/sys/vm/drop_cachesResponse
-bash: /proc/sys/vm/drop_caches: Permission deniedAdding sudo in front of the command was met with the same result. What about if I execute the shell as root
sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'Success. Caches cleared.
Different types of clearing cache
Clear PageCache only
sudo sh -c 'echo 1 > /proc/sys/vm/drop_caches'Clear dentries and inodes
sudo sh -c 'echo 2 >...
Andrew Fletcher
•
Error when running ckan.ini init
from flask_debugtoolbar import...
Andrew Fletcher
•
My goal was to install a requirements.txt file using pip. First,...
Andrew Fletcher
•
In this article I'll walk through the steps I went through to install Solr on...
Andrew Fletcher
•
Looking to install Solr on your server? Not sure if it worth 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
•
An approach to generating a backup server is using a shell script. A...
Andrew Fletcher
•
Finding the issue with a server 500 error
The Nginx error logs are showing too...
Andrew Fletcher
•
Focusing on the ckan.ini file (/etc/ckan/default/ckan.ini). When I run the...
Andrew Fletcher
•
Following the instructions on CKAN DataStore with a little...