I hereby claim:
- I am jacksonporter on github.
- I am jacksonporterjp (https://keybase.io/jacksonporterjp) on keybase.
- I have a public key ASD9GT-KCE0Lla8sQQZgF5CuaXEnvgYeafj5l09ymaW3Gwo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # Re-written by Jackson Porter | |
| # Forked from: https://gist.github.com/zuckercode/3720747 | |
| # SSH Key generation/new user reference: https://www.digitalocean.com/community/questions/ubuntu-16-04-creating-new-user-and-adding-ssh-keys | |
| # Color Code obtained from: https://gist.github.com/jacksonporter/73f8e9343e61e280cb178aa6ef4ec64e | |
| set -e | |
| eval "$(curl -fsSL https://gist.github.com/jacksonporter/791145218e977ef9165abd9fdf8fbfd4/raw)" # obtains my common bash utilies script and "sources" it |
| #!/usr/bin/env bash | |
| # Written by Jackson Porter | |
| NO_COLOR='\033[0m' | |
| GREEN_COLOR='\033[0;32m' | |
| RED_COLOR='\033[0;31m' | |
| YELLOW_COLOR='\033[1;33m' | |
| function check_if_root { | |
| if [[ ${EUID} -ne 0 ]]; then |
| #!/usr/bin/env bash | |
| # Re-written by Jackson Porter, part of fork: https://gist.github.com/jacksonporter/34e59e05c1df7b7bfc7e29ae9fef8436 | |
| # SSH Key generation/new user reference: https://www.digitalocean.com/community/questions/ubuntu-16-04-creating-new-user-and-adding-ssh-keys | |
| set -e | |
| eval "$(curl -fsSL https://gist.github.com/jacksonporter/791145218e977ef9165abd9fdf8fbfd4/raw)" # obtains my common bash utilies script and "sources" it | |
| print_warning "generating .ssh dir in $(pwd) as user ${GREEN_COLOR}$(whoami)${YELLOW_COLOR}." | |
| mkdir .ssh |
| #!/usr/bin/env bash | |
| set -e | |
| eval "$(curl -fsSL https://gist.github.com/jacksonporter/791145218e977ef9165abd9fdf8fbfd4/raw)" # obtains my common bash utilies script and "sources" it | |
| check_if_root | |
| read -p "Enter a username: " USERNAME | |
| if [ "${USERNAME}" == "" ]; then | |
| print_error "You did not enter a user name." |
| #!/usr/bin/env bash | |
| set -e | |
| if [[ -z "$(which gs)" ]]; then | |
| printf 'Ghostscript (gs) is not installed, please install it to continue.\n\tExample: `brew install gs`\n' | |
| exit 1 | |
| fi | |
| usage="Usage:\n\tall_pdf_files_to_combined_pdf RESULTING_PDF_FILE_NAME pdf1 pdf2 ...\n" |
| #!/usr/bin/env python | |
| import boto3 | |
| import datetime | |
| import json | |
| ACCESS_KEY_LAST_USED_KEY = "AccessKeyLastUsed" | |
| KEY = "LastUsedDate" | |
| USERS_KEY = "users" | |
| NUMBER_OF_KEYS_KEY = "number_of_keys" |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| set -e | |
| LIB_CONTAINERS_DIR="${HOME}/Library/Containers" | |
| SUB_LIB_CONTAINERS=("Microsoft Error Reporting" "Microsoft Excel" "com.microsoft.netlib.shipassertprocess" "com.microsoft.Office365ServiceV2" "Microsoft Outlook" "Microsoft PowerPoint" "com.microsoft.RMS-XPCService" "Microsoft Word" " Microsoft OneNote") | |
| LIB_GROUP_CONTAINERS_DIR="${HOME}/Library/Group Containers" | |
| SUB_LIB_GROUP_CONTAINERS=("UBF8T346G9.ms" "UBF8T346G9.Office" "UBF8T346G9.OfficeOsfWebHost") | |
| function main() { |
curl to get the JSON response for the latest releasegrep to find the line containing file URLcut and tr to extract the URLwget to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \