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
236
results
Andrew Fletcher
•
In today's security-conscious world, enforcing HTTPS on your web applications is no longer optional—it's essential. Whether you're dealing with government reports or routine security audits, failing to enforce HTTPS can trigger warnings that leave you scrambling for a solution.
In this article, I’ll walk you through a recent experience of enforcing HTTPS on a Drupal site hosted on an Nginx server. We’ll go over the steps taken, challenges encountered, and some useful tools for ensuring your site...
Andrew Fletcher
•
Introduction
For a while now, one persistent issue has been bugging me: a...
Andrew Fletcher
•
When working on Drupal projects, especially in a collaborative environment, it’s...
Andrew Fletcher
•
If you're working with Drupal on an Ubuntu 24.04 server, it's common to use the...
Andrew Fletcher
•
If you’ve ever encountered strange errors while running a bash script, you’re...
Andrew Fletcher
•
If you've ever worked in a cross-platform development environment, you've likely encountered line ending issues. These can manifest as warnings in Git, such as:
warning: in the working copy of 'file/path/filename', CRLF will be replaced by LF the next time Git touches itThese warnings arise from differences in line endings between Windows (CRLF) and Unix/Linux (LF) systems. This article will guide you through resolving these issues by configuring your repository to handle line endings...
Andrew Fletcher
•
Have you ever wanted to use Terminal with a more fluid style and increase your...
Andrew Fletcher
•
When it comes to text editing, Visual Studio Code (VS Code) is one of the most...
Andrew Fletcher
•
On a server directory with over 100,000 PDF files, I needed to verify the...
Andrew Fletcher
•
Recently, I encountered an issue where my local Docker environment refused to...
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
•
The issue – I have a content type that includes an entity reference revisions...
Andrew Fletcher
•
When building a theme in Drupal, it's often necessary to adapt your site’s UI...
Andrew Fletcher
•
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
•
Dealing with errors in Drupal development is a common occurrence, and...