This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.endomondo.com/rest/v1/users/14984220/workouts/latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # adapted from: https://pthree.org/2015/09/05/password-generation-in-the-shell/ | |
| # which is inspired by: https://xkcd.com/936/ | |
| # Modified to use a list of 10,000 most common English words. | |
| # Outputs exactly 4 words, separated by a dash | |
| gen-xkcd-pass() { | |
| [ $(echo "$1"|grep -E "[0-9]+") ] && NUM="$1" || NUM=1 | |
| DICT=$(LC_CTYPE=C grep -E "^[a-zA-Z]{3,6}$" /Users/mrunyon/words-common.txt) | |
| for I in $(seq 1 "$NUM"); do | |
| WORDS=$(echo "$DICT"|gshuf -n 4|paste -sd ' ' -) | |
| XKCD=$(echo "$WORDS"|sed 's/ /-/g') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import sys, getopt, pexpect | |
| def main(argv): | |
| username = '' | |
| password = '' | |
| try: | |
| opts, args = getopt.getopt(argv,"hu:p:",["username=","password="]) | |
| except getopt.GetoptError: | |
| print 'check-pwd.py -u <username> -p <password>' | |
| sys.exit(2) |