How to do decrypt a pgp message

After sending my public pgp key and getting an encoded message back. I need to decrypt a pgp message. I made a pgp file by opening a text editor and saving it as "mypgpfile.pgp" gpg -o output.txt mypgpfile.pgp The breakdown: gpg - the command to encode/decode pgp …



How to create a PGP key on linux

First you'll want to create your key. gpg --gen-key Then ascii armor it for sharing. gpg --armor --export [email protected] You can view your keys by using the list command. gpg --list-keys



How to check number of mysql connections on linux

I needed to check how many mysql connections my application currently had. Not from the mysql side but from the application linux server. To do so I checked how many connections where on the mysql port (3306). netstat -antp | grep :3306 | wc -l



Asus boot usb

I needed to reinstall Lint Mint on my Asus Laptop. I couldn't figure out how to boot to usb. Turns out it's a tricky procedure. Have your USB drive plugged in Turn the Zenbook on Enter UEFI by pounding on the esc key Arrow to the right to the "Boot …



How to run ghost in the background

For running ghost blog in the background manually, execute the following within your blog directory. cd /path/to/your/install/ nohup npm start </dev/null 1>/path/to/your/install/logs/stdout.log 2>/path/to/your/install/logs/stderr.log & I perfer to run ghost in …



How to change a users shell to bash

How to change a user's shell to bash is a simple one liner. This is how you can do it in debian or ubuntu. chsh -s /bin/bash username



Add swap file in linux on debian

How to add a swap file to an existing file system is almost trivial. First decide how big you want it. I choose 1GB w/ a 1GB RAM machine. Second create the file. dd if=/dev/zero of=/swapfile bs=1024 count=1048576 Next make it a swap. mkswap /swapfile …



How to mount an additional Elastic Block Store Linux

I needed to add an elastic block store to a Ubuntu Linux Server. I created the instance from with the AWS admin console. What was missing was how to have the Ubuntu instance recognize it. Turns out it is fairly simple. Format, and mount. Mount SSH into the instance and …



Install VirtualBox Guest Additions Command Line

I was digging around searching on how to install the VirtualBox Guest additions without the GUI using the command line. Most of the tutorials out there were of no help. Either with bad or outdated information. I found one article on xmodulo that worked for me. Here's the steps I …



How to specify a different git port

I needed to figure out how to specify a different ssh port for git. Turns out it's very easy. Open up your ssh config file. vim /home/your-user-name/.ssh/config Add a new configuration declaration Host git.example.org User your-user-name Port 22222 Save the new config and try that …