A quick self-signed certificate for local development

openssl req -x509 -sha256 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 Keep in mind: This is for local development. Put in additional safety for self-signed production certs. Optional: Add the location and company information via parameter so you don’t have to manually enter it: openssl req -x509 -sha256 -newkey rsa:4096 -keyout key.pem -out cert.pem… Continue Reading A quick self-signed certificate for local development

Duplicate/Copy a redis database

Recently I needed to copy a Redis database. After a bit of confusion it’s actually quite easy: redis-cli –raw KEYS ‘*’ | xargs redis-cli MIGRATE 127.0.0.1 6379 “” 1 5000 KEYS Explanation: “Get * (all) KEYS and pipe them as argument for the redis MIGRATE command onto the server on localhost listening on port 6379… Continue Reading Duplicate/Copy a redis database

Use Docker from inside a Docker container

Fascinatedly I found a little gem on the Docker forums! You can run docker inside a Docker container without running an own instance of the Docker daemon inside the container. With a simple hack you can use the host’s daemon inside the container! How? Just host the Docker unix socket as a volume into the… Continue Reading Use Docker from inside a Docker container