Skip to content

Instantly share code, notes, and snippets.

View ph-One's full-sized avatar

Kyle A. Matheny ph-One

View GitHub Profile
@ph-One
ph-One / mountEnc.sh
Last active December 22, 2015 18:48
How to mount a second HDD that is Luks encrypted
#!/bin/bash
cryptsetup luksOpen /dev/sdb external
mount /dev/mapper/external /external
@ph-One
ph-One / checkServers.sh
Last active December 22, 2015 18:39
A shell script example of how to check if your servers are up (the quick 'n dirty way.) Provided an example of how to check both an HTTP server, and an FTP server.Use `crontab` to automate this scripts execution.
#!/bin/bash
# Setup a cron job to check on your servers every 5 minutes. #
# #
# crontab -e #
# */5 * * * * /path/to/checkServers.sh #
# #