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
111
results
Andrew Fletcher
•
To review the content of files being generated in the /tmp directory on an Ubuntu server before Microsoft Defender removes them, you can use several approaches. Following is the approach we took.
Real-Time Monitoring
You can set up a script to monitor the /tmp directory and log the contents of new files. Use inotifywait to watch for new files and then copy them to another directory for review.
Install inotify-tools:
sudo apt-get install inotify-toolsCreate a monitoring...
Andrew Fletcher
•
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
•
In the realm of system administration and monitoring, understanding memory usage...
Andrew Fletcher
•
The red flag was when I saw the server disk space is showing a site is taking up...
Andrew Fletcher
•
Continuing on from the Drupal 9 to Drupal 10 upgrade outline written...
Andrew Fletcher
•
To run a SQL command using Drush, use the following sql-query command
drush sql-query "COMMAND"As an example, in the following I will remove all of the records in the Watchdog.
Delete from watchdog
To empty (clear) the watchdog table, which contains Drupal's log messages, using the above noted command. The command to delete all entries from the watchdog table is as follows:
drush sql-query "DELETE FROM watchdog"This command executes a SQL DELETE operation on the watchdog table,...
Andrew Fletcher
•
To resolve the CVE-2022-48624 vulnerability on Ubuntu using Nginx, it's crucial...
Andrew Fletcher
•
Drush open_basedir restriction error
PHP Warning: include(): open_basedir...
Andrew Fletcher
•
To determine the size of a directory using the terminal, you can use the du...
Andrew Fletcher
•
In many terminal text editors, you use find command as reference in Terminal...
Andrew Fletcher
•
You can use the pip list --outdated command to view a list of installed Python packages that have newer versions available. This command will show you which packages are outdated and can be updated to the latest versions.
Here's how you can use it
pip list --outdatedThis command will display a list of installed packages along with their current version and the latest version available. If there is an update available for a package, it will be listed in the output.
To update a specific package,...
Andrew Fletcher
•
To begin, note that Lando is often used for web development and it may not be...
Andrew Fletcher
•
These steps are for Drupal 8 and 9.
Export your database
Order here is...
Andrew Fletcher
•
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first...
Andrew Fletcher
•
The "keystore password was incorrect" error in keytool indicates that the...