find (and delete) files recursively on linux using find

Just as a reminder to myself, I will repost this post on baeldung: Recursively Deleting Files With a Specific Extension Get an idea of what you’ll be deleting: Reminder: Do backups and check that you’re in the correct location before starting the execution.

repost: remember how to manage root cas in centos

Basically this: How to add Certificate Authority file in CentOS 7 But more importantly: Check if the so installed new CA has made it into the recognized system CAs by doing this: Reference: How do I list all available SSL CA certificates on CentOS 6

LVM Cheatsheet

Just for me to remember the most basic commands: pvdisplay List physical devices.vgdisplay List volume groups.lvdisplay List logical volumes. lvmdiskscan List devices that may be used as physical volumes lvextend Extend logical volume (by percent, up to specified size or by amount)resize2fs Resize file system after extending a logical volume pvcreate Create physical volumevgcreate Create… Continue Reading LVM Cheatsheet

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