sudo yum -y install epel-release
sudo yum -y update
Download repository
Install on Docker and expose port on Host | |
$ docker run -d -p 5672:5672--hostname my-rabbit --name some-rabbit -p 15672:15672 rabbitmq:3-management | |
Install on Windows | |
https://www.rabbitmq.com/install-windows.html | |
Installaing with Default Settings and Location | |
# Check RabbitMQ status |
FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.
Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:
ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4
Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.
Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt
If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a
I will be using the root user, but would suggest creating a new user
package com.rajkrrsingh.zk; | |
import java.io.IOException; | |
import java.util.List; | |
import java.util.concurrent.CountDownLatch; | |
import org.apache.zookeeper.CreateMode; | |
import org.apache.zookeeper.KeeperException; | |
import org.apache.zookeeper.WatchedEvent; | |
import org.apache.zookeeper.Watcher; |
Here I have 2 methods for running portainer on windows, a quick, preferred method only requiring a fairly recent version of docker, or a more complicated method to try if that does not work.
This setup will let you run Portainer on windows by using the host.docker.internal endpoint (docker.for.win.localhost
is depricated since docker version 3.2.1, but older versions may use this instead).
Please note:
version: '2' | |
services: | |
haproxy: | |
image: haproxy:alpine | |
volumes: | |
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg | |
ports: | |
- "80:80" | |
depends_on: | |
- nginx |
#!/bin/bash | |
domains=(domain.com www.domain.com) # REPLACE REQUIRED | |
email="nionoku@gmail.com" # REPLACE REQUIRED | |
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits | |
# data_path="./data/certbot" | |
data_path="./certbot" | |
rsa_key_size=4096 | |
regex="([^www.].+)" |