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
39
results
Andrew Fletcher
•
When managing a server or developing applications, particularly on an Ubuntu system running Nginx, it's often necessary to verify the existence of files. This is crucial for tasks like deploying new versions, checking configuration files, or ensuring that required assets are in place. In this article, we'll explore how to use command-line queries to check if a file exists, highlighting various options and methods you can use.
Basic File Check with test Command
The test command is a simple...
Andrew Fletcher
•
Managing large directories, especially those filled with a diverse mix of media...
Andrew Fletcher
•
Recently I came across this piece of gold when dealing with databases,...
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
•
To determine the size of a directory using the terminal, you can use the du (disk usage) command. The syntax for this command can vary slightly depending on the operating system you are using, but a common way to use it is as follows:
For Linux and macOS
du -sh /path/to/directory
du
Disk usage
-s
Summarise the total size of the directory and do not include the size of each individual file within the directory
-h
Human-readable format, making the size easier to understand (e.g.,...
Andrew Fletcher
•
How to generate a new private key and submit it to Google Play for signing your...
Andrew Fletcher
•
Visual Studio Code (VS Code) allows you to manage extensions using the VS Code...
Andrew Fletcher
•
The error
> Task :app:packageDebug FAILED
Execution failed for task...
Andrew Fletcher
•
A summary of Node package commands
Short cut commands
npm install...
Andrew Fletcher
•
Each time a release is prepared for Google Play, the steps I work through are as follows.
Preparation to run a build
Check the Gradle build settings
Directed to the build.gradle file using the following file path
~/android/app/The area of code in the build-gradle file to focus:
android {
signingConfigs {
debug {
storeFile file('{file-path}/private_key.pepk')
storePassword '{password}'
keyAlias '{alias}'
keyPassword '{password}'
...
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...
Andrew Fletcher
•
By default the maximum file upload size is set to 2MB. It is not a...
Andrew Fletcher
•
Attempting to run a preview, and I'm seeing the following error in Android...