I've recently had an issue with Digital Ocean servers not being able to ping external websites.
This article has more details: DigitalOcean: Unable to ping external websites.
The following command will concatenate the intermediate certificate bundle with the root certificate.
Afterwards you may need to manually fix the start and end of the certificates.
The following command will crop a video from landscape to portrait.
ffmpeg -i "input.mp4" -vf crop=400:720:442:0 "output-cropped.mp4"
The following code will create an imaged named "my_image" from a Dockerfile (indicated with the "." character)
docker build -t my_image .
docker run -ti my_image /bin/bash
The following lines will install mcrypt on PHP 7.2.
RUN apt-get update -y && \
apt-get install -y libmcrypt-dev && \
pecl install mcrypt-1.0.1 && \
PV can report progress for large MySQL database imports. First, download PV (http://linux.die.net/man/1/pv)
sudo apt-get install pv
To use PV, pass the dump file, then pipe the mysql command specifying the database with -D flag:
In WordPress you can force all emails to be sent from a certain address using the following code in functions.php.
When you use a Digital Ocean server, you may see errors in the 'mail.log' because your shared IP address is blocked.
The easier solution is to use SparkPost, which can send emails for you.