Strip metadata and resize using ImageMagick

Strip metadata and resize using ImageMagick

Ever had to put up some ad on Craigslist or Ebay only to be told your photo filesize is too large? Life is too short to manually resize and compress multiple files to the appropriate specs. Also you might want to remove your metadata as well before uploading. ImageMagick has you covered!

Read More

Getting started with GPG

Getting started with GPG

Privacy and encryption go together like peanut butter and jelly. At the very heart of most encryption strategies is a set of keys and a key exchange. Most of you have probably already heard of PGP (Pretty Good Privacy) and are confused about GPG. Generate a strong 4096 bit key gpg --full-generate-key List generated keys gpg --list-secret-keys Upload key to default servers gpg --send-keys <your_key_uid> Specify a specific remote server gpg --keyserver hkps://keyserver.ubuntu.com --send-keys <your_key_uid> Exporting your key for orther devices gpg --output sec_key.gpg --armor --export-secret-key <…

Read More

Docker n00b guide

Docker n00b guide

Installation:sudo pacman -S docker docker-compose Add yourself to the docker group:sudo gpasswd -a <USER> docker WARNING: Every user you add to the docker group is root equivalent. NOTE: It takes a reboot for this change to take effect. Enable and start deamonsudo systemctl enable --now docker.service docker.socket Common commandsBuild a containerdocker build -t <docker_name> . docker run -d -P <docker_name> OPTIONAL - Name your own docker instance name: sudo docker run -d --name <instance_name> -p 81:80 <docker_name> Show Docker instances with namesdocker…

Read More

Pacman package manager basics

Pacman package manager basics

Installing a packagesudo pacman -S <package> Searching for a packagesudo pacman -Ss <description/name> Removing packagesTo remove a single package, leaving all of its dependencies installed: sudo pacman -R <package> To remove a package and its dependencies which are not required by any other installed package: sudo pacman -Rs <package> Cleaning the package cacheThe built-in option to remove all the cached packages that are not currently installed is: sudo pacman -Sc To clean the entire cache run this (be careful with this one): sudo pacman -Scc Removing unused packages (orphans)pacman -Rns…

Read More

Installing ZSH: One hell of a Shell

Installing ZSH: One hell of a Shell

Most modern distributions still ship with Bash as the default shell. While there is absolutely nothing wrong with Bash in the slightest there is another popular kid on the block called ZSH. ZSH can do most if not all the things Bash can do but with a ton of extra features to boot. It is completely modular and can be installed and configured for low-end systems while also being able to be completely tricked out if performance is of no concern. Let's install and configure this amazing shell! sudo pacman -S zsh zsh-completions Run it once to configure the default…

Read More