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
105
results
Andrew Fletcher
•
Create and push to Docker Hub
Creating your own custom image... you need to have a Docker ID. Not sure, well most likely you created it to download Docker Desktop. If you don't have one, go to Docker and sign up.
In your text editor create a file called Dockerfile in the same directory you want to have as your local site. No extension, just Dockerfile. Paste in this code and save the file:
FROM nginx:latest
COPY . /usr/share/nginx/htmlThis tells Docker to use the same nginx...
Andrew Fletcher
•
Running composer on a server... when running the command composer update, screen...
Andrew Fletcher
•
Resetting Docker is basically following the start parameters. All...
Andrew Fletcher
•
It is really simple to switch users in Ubuntu or any other Linux distribution...
Andrew Fletcher
•
Z shell (Zsh) is a Unix shell built on top of bash (the default shell for...
Andrew Fletcher
•
Steps to get the Solr date range widget working.
Steps
Enable the Facets Range Widget sub-module.
Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder. After playing with this for sometime to get it working, I found the best way to install is via composer.
composer require "bower-asset/jquery-ui-slider-pips:^1.11"However, calling this command could produce the following error
[InvalidArgumentException] ...
Andrew Fletcher
•
Following is a series of steps to install Tika and have it running for your Solr...
Andrew Fletcher
•
Working on an Azure server I ran a mysqldump command to generate a copy of the...
Andrew Fletcher
•
The migrate process saves the status of each running migration in the...
Andrew Fletcher
•
When attempting to backup mysql using the mysqldump command
mysqldump -u root...
Andrew Fletcher
•
To remove all the contents from a directory, you need to ask yourself:
Do I want to remove everything including the directory itself?
To remove a directory with all its contents (including all interior folders):
rm -rf /path/to/directoryDo I want to keep the directory, but delete everything else?
Need to remove all the contents of the directory (including all interior directories) but not the directory itself:
rm -rf /path/to/directory/*What about the hidden files and directories?
Wanting to...
Andrew Fletcher
•
How to Create New MySQL User
Before you can create a new MySQL user, you need to...
Andrew Fletcher
•
This short guide explains to you how to extract/unzip .zip archive files to a...
Andrew Fletcher
•
I prefer htop over top on my Linux server. Running a Solr index got...
Andrew Fletcher
•
The generally accepted answer to a mysqldump is:
mysqldump -h [host] -u...