Skip to content

Instantly share code, notes, and snippets.

View caseyrichins's full-sized avatar

Casey Richins caseyrichins

  • Utah
View GitHub Profile
@caseyrichins
caseyrichins / npass.sh
Last active November 29, 2024 05:53 — forked from jahil/npass.sh
GRC's Perfect Passwords Generator
#!/bin/bash
# GRC's Perfect Passwords Generator
WGET="wget"
FILE=`mktemp`
trap "shred -ufz $FILE" EXIT
$WGET -q --tries=10 --timeout=5 http://www.google.com -O $FILE &> /dev/null
[ -z "$1" ] && echo -e "\E[31mGRC's\E[37m Ultra High Security Password Generator v0.1\r\033[0m" && echo -e '--------------------------------------------------\n' &&
echo -e '\E[37mUsage: ppassword [\E[31m-an alphanumeric\E[37m ] [\E[32m-as ascii\E[37m ] [ -hex hexadecimal ]' && exit 100
@caseyrichins
caseyrichins / create_multipath.pl
Last active October 8, 2020 19:55
create_multipath.pl - Essentially this script takes the the iscsi target information and creates and friendly name multipath.conf configuration based upon the iscsi volume name.
#!/usr/bin/perl -w
# This is not my script, it is one that I've used for a very long time but don't
# know whom the original author is. Essentally this script takes the the iscsi
# target information and creates and friendly name multipath.conf configuration
# based upon the iscsi volume name. It takes the end string of iscsi target after
# the last "-" to create a frendly dev mapper path. I would like to simplify it
# and re-write it in python but but I haven't had the time to do so and my perl
# skill are limited, so the perl version is maitained with what little changes
# I've made and what limited knowledge of perl I have.