COUNT | SCRIPTS WHERE USAGE FUNCTION IS FOUND (blue/green rows) | They do not need fixing. | Usage_Function_Output |
89 | 0D_images2html-very-simple-photoindex-maker.sh | Usage function found | USAGE: 0D_images2html-very-simple-photoindex-maker.sh
##################################################
## THIS PROGRAM MAKES AN INDEX HTML PAGE WITH ALL THE IMAGES
## IN THE PRESENT WORKIND DIRECTORY
## DATE: Friday August 01, 2019
## By: Pali
################################################## |
90 | 1002-rename-all-files-in-folder-by-replacing-a-word.sh | Usage function found | USAGE: 1002-rename-all-files-in-folder-by-replacing-a-word.sh
## FILENAME: 1002-rename-all-files-in-folder-by-replacing-a-word.sh
## THIS PROGRAM RENAMES ALL FILES IN PWD THRU COMMAND LINE BY REPLACING USER CHOSEN WORD WITH A DESIRED ONE.
###################################################
## Created: 2020-02-14
## By: Pali
################################################### |
91 | autohotkey_frontl.sh | Usage function found | USAGE: autohotkey_frontl.sh
##################################################################################
## CREATE LeelasRecipes HUGO recipe file with frontmatter inserted.
## IMPORTANT NOTE: This script needs a user input at runtime.
################################################################################## |
92 | autohotkey_frontm.sh | Usage function found | USAGE: autohotkey_frontm.sh
##################################################################################
## CREATE MGGK HUGO recipe file with frontmatter inserted.
## IMPORTANT NOTE: This script needs a user input at runtime.
################################################################################## |
93 | autohotkey_frontp.sh | Usage function found | USAGE: autohotkey_frontp.sh
##################################################################################
## Insert PaliNOTES - HUGO frontmatter with proper dates
## IMPORTANT NOTE: This script needs a command line argument to run.
################################################################################## |
94 | autohotkey_frontm_sponsored.sh | Usage function found | USAGE: autohotkey_frontm_sponsored.sh
##################################################################################
## CREATE MGGK HUGO sponsored file with frontmatter inserted.
## IMPORTANT NOTE: This script needs a user input at runtime.
## Created by: Pali
## Created on: July 17, 2021
################################################################################## |
95 | 515-mggk-open-markdown-file-in-code-editor-for-a-searched-url.sh | Usage function found | USAGE: 515-mggk-open-markdown-file-in-code-editor-for-a-searched-url.sh
###############################################################################
## FILENAME: 515-mggk-open-markdown-file-in-code-editor-for-a-searched-url.sh
## USAGE: sh 515-mggk-open-markdown-file-in-code-editor-for-a-searched-url.sh
###############################################################################
## THIS PROGRAM SEARCHES FOR ALL FILES LOCATED IN SEARCH_DIR = /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/content
## IT FINDS ALL THE FILES WHICH HAVE THE A PARTICULAR SEARCHED URL IN YAML FRONTMATTER.
## FOR ALL THE LINES CONTAINING THE PHRASE 'url: SEARCHED_URL'
## THEN, IT LISTS ALL THOSE MARKDOWN FILENAMES IT FOUND
## THEM IN. THEN IT OPENS THE FIRST FOUND FILE IN CODE EDITOR FOR FURTHER MODIFICATION.
###############################################################################
## CODED ON: September 14, 2019
## CODED BY: PALI
############################################################################### |
96 | 506-mggk-search-word-in-tags-and-categories.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/506-mggk-search-word-in-tags-and-categories.py
##############################################################################
## THIS SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO MARKDOWN FILES.
## IT ALSO SEARCHES FOR A SEARCH TERM AND FINDS THAT WORD IN THE TAGS AND CATEGORIES
## FOUND BY PARSING ALL THE MARKDOWN FILES IN ROOTDIR
#######################################
## IMPORTANT NOTE:
## This program needs python package = python-frontmatter
## Install it by learning from: https://github.com/eyeseast/python-frontmatter
#######################################
## MADE ON: APRIL 02 2019
## BY: PALI
##############################################################################
|
97 | 700-mggk-step0-EXTRACT_LD_JSON_BLOCKS_FROM_MGGK_URLS.sh | Usage function found | USAGE: 700-mggk-step0-EXTRACT_LD_JSON_BLOCKS_FROM_MGGK_URLS.sh
##################################################################################
## THIS PROGRAM EXTRACTS URLS FROM ALL MD FILES WITH MGGK_JSON_RECIPE BLOCK
## AND THEN FEEDS THOSE URLS TO A EXTERNAL PYTHON SCRIPT WHICH THEN USES
## BEAUTIFUL SOUP TO EXTRACT ALL VALID LD+JSON SCRIPT BLOCKS FOUND ON THOSE URLs.
##################################################################################
## Created on: November 8, 2019
## Coded by: Pali
######################################################################################### |
98 | 700-mggk-step1-EXTRACT_LD_JSON_BLOCKS_FROM_MGGK_URLS.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/700-mggk-2020/700-mggk-step1-EXTRACT_LD_JSON_BLOCKS_FROM_MGGK_URLS.py
##################################################################################
## THIS SCRIPT GETS ARGUMENTS INPUTS FROM WITHIN A BASH SCRIPT
# THIS PROGRAM USES BEAUTIFUL SOUP TO EXTRACT ALL VALID LD+JSON SCRIPT BLOCKS ON
## THOSE URLS.
##################################################################################
## MADE BY: PALI
## CODED ON: 2020-03-03
##############################################################################
|
99 | 599_mggk_CREATE_ALL_MISSING_STEPS_IMAGES_DIRECTORIES.sh | Usage function found | USAGE: 599_mggk_CREATE_ALL_MISSING_STEPS_IMAGES_DIRECTORIES.sh
################################################################################
## USAGE:
#### > bash 599_mggk_CREATE_ALL_MISSING_STEPS_IMAGES_DIRECTORIES.sh
################################################################################
## This program creates missing recipe steps directories with white 1x1px images
## which are then moved by the user to the recipe steps images folder in MGGK hugo
## directory.
################################################################################
## CREATED BY: PALI
## CREATED ON: December 18, 2020
################################################################################ |
100 | 504a-mggk-copy-markdown-files-with-matching-grep-pattern.sh | Usage function found | USAGE: 504a-mggk-copy-markdown-files-with-matching-grep-pattern.sh
######################################################################
## THIS BASH PROGRAM TAKES AN INPUT DIRECTORY AND SEARCHES FOR A GREP
## PATTERN IN THE CONTENT OF ALL THE MARKDOWN FILES. THEN COPIES ALL THE
## MATCHING FILES FROM THE INPUT DIRECTORY TO THE OUTPUT DIRECTORY.
######################################################################
## DATE: FEB 15 2019
## MADE BY: PALI
######################################################################
## USAGE: sh 504-mggk-move-markdown-files-with-matching-grep-pattern
## where, is the search term, such as 'tips and tricks'
###################################################################### |
101 | 503c_mggk-ADD-NEW-CATEGORY-AND-MAKE-COLLECTION-from-hyperlinks-file.sh | Usage function found | USAGE: 503c_mggk-ADD-NEW-CATEGORY-AND-MAKE-COLLECTION-from-hyperlinks-file.sh
################################################################################
## USAGE:
#### > bash 503c_mggk-ADD-NEW-CATEGORY-AND-MAKE-COLLECTION-from-hyperlinks-file.sh
################################################################################
## THIS SCRIPT:
## STEP 1 => ASKS THE USER TO SELECT A TEXT FILE CONTAINING MGGK URLS.
## STEP 2 => ASKS AND ADDS A NEW COLLECTION CATEGORY PROVIDED BY THE USER TO ALL MD FILES
## FOUND FROM THOSE MGGK URLS. PLEASE NOTE THAT THE NEW CATEGORY WILL ONLY BE
## ADDED IF NOT ALREADY PRESENT. ELSE, IT WILL BE IGNORED.
## STEP 3 => OUTPUTS (ON CLI) THE NEW CATEGORY LINE TO BE ADDED TO THE NEW
## COLLECTION MD FILE.
################################################################################
## NOTE: THIS PROGRAM AUTOMATICALLY EXRACTS UNIQUE URLs, SO DUPLICATE URLS ARE OKAY.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-11-15
################################################################################ |
102 | 516-mggk-inserting-and-adding-an-extra-variable-with-value-in-yaml-frontmatter-after-date-line.sh | Usage function found | >>>> THIS SCRIPT SHOULD NEVER BE RUN AGAIN, NOT EVEN BY MISTAKE. ITS JOB IS DONE.
>>>> HENCE, THE PROGRAM WILL EXIT NOW. |
103 | 503a-mggk-hugo-list-collection-maker-from-markdown-files.sh | Usage function found | USAGE: 503a-mggk-hugo-list-collection-maker-from-markdown-files.sh
#####################################################################
## THIS PROGRAM FINDS OUT THE URL, FEATURED IMAGE AND TITLE FROM ALL THE *.MD (MARKDOWN)
## FILES PRESENT IN THE PRESENT WORKING DIRECTORY AND CREATES A NUMBERED LIST WITH
## TITLES WITH LINK AND IMAGES AND SAVES THEM TO AN HTML FILE.
## FILENAME: 503a-mggk-hugo-list-collection-maker-from-markdown-files.sh
## DATE: 9 FEB 2019
## BY: PALI
#####################################################################
### Change the following variables only, if you have to #############
SITE_PREFIX="https://www.mygingergarlickitchen.com"
FILENAME='_delete_this_after_taking_results/0-FINAL.html'
STARTCOUNT=1 ## RESET THE STARTCOUNT TO 1 FOR NORMAL USE
##################################################################### |
104 | 597b-mggk-REPLACING-first_published_on_VARIABLE-VALUE-IN-YAML-FRONTMATTER-from-CSV-file.sh | Usage function found | USAGE: 597b-mggk-REPLACING-first_published_on_VARIABLE-VALUE-IN-YAML-FRONTMATTER-from-CSV-file.sh
################################################################################
## THIS BASH SCRIPT REPLACES FIRST_PUBLISHED_ON TAG VALUES IN ORIGINAL MD FILES,
## USING A CSV FILE (REQUIREMENTS_FILE). THIS CSV
## FILE SHOULD BE PRESENT IN /home/ubuntu/GitHub/HASHBANGHACKS-WEBAPP AND SHOULD ONLY HAVE TWO COLUMNS.
## COLUMNS = (URL, PUBLISHED_DATETIME)
##------------------------------------------------------------------------------
## REQUIREMENTS_FILE = 597b_MGGK_REQUIREMENT_FILE_CSV.CSV
##------------------------------------------------------------------------------
## USAGE:
## bash 597b-mggk-REPLACING-first_published_on_VARIABLE-VALUE-IN-YAML-FRONTMATTER-from-CSV-file.sh
##------------------------------------------------------------------------------
## IMPORTANT NOTE:
## This bash program uses a python command-line utility 'csvkit', which can be
## installed by running => pip3 install csvkit
## Learn more at: https://csvkit.readthedocs.io/en/latest/index.html
##------------------------------------------------------------------------------
## CREATED ON: Monday December 2, 2019
## CREATED BY: Pali
################################################################################ |
105 | 505A-mggk-custom-newsletter-creation-from-hyperlinks-text-file.sh | Usage function found | >>>> PWD is /mnt/c/Users/abhip/Desktop/Y
USAGE: 505A-mggk-custom-newsletter-creation-from-hyperlinks-text-file.sh
###############################################################################
## THIS PROGRAM READS A NEWSLETTER TEMPLATE FILE IN PWD CONTAINING HYPERLINKS AND
## TEXT CONTENT. IF THIS FILE IS NOT FOUND, THE IT AUTOCREATES IT FOR THE
## USER TO FILL, AND THEN THE USER NEEDS TO RUN THIS SCRIPT AGAIN.
#### IT THEN CREATES A
#### CUSTOM NEWSLETTER HTML FILE READY TO BE SENT THRU EMAIL TO
#### EMAIL SUBSCRIBERS, AFTER COPYING AND PASTING ITS SOURCE CODE INTO ANY
#### EMAIL PROGRAM (SENDY, MAILCHIMP, ETC.)
##############################################################################
## REQUIREMENTS => /mnt/c/Users/abhip/Desktop/Y/505A-newsletter-template.txt
## THIS SCRIPT NEEDS A NEWSLETTER TEMPLATE FILE IN PWD, CONTAINING HYPERLINKS
## AND TEXT CONTENT.
##############################################################################
## MADE BY: PALI
## DATE: NOV 01, 2020
############################################################################### |
106 | 505-mggk-rss-to-email-xml-feed-parser.sh | Usage function found | USAGE: 505-mggk-rss-to-email-xml-feed-parser.sh
###############################################################################
## THIS PROGRAM PARSES THE INDEX.XML RSS FEED FILE FROM MGGK URL, AND CREATES
## AN HTML FILE READY TO BE SENT THRU EMAIL TO EMAIL SUBSCRIBERS, AFTER COPYING
## AND PASTING ITS SOURCE CODE INTO ANY EMAIL PROGRAM (SENDY, MAILCHIMP
## OR SENDGRID)
##############################################################################
## MADE BY: PALI
## DATE: MARCH 17 2019
############################################################################### |
107 | 512-mggk-get-all-page-links-from-local-sitemap-xml-file.sh | Usage function found | USAGE: 512-mggk-get-all-page-links-from-local-sitemap-xml-file.sh
#################################################################################
## THIS FILENAME = 512-mggk-get-all-page-links-from-local-sitemap-xml-file.sh
## USAGE: > sh 512-mggk-get-all-page-links-from-local-sitemap-xml-file.sh
#################################################################################
## THIS SCRIPT READS ALL SITEMAP XML FILES PRESENT IN PWD AND CREATES TEXT FILES
## WHICH CONTAINING ALL LINKS (WITH AND WITHOUT TAGS AND NON-CATEGORIES LINKS)
#################################################################################
## REQUIREMENT: ###########################
#### For this script, you need to have sitemap xml files locally stored
#### in the Present Working Directory.
#################################################################################
###############################################################################
## CODED ON: MAY 7, 2019
## CODED BY: PALI
############################################################################### |
108 | 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file.sh | Usage function found | USAGE: 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file.sh
###############################################################################
## THIS SCRIPT CREATES AN HTML FILE FROM A TEXT FILE CONTAINING A LIST OF
## MGGK URLs, TO MAKE A FINAL COLLECTION. IT NEEDS AN ARGUMENT, ELSE THE DEFAULT
## FILE WILL BE USED (= 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file-requirements.txt).
## THIS PROGRAM AUTOMATICALLY EXRACTS UNIQUE URLs, SO EVEN IF THE DUPLICATES URLs ARE
## PRESENT IN 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file-requirements.txt, IT IS OKAY. THEY WILL BE TAKEN CARE OF.
## USAGE:
#### sh 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file.sh 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file-requirements.txt
#### OR
#### sh 503b-mggk-hugo-list-collection-maker-from-hyperlinks-file.sh $1
###############################################################################
## NOTE: REQUIREMENTS_FILE should be present in => /mnt/c/Users/abhip/Desktop/Y
## REQUIREMENTS_FILE="503b-mggk-hugo-list-collection-maker-from-hyperlinks-file-requirements.txt"
## OR
## REQUIREMENTS_FILE="$1"
###############################################################################
## DATE: March 18 2019
## MADE BY: PALI
############################################################################### |
109 | 999Z-mggk-PERSONAL-COMMANDS-FOR-ANU.sh | Usage function found |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> START_TIME = Tue Jan 21 16:51:45 EET 2025 <<<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
USAGE: 999Z-mggk-PERSONAL-COMMANDS-FOR-ANU.sh
################################################################################
## USAGE:
#### > bash 999Z-mggk-PERSONAL-COMMANDS-FOR-ANU.sh $1
#### WHERE, $1 CAN BE ONE OF (anu, pali, leela)
################################################################################
## THIS SCRIPT SHOWS A LIST OF PERSONAL COMMANDS TO BE USED BY DIFFERENT USERS
## AND ASKS FOR USER INPUT ABOUT WHICH COMMAND THE USER WANTS TO RUN FROM THAT
## LIST. FINALLY, IT RUNS THE CHOSEN COMMAND.
################################################################################
## REQUIREMENT: THIS SCRIPT NEEDS A CLI ARGUMENT TO RUN.
################################################################################
## CREATED BY: PALI
## CREATED ON: NOV 05, 2020
################################################################################ |
110 | 999-mggk-extract-hyperlinks-and-images-links-with-beautifulsoup.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/999-mggk-extract-hyperlinks-and-images-links-with-beautifulsoup.py
##############################################################################
## THIS PROGRAM EXPECTS A USER INPUT AS A URL, SO THAT IT CAN EXTRACT THE LINKS FROM IT.
## THIS PROGRAM USER PYTHON PACKAGE BEAUTIFULSOUP TO EXTRACT ALL RELEVANT INFORMATION.
## MADE BY: PALI
## CODED ON: 2020-03-03
##############################################################################
|
111 | 702-mggk-CREATE-LD-JSON-FAQ-BLOCKS-FROM-MD-FILES.sh | Usage function found | USAGE: 702-mggk-CREATE-LD-JSON-FAQ-BLOCKS-FROM-MD-FILES.sh
###############################################################################
## THIS SCRIPT CREATES FAQS JSON FILES BY PARSING ALL MD FILES PRESENT IN THE
## CHOSEN HUGO_CONTENT_DIR.
## It then moves all those faqs json files + a faqs summary file to the proper
## hugo project directories.
###############################################################################
## USAGE: bash 702-mggk-CREATE-LD-JSON-FAQ-BLOCKS-FROM-MD-FILES.sh
###############################################################################
## Coded by: PALI
## On: October 12, 2020
############################################################################### |
112 | 10a-mggk-create-index-for-food-photography-images.sh | Usage function found | USAGE: 10a-mggk-create-index-for-food-photography-images.sh
###############################################################################
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH
## ALL THE IMAGES IN WORKING DIRECTORY + NON-RECURSIVELY -> FOR FOOD PHOTOGRAPHY
## IMAGES
###############################################################################
## Coded by: PALI
## On: JULY 29, 2020
############################################################################### |
113 | 999-02-mggk-find-domain-creation-dates-for-all-valid-urls-in-all-md-files.sh | Usage function found | USAGE: 999-02-mggk-find-domain-creation-dates-for-all-valid-urls-in-all-md-files.sh
################################################################################
## THIS PROGRAM PERFORMS THESE IN STEPS FROM MULTIPLE TEXT FILES:
#### First, finds all the URLs recursively in multiple text/md files, then:
#### STEP 1: EXTRACTS THE INDIVIDUAL URLS AND SAVE EACH IN A VARIABLE
#### STEP 2: FIND THE CREATION DATE OF THE DOMAIN OF THAT URL
#### STEP 3: THROUGH CLI, FIND THE DOMAIN AUTHORITY (DA) OR DOMAIN RANK (DR) OR PAGERANK
################################################################################
## DATE: Monday September 2, 2019
## CREATED BY: Pali
################################################################################ |
114 | 9999_mggk_create_mggk_and_localhost_hyperlinks_from_all_mdfiles_in_pwd.sh | Usage function found | USAGE: 9999_mggk_create_mggk_and_localhost_hyperlinks_from_all_mdfiles_in_pwd.sh
################################################################################
## USAGE:
#### > bash 9999_mggk_create_mggk_and_localhost_hyperlinks_from_all_mdfiles_in_pwd.sh
################################################################################
## THIS PROGRAM READS ALL MD FILES IN CURRENT DIRECTORY RECURSIVELY, AND THEN
## EXTRACTS THEIR URLS AND CREATES AN HTML OUTPUT FILE WITH THEIR LOCALHOST AND
## MGGK URLS.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-29
################################################################################ |
115 | 513A-mggk-EXAMPLE-BEAUTIFUL-SOUP4-SCRIPT-FOR-TESTING.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/513-run-mggk-python-scripts-using-beautifulsoup/513A-mggk-EXAMPLE-BEAUTIFUL-SOUP4-SCRIPT-FOR-TESTING.py
##############################################################################
## TEST PYTHON SCRIPT TO TEST BEAUTIFUL SOUP4 LIBRARY USAGE USING URL
## CODED ON: Saturday May 23, 2019
## USAGE ON COMMAND PROMPT: python3 THIS_SCRIPT_FILE.PY
##############################################################################
|
116 | 513-mggk-step1-read-markdown-files-yaml-frontmatter-and-create-csv.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/513-run-mggk-python-scripts-using-beautifulsoup/513-mggk-step1-read-markdown-files-yaml-frontmatter-and-create-csv.py
##############################################################################
## THIS PYTHON SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO MARKDOWN FILES.
## FOUND BY PARSING ALL THE MARKDOWN FILES IN ROOTDIR
## THEN CREATE A COMBINED CSV FILE FOR ALL THE RELEVANT YAML KEYS
#######################################
## IMPORTANT NOTE:
## This program needs python package = python-frontmatter
## Install it by learning from: https://github.com/eyeseast/python-frontmatter
#######################################
## MADE ON: MAY 23 2019
## BY: PALI
##############################################################################
|
117 | 513-mggk-step2-python-script-using-beautifulsoup-for-easyrecipe-html-variable-extraction-from-md-files.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/513-run-mggk-python-scripts-using-beautifulsoup/513-mggk-step2-python-script-using-beautifulsoup-for-easyrecipe-html-variable-extraction-from-md-files.py
##############################################################################
## THIS PYTHON SCRIPT USES BEAUTIFUL SOUP 4 LIBRARY TO EXTRACT ALL HTML CODE RECIPE
## VARIABLES PRESENT IN THE MARKDOWN FILES OF ALL ORIGINAL EASYRECIPE MD FILES
#### IT ALSO CREATES AN OUTPUT CSV FILE WITH ALL THOSE EXTRACTED VARIABLES
#### (SEE SUCCESS FILE).
###############################################################################
## CODED ON: May 22, 2019
## CODED BY: PALI
##############################################################################
|
118 | 513-mggk-step3-read-and-merge-two-csv-files-to-create-recipe-yaml-files.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/513-run-mggk-python-scripts-using-beautifulsoup/513-mggk-step3-read-and-merge-two-csv-files-to-create-recipe-yaml-files.py
##############################################################################
## THIS PYTHON SCRIPT READS A CSV FILE OBTAINED FROM GOOGLE SHEETS.
## THAT CSV CONTAINS THE NECESSARY TEXT CONTENT FOR EACH MGGK URL
## ARRANGED AS ONE ROW PER URL.
## WE WILL USE THIS CSV FILE TO OUTPUT ONE YAML RECIPE FILE FOR INPUT EACH ROW.
#######################################
#######################################
## MADE ON: MAY 24 2019
## BY: PALI
##############################################################################
|
119 | 513-mggk-run-this-for-using-running-multiple-python-scripts-using-beautiful-soup-to-create-yaml-recipes.sh | Usage function found | USAGE: 513-mggk-run-this-for-using-running-multiple-python-scripts-using-beautiful-soup-to-create-yaml-recipes.sh
###############################################################################
## FILENAME: 513-mggk-run-this-for-using-running-multiple-python-scripts-using-beautiful-soup-to-create-yaml-recipes.sh
## USAGE: sh 513-mggk-run-this-for-using-running-multiple-python-scripts-using-beautiful-soup-to-create-yaml-recipes.sh
###############################################################################
## REQUIREMENT FILE (Make sure that this file is present in PWD):
#### _TMP_513_STEP1_OUTPUT.CSV
#### _TMP_513_STEP2_OUTPUT_FILE_AFTER_SUCCESS_EDITED.CSV
###############################################################################
## THIS PROGRAM RUNS TWO UNDERLYING PYTHON SCRIPTS, WHICH CREATE BULK YAML
## RECIPE FILES FROM GOOGLE SHEETS CSV + ONE OTHER CSV FILE
## SEE 513-mggk-*.py PYTHON SCRIPTS FOR MORE INFO.
###############################################################################
## CODED ON: MAY 25, 2019
## CODED BY: PALI
############################################################################### |
120 | 599-mggk-ASSIGN-RANDOM-PUBLISHING-DATES-FOR-POSTS-IN-YAML-FRONTMATTER.sh | Usage function found | USAGE: 599-mggk-ASSIGN-RANDOM-PUBLISHING-DATES-FOR-POSTS-IN-YAML-FRONTMATTER.sh
###############################################################################
## THIS PROGRAM CHANGES THE POST DATES IN THE YAML FRONTMATTER OF THOSE POSTS
## WHICH ARE OLDER THAN 90 DAYS FROM THE DAY OF THIS PROGRAM RUN.
## FOR THIS, WE NEED TO CONVERTED ALL DATES TO SECONDS FROM EPOCH (MEANING
## SECONDS PASSED FROM 1970-01-01:00:00:00)
###############################################################################
## CODED ON: Friday August 17, 2021
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates in yaml frontmatter of all files in content directory
#### 3. Compare the date in each file thus found with the one we selected
#### about 90 days ago from today.
#### 4. If the date found is older, then assign a new date between
#### 30 and 90 days ago from today, for that file.
#### 5. Insert this new date in the current file under execution.
#### 6. Check everything is as it should be in Github Desktop. Make sure that
#### only the 'date' line in yaml frontmatter is changed after the
#### execution of this bash script.
###############################################################################
# USAGE (run the following command):
# > bash 599-mggk-ASSIGN-RANDOM-PUBLISHING-DATES-FOR-POSTS-IN-YAML-FRONTMATTER.sh
############################################################################ |
121 | 509-mggk-nofollow-link-maker-from-input-csv-file.sh | Usage function found | USAGE: 509-mggk-nofollow-link-maker-from-input-csv-file.sh
################################################################################
## FILENAME = 509-nofollow-link-maker-from-input-csv-file.sh
################################################################################
## REQUIREMENTS :
#### FILE = 509-REQUIREMENT-FILE-COMMA_SEPARATED.CSV should be present in PWD.
################################################################################
## THIS FILE CREATES READYMADE NOFOLLOW LINKS TEXT FROM AN INPUT CSV FILE.
## USAGE:
#### > sh 509-nofollow-link-maker-from-input-csv-file.sh
################################################################################
######### STRUCTURE OF MYFILE_COMMA_SEPARATED.CSV ##############################
## NOTE: This in a csv file with 3 columns => [md_filename, anchorText, anchorText_URL]
#### ...
#### ...
#### 2018-03-19-gut-friendly-delicious-indian-kanji-for-your-tummy.md, Google is great, http://www.google.com
#### 2018-03-30-things-to-consider-for-the-right-cold-brew.md, Yahoo is great, http://www.google.com
#### 2018-04-02-examples-of-regional-dishes-in-south-france.md, Goto Concepro Website, https://www.concepro.com
#### ...
#### ...
################################################################################ |
122 | 114b_mggk_make_imagemagick_very_fancy_custom_collage.sh | Usage function found | USAGE: 114b_mggk_make_imagemagick_very_fancy_custom_collage.sh
################################################################################
## THIS PROGRAM MAKES A COLLAGE BY MAKING ROWS OF SUBCOLLAGES ...
## USING IMAGES PRESENT IN A FOLDER. IF NO DIMENSIONS ARE PROVIDED, IT WILL USE
## DIMENSIONS OF 800x1200, MOST SUITABLE FOR MGGK PURPOSES.
################################################################################
## CODED ON: Sunday October 20, 2019
## CODED BY: PALI
###############################################################################
## USAGE (run the following command):
## > bash 114b_mggk_make_imagemagick_very_fancy_custom_collage.sh
###############################################################################
#### IMPORTANT NOTE:
#### REQUIREMENTS_FILE (=_collageformat.txt) SHOULD BE IN /home/ubuntu/GitHub/HASHBANGHACKS-WEBAPP
############################################################################### |
123 | 902-linkchecker-extract-all-internal-external-images-links-from-given-urls.sh | Usage function found | USAGE: 902-linkchecker-extract-all-internal-external-images-links-from-given-urls.sh
################################################################################
## USAGE:
#### > bash 902-linkchecker-extract-all-internal-external-images-links-from-given-urls.sh
################################################################################
## This script runs linkchecker program and extracts all internal + external +
## images links into various text files for a given url via user input.
## Ther user can also provide path to a local HTML file to extract the links from.
#########################################
## IF THE USER INPUT IS ONE LINE, THEN IT WILL BE TAKEN FROM INPUT, ELSE
## IN CASE OF MULTIPLE URLS, IT WILL BE READ FROM AN EXTERNAL TEXT FILE IN PWD.
## THIS FILE WILL BE OPENED IN THE EDITOR AUTOMATICALLY FOR EDITING.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-13
################################################################################ |
124 | 506A-step2-read-google-sheets-csv-and-merge-two-csv-files-to-create-recipe-yaml-files.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/506A-mggk-run-multiple-python-scripts/506A-step2-read-google-sheets-csv-and-merge-two-csv-files-to-create-recipe-yaml-files.py
##############################################################################
## THIS PYTHON SCRIPT READS A CSV FILE OBTAINED FROM GOOGLE SHEETS.
## THAT CSV CONTAINS THE NECESSARY TEXT CONTENT FOR EACH MGGK URL
## ARRANGED AS ONE ROW PER URL.
## WE WILL USE THIS CSV FILE TO OUTPUT ONE YAML RECIPE FILE FOR INPUT EACH ROW.
#######################################
#######################################
## MADE ON: MAY 09 2019
## BY: PALI
##############################################################################
|
125 | 506A-step1-read-markdown-files-yaml-frontmatter-and-create-csv.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/506A-mggk-run-multiple-python-scripts/506A-step1-read-markdown-files-yaml-frontmatter-and-create-csv.py
##############################################################################
## THIS PYTHON SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO MARKDOWN FILES.
## FOUND BY PARSING ALL THE MARKDOWN FILES IN ROOTDIR
## THEN CREATE A COMBINED CSV FILE FOR ALL THE RELEVANT YAML KEYS
#######################################
## IMPORTANT NOTE:
## This program needs python package = python-frontmatter
## Install it by learning from: https://github.com/eyeseast/python-frontmatter
#######################################
## MADE ON: MAY 09 2019
## BY: PALI
##############################################################################
|
126 | 506A-mggk-run-this-for-running-two-python-scripts-to-create-yaml-recipes.sh | Usage function found | USAGE: 506A-mggk-run-this-for-running-two-python-scripts-to-create-yaml-recipes.sh
###############################################################################
## FILENAME: 506A-mggk-run-this-for-running-two-python-scripts-to-create-yaml-recipes.sh
## USAGE: sh 506A-mggk-run-this-for-running-two-python-scripts-to-create-yaml-recipes.sh
###############################################################################
## REQUIREMENT FILE (Make sure that this file is present in PWD):
#### _STEP2-INPUT-MGGK-GOOGLE-SHEETS-CSV.CSV
###############################################################################
## THIS PROGRAM RUNS TWO UNDERLYING PYTHON SCRIPTS, WHICH CREATE BULK YAML
## RECIPE FILES FROM GOOGLE SHEETS CSV + ONE OTHER CSV FILE
## SEE 506A*.py PYTHON SCRIPTS FOR MORE INFO.
###############################################################################
## CODED ON: MAY 10, 2019
## CODED BY: PALI
############################################################################### |
127 | 500-mggk-renaming-multiple-image-files-for-mggk-recipes.sh.sh | Usage function found | USAGE: 500-mggk-renaming-multiple-image-files-for-mggk-recipes.sh.sh
##############################################################################
## FILENAME: 500-mggk-renaming-multiple-image-files-for-mggk-recipes.sh
## USAGE: ($1 = directory location where images are stored)
## > sh FILENAME $1
##############################################################################
## THIS SCRIPT RENAMES MULTIPLE RECIPE IMAGE FILES FROM SPECIFIED TAGS
## It expects a command line input arguement, which is the directory location
## where the images to be renamed are stored.
##############################################################################
## Coded on: Friday March 17, 2017
## By: Pali
############################################################################## |
128 | 20210827-convert-all-csv-files-in-pwd-to-html-tables-bootstrap.sh | Usage function found | USAGE: 20210827-convert-all-csv-files-in-pwd-to-html-tables-bootstrap.sh
################################################################################
## USAGE:
#### > bash 20210827-convert-all-csv-files-in-pwd-to-html-tables-bootstrap.sh
################################################################################
## THIS PROGRAM CONVERTS CSV TO HTML TABLE FORMAT.
## This program reads all the csv files in working directory and creates
## corresponding html table outputs as bootstrap tables.
#########################################
## INFO: MAKE SURE TO HAVE THE FIRST ROW IN CSV FILES TO BE COLUMN HEADERS.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-27
################################################################################ |
129 | 20220817-DRY-RUN-mggk-find-and-delete-sponsored-posts-older-than-given-dates.sh | Usage function found | USAGE: 20220817-DRY-RUN-mggk-find-and-delete-sponsored-posts-older-than-given-dates.sh
################################################################################
## USAGE:
#### > bash 20220817-DRY-RUN-mggk-find-and-delete-sponsored-posts-older-than-given-dates.sh
################################################################################
## This program is a dry run. Change somethings to run it for real. However, here's
## what it does ==>
## This program finds and moves the sponsored posts mdfiles which are first published before
## given dates. To change those dates, open this program and change the
## variable known as DONT_DELETE_POSTS_WITH_THESE_DATES
## This program only moves those posts which are not to be kept forever. Hence, it's safe.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2022-08-17
################################################################################ |
130 | 20210822-yoast-calculate-all-inbound-outbound-links-counts.sh | Usage function found | USAGE: 20210822-yoast-calculate-all-inbound-outbound-links-counts.sh
################################################################################
## USAGE:
#### > bash 20210822-yoast-calculate-all-inbound-outbound-links-counts.sh
################################################################################
## This Program Is Inspired By The Tools Present In The Yoast SEO Wordpress
## Plugin. This Program Produces Various Outputs Good For The Seo Practices.
## Try To Fix The Existing Mggk Posts Using Those Outputs.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-22
################################################################################ |
131 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-06-INDIANHEALTHYRECIPES-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
132 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-09-HEBBARSKITCHEN-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
133 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-99-VEGRECIPESOFINDIA-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
134 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-01-MYGINGERGARLICKITCHEN-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
135 | 601-step1-run-this-bash-script-if-website-subfolders-are-present-for-AI-NLP-mggk.sh | Usage function found | USAGE: 601-step1-run-this-bash-script-if-website-subfolders-are-present-for-AI-NLP-mggk.sh
################################################################################
## This is the only script in this folder that you need to run for running the
## underlying python program and for after-program housecleaning.
## This script will look for the subfolders in working directory, such as XX-SITENAME-COM,
## and will then loop through all those subfolders by running the following steps for
## each subfolder:
#### Step 1. Go to a subfolder
#### Step 2. Run the XML sitemap extractor python script, outputting two csv files.
#### Step 3. Take the simple one of those sitemap csv files, rename it to a text file
#### and move it to original working directory.
#### Step 4. Then run the main AI + NLP keywords finder python script, outputting a
#### final csv file (Optionally an HTML file too. To output the html file too, comment-out
#### the block in this program where the html file is deleted.)
################################################################################
## Created on: November 5, 2019
## Coded by: Pali
###############################################################################
# USAGE (run the following command):
# > bash 601-step1-run-this-bash-script-if-website-subfolders-are-present-for-AI-NLP-mggk.sh
############################################################################ |
136 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-98-PALI-NOTES-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
137 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-07-HOLYCOWVEGAN-NET/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
138 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-02-COOKWITHMANALI-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
139 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-03-CONCEPRO-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
140 | 601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls-NEW2021.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls-NEW2021.py
##############################################################################
THIS SCRIPT USES NATURAL LANGUAGE PROCESSING (NLP + AI), Newspaper3k, and BeautifulSoup 4
OVER AN EXTERNAL TEXT FILE CONTAINING URLS FOR KEYWORDS ANALYSIS, AND PRODUCES
A DETAILED HTML FILE WITH ALL THE EXTRACTED DATA FOR EACH URL PRESENT IN
THE REQUIREMENTS_FILE.
################################################################################
THIS SCRIPT ALSO PRODUCES SOME CSV FILES FOR LATER ANALYSES (OR FOR PLOTTING).
################################################################################
REQUIREMENTS_FILE = 601-MGGK-REQUIREMENT-ALL-URLS-FOR-NLP.txt
(Note: This file should be present in the Present Working Directory)
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
CREATED ON: 2021-08-15
CREATED BY: Pali
##############################################################################
|
141 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-09-WHISKAFFAIR-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
142 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-08-SPICEUPTHECURRY-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
143 | 601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls.py
##############################################################################
THIS SCRIPT USES NATURAL LANGUAGE PROCESSING (NLP + AI), Newspaper3k, and BeautifulSoup 4
OVER AN EXTERNAL TEXT FILE CONTAINING URLS FOR KEYWORDS ANALYSIS, AND PRODUCES
A DETAILED HTML FILE WITH ALL THE EXTRACTED DATA FOR EACH URL PRESENT IN
THE REQUIREMENTS_FILE.
################################################################################
THIS SCRIPT ALSO PRODUCES SOME CSV FILES FOR LATER ANALYSES (OR FOR PLOTTING).
################################################################################
REQUIREMENTS_FILE = 601-MGGK-REQUIREMENT-ALL-URLS-FOR-NLP.txt
(Note: This file should be present in the Present Working Directory)
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
CREATED ON: November 5, 2019
CREATED BY: Pali
##############################################################################
|
144 | 601_step0-mggk-only-run-this-for-all-magic.sh | Usage function found | USAGE: 601_step0-mggk-only-run-this-for-all-magic.sh
##########################################################################################
## Only run this script and it will take care of everything in sequence.
## Created on: November 8, 2019
## Coded by: Pali
######################################################################################### |
145 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-05-WP-MYGINGERGARLICKITCHEN-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
146 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/601-mggk-using-ai-nlp-to-find-keywords-from-list-of-top-google-urls/601-98-HALF-BAKED-HARVEST-COM/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
##############################################################################
THIS_SCRIPT_NAME_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
################################################################################
CREATED ON: November 6, 2019
CREATED BY: Pali
##############################################################################
|
147 | 602-mggk-using-ai-lda-algorithm-to-classify-posts.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/699-mggk-using-ai-lda-algorithm-to-classify-posts/602-mggk-using-ai-lda-algorithm-to-classify-posts.py
##############################################################################
## THIS PYTHON SCRIPT USES AI LDA ALGORITHM TO CLASSIFY MGGK POSTS.
##############################################################################
|
148 | 602a-mggk-frontmatter-sample-extraction.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/699-mggk-using-ai-lda-algorithm-to-classify-posts/602a-mggk-frontmatter-sample-extraction.py
##############################################################################
## THIS PYTHON SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO MARKDOWN FILES.
## FOUND BY PARSING ALL THE MARKDOWN FILES IN ROOTDIR
## THEN CREATE A COMBINED CSV FILE FOR ALL THE RELEVANT YAML KEYS
#######################################
## IMPORTANT NOTE:
## This program needs python package = python-frontmatter
## Install it by learning from: https://github.com/eyeseast/python-frontmatter
#######################################
## MADE ON: MAY 23 2019
## BY: PALI
##############################################################################
|
149 | 602-mggk-plotting-601-outputs-csv-data-using-matplotlib-pandas-in-python.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/600-mggk-artificial-intelligence-nlp-programs/602-mggk-python-plotting/602-mggk-plotting-601-outputs-csv-data-using-matplotlib-pandas-in-python.py
##############################################################################
## THIS PROGRAM USES CSV OUTPUTS CREATED FROM 601... PYTHON SCRIPT, AND CREATE
## VARIOUS PLOTS USING PYTHON pandas AND matplotlib packages.
## Created on: Monday November 18, 2019
## Created by: Pali
##############################################################################
|
150 | 602_step0_mggk_only_run_this.sh | Usage function found | USAGE: 602_step0_mggk_only_run_this.sh
##----------------------------------------------------------------------------
## IMPORTANT NOTE: ONLY RUN THIS SCRIPT IN THIS DIRECTORY TO CREATE ALL PYTHON PLOTS
## USING ALL THE CSV FILES IN THIS DIRECTORY.
## CREATED ON: Monday November 25, 2019
## CREATED BY: PALI
##---------------------------------------------------------------------------- |
151 | 602_step1_mggk_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh | Usage function found | USAGE: 602_step1_mggk_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh
################################################################################
## RUN THIS SCRIPT FOR MAKING PLOTS USING THE UNDERLYING 602... PYTHON FILE.
## IT WILL USE ALL THE CSV FILES FOR THE DATA, AND MAKE ONE PLOT FOR EACH CSV FILE.
################################################################################
## USAGE: bash 602_step1_mggk_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh
################################################################################
## CREATED ON: Friday November 22, 2019
## CREATED BY: Pali
################################################################################ |
152 | 603-mggk-CREATE-WORDCLOUD-USING-PYTHON-from-CSV-files.sh | Usage function found | USAGE: 603-mggk-CREATE-WORDCLOUD-USING-PYTHON-from-CSV-files.sh
################################################################################
## THIS BASH SCRIPT CREATES A WORDCLOUD IMAGES USING CSV FILES PRESENT IN PWD.
## THESE CSV FILES SHOULD HAVE A COLUMN_NAME = NLP_KEYWORDS
##------------------------------------------------------------------------------
## USAGE:
## bash 603-mggk-CREATE-WORDCLOUD-USING-PYTHON-from-CSV-files.sh
##------------------------------------------------------------------------------
## IMPORTANT NOTE:
## This bash program uses two python command-line utilities: 'csvkit' and 'wordcloud_cli',
## which can be installed by running => pip3 install csvkit // pip3 install wordcloud
## Learn more at:
## https://csvkit.readthedocs.io/en/latest/index.html
## https://github.com/amueller/word_cloud
##------------------------------------------------------------------------------
## CREATED ON: Monday December 3, 2019
## CREATED BY: Pali
################################################################################ |
153 | 504b_mggk-copy-markdown-files-with-matching-urls-from-text-file.sh | Usage function found | USAGE: 504b_mggk-copy-markdown-files-with-matching-urls-from-text-file.sh
##############################################################################
## FILENAME: 504b_mggk-copy-markdown-files-with-matching-urls-from-text-file.sh
#### USAGE: > sh 504b_mggk-copy-markdown-files-with-matching-urls-from-text-file.sh.sh $1
#### WHERE, $1 = LINKS TEXT FILE TO BE USED (eg., MY-URLS-TO-MD-FILES.TXT )
##############################################################################
## THIS PROGRAM FINDS ALL THE MARDKDOWN FILES IN HUGO MAIN CONTENT DIRECTORY
## BY READING A TEXT FILE WITH WHICH CONTAINS THE HYPERLINKS OF THE URLS FROM
## MGGK OFFICIAL WEBSITE. THEN, IT COPIES THEM ALL TO PWD.
#####################################
#### IMPORTANT NOTE: Don't forget to replace the original versions of the markdown files
#### after you are done with editing them.
#####################################
##### =============== FORMAT OF THE TEXT FILE BELOW: ================== ######
###### https://www.mygingergarlickitchen.com/gut-friendly-delicious-indian-kanji-for-your-tummy/
###### https://www.mygingergarlickitchen.com/5-modern-kitchen-gadgets-you-would-love-to-use/
###### https://www.mygingergarlickitchen.com/10-cooking-hacks-and-how-tos-of-the-21st-century/
###### ...
###### ...
###### ...
##############################################################################
## CODED ON: April 17, 2019
## BY: PALI
############################################################################## |
154 | 999-mggk-MOVE-MD-FILES-to-PWD-based-on-URLs-from-CLI-text-file-argument.sh | Usage function found | USAGE: 999-mggk-MOVE-MD-FILES-to-PWD-based-on-URLs-from-CLI-text-file-argument.sh
###############################################################################
## THIS SCRIPT TAKES A TEXT FILE CONTAINING URLs AS COMMAND LINE ARGUMENT
## INPUT AND READS IT LINE BY LINE.
## BASED ON THOSE LINES, IT MOVES ALL MD FILES FROM A GIVEN SOURCE DIRECTORY TO CWD.
## >> CURRENT GIVEN SOURCE DIRECTORY = /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/content
## >> CURRENT DIRECTORY TO MOVE FILES TO = /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/content
## Example: SOURCE_DIR (change this if needed) => /mnt/c/Users/abhip/Desktop/Y/_TMP_md_files_moved-content
###############################################################################
## USAGE: bash THIS_SCRIPT_NAME $1
###############################################################################
## Coded by: PALI
## On: October 5, 2020
############################################################################### |
155 | 999-mggk-opening-hyperlinks-in-browser-for-checking.sh | Usage function found | USAGE: 999-mggk-opening-hyperlinks-in-browser-for-checking.sh
#############################################################################
## FILENAME: 999-mggk-opening-hyperlinks-in-browser-for-checking.sh
#############################################################################
## THIS PROGRAM OPENS VARIOUS URLS IN THE BROWSER FOR THE USER TO SEE IF THE
## URL IS VALID OR NOT. IT WAITS SOME SECONDS BEFORE OPENING ANOTHER URL,
## SO THAT THE BROWSER DOES NOT GET JAMMED.
#############################################################################
## It expects an input file with multiple lines to be present in the folder.
## Structure of the input file is below:
## ====================
# Link 1 text : https://www.concepro.com
# Link 2 text : https://www.mygingergarlickitchen.com/
# ... (maybe a blank line)
# ... (any other text line even without http anywhere in there. )
# ...
## ====================
#############################################################################
## CODED ON: Wednesday April 10, 2019
## BY: Pali
############################################################################# |
156 | 598_mggk_REPLACE_BULK_TITLES_N_YOAST_DESCRIPTION_IN_MD_FILES_FROM_GOOGLE_SHEETS_CSV_FILE.sh | Usage function found | VERY IMPORTANT NOTE: It's dangerous to run this script. Edit this original script if you want to execute it. |
157 | 999-mggk-2020-MICROSOFT-BING-BATCH-URL-SUBMISSION.sh | Usage function found | USAGE: 999-mggk-2020-MICROSOFT-BING-BATCH-URL-SUBMISSION.sh
###############################################################################
## THIS PROGRAM EXTRACTS 490 TOP URLS FROM LIVE SITEMAP.XML WHICH ARE LATEST UPDATED,
## AND SUBMITS THEM TO BING SEARCH USING BING WEBMASTER API, USING CURL.
###############################################################################
## Coded by: PALI
## On: October 30, 2020
############################################################################### |
158 | 10b-mggk-create-index-for-recipe-steps-present-folder.sh | Usage function found | USAGE: 10b-mggk-create-index-for-recipe-steps-present-folder.sh
################################################################################
## USAGE:
#### > bash 10b-mggk-create-index-for-recipe-steps-present-folder.sh
#### CLI ARGUMENTS OPTINONAL => $1 = calculate_steps_count_TRUE
################################################################################
## THIS SCRIPT MAKES AN INDEX HTML FILE FROM RECIPE-STEPS-IMAGES DIRECTORY. THIS
## CONTAINS LINKS TO OTHER INDEX FILES CORRESPONDING TO SUB-DIRECTORIES. THESE INDEX
## HTML FILES SHOWS ALL JPG IMAGES IN THOSE SUB-DIRECTORIES, FOR CHECKING.
#### NOTES: This program uses python-yq and jq utilities.
#### Installation instructions: https://pypi.org/project/yq/
################################################################################
## CREATED BY: PALI
## CREATED ON: JAN 13, 2021
################################################################################ |
159 | 999-mggk-convert-each-line-in-text-file-to-HTML-hyperlinks.sh | Usage function found | USAGE: 999-mggk-convert-each-line-in-text-file-to-HTML-hyperlinks.sh
################################################################################
## FILENAME = 999-mggk-convert-each-line-in-text-file-to-HTML-hyperlinks.sh
## USAGE:
#### > bash 999-mggk-convert-each-line-in-text-file-to-HTML-hyperlinks.sh
################################################################################
## REQUIREMENTS :
#### FILE = Requires one or more text file(s) (*.txt) to be present in PWD.
################################################################################
## THIS FILE GETS THE URLs VALUES FROM ALL MD FILES IN A DIRECTORY ENTERED AS USER INPUT,
## AND SAVES THEM IN A TEXT FILE IN PWD. IF THE DIRECTORY IS NOT SPECIFIED THEN,
## THIS FILE READS ALL TEXT FILES PRESENT IN PWD AND OUTPUTS AN HTML FILE FOR
## EACH TEXT FILE READ.
## THIS PROGRAM CONVERTS EACH LINE IN THOSE TEXT FILES TO CORRESPONDING HYPERLINKS.
################################################################################
######### STRUCTURE OF required text file ##############################
#### ...
#### ...
#### http://localhost:1313/white-sauce-pasta-recipe/
#### http://localhost:1313/5-bean-curry-recipe/
#### http://localhost:1313/halwa-chana-poori-ashtami-prashad-video-recipe/
#### ...
#### ...
################################################################################
## CREATED BY: PALI
## CREATED ON: OCT 25, 2020
################################################################################ |
160 | 507-mggk-renaming-hugo-markdown-files-based-upon-date-frontmatter-value.sh | Usage function found | USAGE: 507-mggk-renaming-hugo-markdown-files-based-upon-date-frontmatter-value.sh
###############################################################################
## THIS BASH SCRIPT RENAMES AND COPIES THE MGGK HUGO MARKDOWN FILES BASED UPON
## THE DATE VALUE FOUND IN THE YAML FRONTMATTER
###############################################################################
## CODED ON: Thursday April 4, 2019
## BY: PALI
############################################################################### |
161 | 703-mggk-2020-DELETE-RECIPE-JSON-HTML-VIDEO-BLOCKS-from-md-files.sh | Usage function found | >> This programs work is done. It will exit now. |
162 | 510-mggk-check-broken-hyperlinks-using-linkchecker-program.sh | Usage function found | USAGE: 510-mggk-check-broken-hyperlinks-using-linkchecker-program.sh
###############################################################################
## THIS SCRIPT CHECKS BROKEN HYPERLINKS IN ANY GIVEN SITE.
## THE CHOSEN SITE IN OUR CASE = https://www.mygingergarlickitchen.com
## THIS SCRIPT USES linkchecker TOOL.
## GET HELP: https://linkchecker.github.io/linkchecker/install.html
## Local Help > linkchecker --help
###############################################################################
## USAGE (if run from command line interactive terminal):
## > linkchecker --verbose --check-extern www.mygingergarlickitchen.com
###############################################################################
## CREATED ON: 2021-08-07
## LAST UPDATED ON: 2022-11-28
## BY: PALI
############################################################################### |
163 | 598-elasticsearch-index-maker-and-uploader-for-mggk-website.sh | Usage function found | USAGE: 598-elasticsearch-index-maker-and-uploader-for-mggk-website.sh
##############################################################################
## THIS FILENAME = 598-elasticsearch-index-maker-and-uploader-for-mggk-website.sh
##############################################################################
## This script creates a JSON index file from all the md files in hugo content
directory and then pushes that mggk index json data to an elasticsearch
## cluster locally or remotely for indexing and searching.
##############################################################################
## REQUIREMENTS:
## THIS SCRIPT NEEDS NODE-NPM PACKAGE = hugo-elasticsearch.
## YOU CAN LEARN MORE ABOUT IT, AND DOWNLOAD IT FROM THE FOLLOWING URL:
## https://www.npmjs.com/package/hugo-elasticsearch
##############################################################################
## NOTE: Use a chrome extension named as 'Elasticsearch-Head' for playing
## with the indexed data.
##############################################################################
## CODED ON: Tuesday September 24, 2019
## CODED by: PALI
############################################################################## |
164 | 598-mggk-FIND-TITLE-AND-YOAST-DESCRIPTION-LENGTHS-in-frontmatter.sh | Usage function found | USAGE: 598-mggk-FIND-TITLE-AND-YOAST-DESCRIPTION-LENGTHS-in-frontmatter.sh
################################################################################
## THIS BASH SCRIPT FINDS LENGHTS OF TITLES AND YOAST_DESCRIPTION IN ALL MD FILES,
## PRESENT IN ORIGINAL /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/content, AND SAVES THEM TO A CSV FILE.
## IT ALSO SAVES A NEW VALID CSV WITH ALL THOSE TITLES AND YOAST_DESCRIPTIONS WHICH
## HAVE A LENGTH GREATER THAN 57 AND 157 RESPECTIVELY.
##------------------------------------------------------------------------------
## USAGE:
## bash 598-mggk-FIND-TITLE-AND-YOAST-DESCRIPTION-LENGTHS-in-frontmatter.sh
##------------------------------------------------------------------------------
## CREATED ON: Sunday December 8, 2019
## CREATED BY: Pali
################################################################################ |
165 | 701-mggk-step2-CREATE_YAML_FROM_EXTRACTED_LD_JSON_FILES.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/701-mggk-2020/701-mggk-step2-CREATE_YAML_FROM_EXTRACTED_LD_JSON_FILES.py
##################################################################################
## THIS SCRIPT GETS AN INDIVIDUAL LD-JSON FILE FROM ITS PARENT BASH SCRIPT, AND
## CREATE ITS CORRESPONDING YAML FILE BY PARSING IT.
## THIS PROGRAM USES yaml and json PYTHON MODULE LIBRARIES
##################################################################################
## MADE BY: PALI
## CODED ON: 2020-09-27
##############################################################################
|
166 | 701-mggk-EXTRACT-NOTES-TEXT-FROM-MD-FILES-BODY-HTML-RECIPE-CODE.sh | Usage function found | USAGE: 701-mggk-EXTRACT-NOTES-TEXT-FROM-MD-FILES-BODY-HTML-RECIPE-CODE.sh
##################################################################################
## THIS PROGRAM EXTRACTS ALL VALID NOTES TEXT FROM ALL MD FILES
## AND THEN SAVES THOSE FILES IN TWO DIRECTORIES IN PWD AS valid and
## invalid notes.
##################################################################################
## Created on: September 25, 2020
## Coded by: Pali
######################################################################################### |
167 | 701-mggk-step1-CREATE_YAML_FROM_LD_JSON_FILES_AND_MERGE_TO_ORIGINAL_MARKDOWN.sh | Usage function found | USAGE: 701-mggk-step1-CREATE_YAML_FROM_LD_JSON_FILES_AND_MERGE_TO_ORIGINAL_MARKDOWN.sh
##################################################################################
## THIS BASH SCRIPTS READS MANY LD-JSON FILES LOCATED IN extracted-json FOLDER IN WORKDIR = /mnt/c/Users/abhip/Desktop/X
## AND THEN CREATES YAML FILES FROM IT BY CALLING THIS PYTHON SCRIPT
## => 701-mggk-step2-CREATE_YAML_FROM_EXTRACTED_LD_JSON_FILES.py .
########################################
## IT THEN MERGES THOSE YAML FILES WITH THE EXTRACTED RECIPE-NOTES FILES, PRESENT IN /mnt/c/Users/abhip/Desktop/X/valid_notes AND
## ORIGINAL MARKDOWN FILES STORED IN /mnt/c/Users/abhip/Desktop/X, WHICH ARE ALL BASED UPON THE SAME URL.
## FINALLY, IT MOVES THOSE MERGED MARKDOWN FILES IN ZZ_HUGO DIRECTORY FOR CHECKING.
##################################################################################
## IMPORTANT NOTE: See the 701-MGGK-README.txt file for the folder structure for the
## workdir => /mnt/c/Users/abhip/Desktop/X
##################################################################################
## Created on: SEP 27, 2020
## Coded by: Pali
######################################################################################### |
168 | 999A-mggk-MATCH-WORDS-IN-MD-FILE-WITH-EXISTING-URLS-LIKE-WORDPRESS.sh | Usage function found | >>>> Current working directory => /mnt/c/Users/abhip/Desktop/Y
USAGE: 999A-mggk-MATCH-WORDS-IN-MD-FILE-WITH-EXISTING-URLS-LIKE-WORDPRESS.sh
################################################################################
## THIS SCRIPT TAKES THE FIRST TEXT FILE WITH RECIPE WRITE UP, WHICH IS PRESENT IN
## CURRENT WORKING DIRECTORY ( = /mnt/c/Users/abhip/Desktop/Y ) AND MATCHES ITS WORDS
## WITH THE EXISTING URLS PRESENT ON MGGK WEBSITE THE SAME WAY WORDPRESS SUGGESTS
## EXISTING URLS FOR MATCHED WORDS.
## FINALLY IT PRODUCES AN OUTPUT HTML FILE WITH MATCHED WORDS AND LINKS.
################################################################################
## REQUIREMENT:
## Make sure to rename your text file with prefix 'recipe' ...
## ... in the format => recipe-ANY_FILENAME.txt
## SCRIPT USES: GNU sed Utility => gsed (get it thru homebrew)
######
## ALSO, THIS FILE IS REQUIRED:
## FILE_WITH_WORDS_TO_DISCARD="/home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/mggk_bash_scripts/_REQUIREMENT_FILES_MGGK/999A-MGGK-WORDS-TO-DISCARD.txt" ;
################################################################################
## CREATED BY: PALI
## CREATED ON: NOV 05, 2020
################################################################################ |
169 | 999-mggk-CREATE-PRINT-HTML-FILES-FROM-RECIPE-MD-FILES.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/999-mggk-CREATE-PRINT-HTML-FILES-FROM-RECIPE-MD-FILES.py
##############################################################################
## THIS PYTHON SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO
## MARKDOWN FILES.
## IT THEN CREATES PRINT READY HTML FILES FOR ALL THE VALID RECIPE FILES
## AND SAVES THEM TO APPROPRIATE DIRECTORY.
#######################################
## IMPORTANT NOTE:
## This program needs these python packages =>gt; python-frontmatter
## FRONTMATTER: Install: from: https://github.com/eyeseast/python-frontmatter
#######################################
## MADE ON: 2021-08-13
## BY: PALI
##############################################################################
|
170 | 999-mggk-CREATE-RESPONSIVE-IMAGES-FOR-MGGK-SITE.sh | Usage function found | USAGE: 999-mggk-CREATE-RESPONSIVE-IMAGES-FOR-MGGK-SITE.sh
################################################################################
## USAGE:
#### > bash 999-mggk-CREATE-RESPONSIVE-IMAGES-FOR-MGGK-SITE.sh
################################################################################
## This script reads all figure shortcodes + featured images + recipe steps images
## from all md files and creates
## responsive images to be read by the srcset html image tags by the browser.
## Example image resolutions include: 350px, 425px, 550px, 675px, 800px, etc.
#### NOTE: This program uses rclone utility => brew install rclone
#### NOTE: This program uses awscli utility => brew install awscli
################################################################################
## CREATED BY: PALI
## CREATED ON: July 18, 2021
################################################################################ |
171 | 501_mggk_wordpress_find_post_first_published_dates.sh | Usage function found | USAGE: 501_mggk_wordpress_find_post_first_published_dates.sh
############################################################################
# MADE FOR MGGK:
# THIS PROGRAM EXTRACTS THE first publishedDate OF AN ARTICLE THROUGH curl
# command FROM A LIST
# of URLs WHICH WERE COPY-PASTED FROM THE ORIGINAL sitemap.xml file, FROM
# THE ORIGINAL URL https://www.EXAMPLE.com/sitemap.xml
######################
# NOTE: It is found that the dates are presented as yyyy-mm-ddThh:MM in
# all the wordpress posts html, so we make use of a REGEX of such kind.
######################
# CREATION DATE: Sunday January 13, 2019
# CREATED BY: PALI
############################################################################
############################################################################
# USAGE:
# - Make sure that there are two folders in PWD,
# _input (containing the sitemap.csv files) and _output (empty folder),
# The directory structure should be like:
# ├── PWD
# │  ├── _input
# │  │  ├── YOURWEBSITENAME_sitemap1.csv
# │  │  └── YOURWEBSITENAME_sitemap2.csv
# │  └── _output
############################################################################ |
172 | 500-mggk-save-html-of-chosen-competitor-webpages.sh | Usage function found | USAGE: 500-mggk-save-html-of-chosen-competitor-webpages.sh
################################################################################
## USAGE:
#### > bash 500-mggk-save-html-of-chosen-competitor-webpages.sh
################################################################################
## This script saves copy of chosen competitors webpages as html page using
## curl and wget utilities.
################################################################################
## REQUIREMENT: /home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/mggk_bash_scripts/_REQUIREMENT_FILES_MGGK/500X-mggk-competitors-urls-of-interest.txt
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-10
## UDATED ON: 2024-01-03
################################################################################ |
173 | 502_mggk_wordpress_separate_html_recipe_files.sh | Usage function found | USAGE: 502_mggk_wordpress_separate_html_recipe_files.sh
############################################################################
# MADE FOR MGGK:
# THIS PROGRAM SEPERATES html files in _downloaded_html_files, as:
##### 1. HTML pages using Easyrecipe markup block
##### 2. HTML pages using Pali's created recipe markup block
##### 3. HTML pages using no valid recipe markup block at all.
######################
# IMPORTANT NOTE: This program should only be run after the successful run of
# the script '501_mggk_wordpress_find_post_first_published_dates.sh'
# Because, it needs to have the HTML files locally saved , in the _downloaded_html_files
# directory.
######################
# CREATION DATE: January 19, 2019
# CREATED BY: PALI
############################################################################
############################################################################
# USAGE (run the following command):
# > sh 502_mggk_wordpress_separate_html_recipe_files.sh |
174 | 503-mggk-download-and-save-html-webpages-from-given-sitemap-xml-files.sh | Usage function found | USAGE: 503-mggk-download-and-save-html-webpages-from-given-sitemap-xml-files.sh
################################################################################
## USAGE:
#### > bash 503-mggk-download-and-save-html-webpages-from-given-sitemap-xml-files.sh
################################################################################
## This script download and saves copies of chosen webpages read from given
## sitemap xml files as html pages using curl and wget utilities.
################################################################################
## REQUIREMENT: sitemap xml files in present working directory
### The xml files can have any names, however, the extension must be xml.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-30
################################################################################ |
175 | 511-mggk-locate-and-compare-errors-in-urls-listed-in-json-recipe-code.sh | Usage function found | USAGE: 511-mggk-locate-and-compare-errors-in-urls-listed-in-json-recipe-code.sh
###############################################################################
## FILENAME: 511-mggk-locate-and-compare-errors-in-urls-listed-in-json-recipe-code.sh
## USAGE: sh 511-mggk-locate-and-compare-errors-in-urls-listed-in-json-recipe-code.sh
###############################################################################
## THIS PROGRAM REQUIES GNU-SED (gsed) TO RUN on MacOS
## INSTALL IT BY RUNNING > brew install gnu-sed
## Then, use it by running gsed on command line
###############################################################################
## THIS PROGRAM SEARCHES FOR ALL FILES LOCATED IN SEARCH_DIR = /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/content/
## IT FINDS ALL THE FILES WHICH HAVE THE 'json' KEYWORD IN THEM, THEN SEARCHES
## FOR ALL THE LINES CONTAINING THE PHRASE 'url: '
## THEN, IT LISTS ALL THOSE LINES ALONG WITH THE MARKDOWN FILENAME IT FOUND
## THEM IN.
#########################################
#### THE MAIN IDEA HERE IS TO FIND THE URLs in the markdown files, and see if
#### the URL in the mggk_json_recipe_code is the same as the one in the frontmatter.
#########################################
## IT creates a temporary text file output, which needs to be checked manually
## for any url errors.
###############################################################################
## CODED ON: APRIL 25, 2019
## CODED BY: PALI
############################################################################### |
176 | 599-mggk-create-recipe-yaml-template-file-from-user-input.sh | Usage function found | USAGE: 599-mggk-create-recipe-yaml-template-file-from-user-input.sh
###############################################################################
## FILENAME: 599-mggk-create-recipe-yaml-template-file-from-user-input.sh
## USAGE: sh 599-mggk-create-recipe-yaml-template-file-from-user-input.sh
###############################################################################
## THIS PROGRAM CREATES A YAML RECIPE FILE FROM USER INPUT ON COMMAND PROMPT
###############################################################################
## CODED ON: MAY 02, 2019
## CODED BY: PALI
############################################################################### |
177 | 999-mggk-CREATE-PDF-FILES-FROM-RECIPE-MD-FILES.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/999-mggk-CREATE-PDF-FILES-FROM-RECIPE-MD-FILES.py
##############################################################################
## THIS PYTHON SCRIPT PARSES THE YAML FRONTMATTER METADATA FROM HUGO MARKDOWN FILES.
## FOUND BY PARSING ALL THE MARKDOWN FILES IN ROOTDIR
## THEN CREATES PDF FILES FOR ALL THE RECIPE VALID RECIPE FILES AND SAVES THEM
## TO APPROPRIATE DIRECTORY.
#######################################
## IMPORTANT NOTE:
## This program needs these python packages =>gt; python-frontmatter + fpdf
## FRONTMATTER: Install: from: https://github.com/eyeseast/python-frontmatter
## FPDF: Tutorial: https://pyfpdf.readthedocs.io/en/latest/Tutorial/index.html
#######################################
## MADE ON: JUNE 16 2021
## BY: PALI
##############################################################################
|
178 | 599-mggk-CHANGE-RECIPE-HTML-LD-JSON-DATES-BASED-ON-FRONTMATTER-DATE-VALUE.sh | Usage function found | USAGE: 599-mggk-CHANGE-RECIPE-HTML-LD-JSON-DATES-BASED-ON-FRONTMATTER-DATE-VALUE.sh
###############################################################################
## THIS PROGRAM CHANGES THE POST DATES IN THE HTML AND LD-JSON RECIPE CODES OF
## THOSE POSTS WHICH HAVE THE RECIPE HTML AND LD-JSON CODE IN THEM. IT FINDS
## THOSE CODES BY SEARCHING FOR CORRESPONDING STRINGS.
###############################################################################
## CODED ON: Wednesday October 23, 2019
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates in yaml frontmatter of all files in content directory
#### 3. Extract the frontmatter date substring and save as a variable from each file.
#### 4. Create two new string variables; one for HTML recipe code and other for LD-JSON.
#### 5. Insert these two new date string variables at suitable places in the current
#### file under execution.
#### 6. Check everything is as it should be in Github Desktop. Make sure that
#### only two 'date' lines have changed after the execution of this bash script.
###############################################################################
# USAGE (run the following command):
# > bash 599-mggk-CHANGE-RECIPE-HTML-LD-JSON-DATES-BASED-ON-FRONTMATTER-DATE-VALUE.sh
############################################################################ |
179 | 596_step0-mggk-only-run-this-to-CREATE-RECIPE-JSON-AND-CSV-FOR-ALL-MD-FILES.sh | Usage function found | USAGE: 596_step0-mggk-only-run-this-to-CREATE-RECIPE-JSON-AND-CSV-FOR-ALL-MD-FILES.sh
################################################################################
## THIS BASH SCRIPT PREPROCESSES USER INPUT DATA AND THEN INVOKES
## THIS PYTHON SCRIPT =>
##------------------------------------------------------------------------------
## DETAILS:
## THIS BASH SCRIPT READS A USER INPUT URL, AND
## THEN BASED UPON THAT FINDS THE CORRESPONDING MD FILE IN HUGO_CONTENT_DIR, AND PASSES
## THAT MD FILENAME TO THE PYTHON SCRIPT.
## THAT PYTHON SCRIPT THEN EXTRACTS THE mggk_json_recipe YAML FRONTMATTER CONTENT,
## PARSES IT AND FINALLY CREATES A RECIPE JSON AND A RECIPE CSV FILE. THIS CSV FILE
## IS THEN TO BE READ BY 513B SCRIPT FOR MAKING THE RECIPE JSON AND HTML BLOCKS.
##------------------------------------------------------------------------------
## IMPORTANT NOTE: ALL OUTPUT JSON AND CSV FILES ARE PRODUCES IN /home/ubuntu/Desktop/X/
##------------------------------------------------------------------------------
## USAGE:
## bash 596_step0-only-run-this-to-CREATE-RECIPE-JSON-AND-CSV-FOR-ALL-MD-FILES.sh
##------------------------------------------------------------------------------
## CREATED ON: Sunday December 15, 2019
## CREATED BY: Pali
################################################################################ |
180 | 596_step1-mggk-CREATE-RECIPE-JSON-AND-RECIPE-CSV-FROM-FRONTMATTER-USING-PYTHON.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/596-mggk-pyhon-create-recipe-json-n-csv-using-frontmatter/596_step1-mggk-CREATE-RECIPE-JSON-AND-RECIPE-CSV-FROM-FRONTMATTER-USING-PYTHON.py
##############################################################################
## THIS PYTHON SCRIPT TAKES AN MD_FILENAME AS COMMAND LINE ARGUMENT, THEN EXTRACTS
## THE mggk_json_recipe YAML FRONTMATTER CONTENT, PARSES IT AND FINALLY CREATES
## A RECIPE JSON AND A RECIPE CSV FILE. THIS CSV FILE
## IS THEN TO BE READ BY 513B SCRIPT FOR MAKING THE RECIPE JSON AND HTML BLOCKS.
##############################################################################
|
181 | 599-mggk-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh | Usage function found | USAGE: 599-mggk-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
###############################################################################
## THIS PROGRAM RENAMES ALL MD FILES FOUND IN HUGO_CONTENT_DIR BASED UPON THE
## VALUES OF date AND url FRONTMATTER VARIABLE VALUES.
###############################################################################
## CODED ON: Friday September 27, 2019
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates and url in yaml frontmatter of all files in content directory
#### 3. Create a new filename based upon the those variable values.
#### 4. Finally, rename the existing file with the new filename, replacing the original.
#### 5. Check everything is as it should be in Github Desktop. Make sure that
#### the filenames have indeed been changed.
###############################################################################
# USAGE (run the following command):
# > bash 599-mggk-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
############################################################################ |
182 | 901-mggk-get-and-save-cloudflare-cache-status-for-all-valid-mggk-urls-1K-150K.sh | Usage function found | USAGE: 901-mggk-get-and-save-cloudflare-cache-status-for-all-valid-mggk-urls-1K-150K.sh
################################################################################
## USAGE:
#### > bash 901-mggk-get-and-save-cloudflare-cache-status-for-all-valid-mggk-urls-1K-150K.sh
################################################################################
## This script also finds the cloudflare cache status of all valid MGGK URLs.
## This script finds the cloudflare cache status of all valid files present in
## MGGK hugo directory.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-07-22
################################################################################ |
183 | 901-mggk-delete-cloudflare-cache-for-user-input-urls.sh | Usage function found | USAGE: 901-mggk-delete-cloudflare-cache-for-user-input-urls.sh
################################################################################
## USAGE:
#### > bash 901-mggk-delete-cloudflare-cache-for-user-input-urls.sh
################################################################################
## THIS SCRIPT ASKS FOR USER INPUT FOR THE MGGK URLS FOR WHICH THE USER WANTS
## TO DELETES CLOUDFLARE CACHE.
## IF THE USER INPUT IS ONE LINE, THEN IT WILL BE TAKEN FROM INPUT, ELSE
## IN CASE OF MULTIPLE URLS, IT WILL BE READ FROM AN EXTERNAL TEXT FILE IN PWD
## WHICH WILL BE OPENED IN THE EDITOR AUTOMATICALLY.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-06
################################################################################ |
184 | 901-mggk-delete-cloudflare-cache-for-chosen-keyword-urls.sh | Usage function found | USAGE: 901-mggk-delete-cloudflare-cache-for-chosen-keyword-urls.sh
################################################################################
## USAGE:
#### > bash 901-mggk-delete-cloudflare-cache-for-chosen-keyword-urls.sh
################################################################################
## THIS SCRIPT ASKS FOR USER INPUT FOR KEYWORDS TO SEARCH FOR ALL IMAGES CONTAINING
## THAT KEYWORD. IT THEN DELETES CLOUDFLARE CACHE CORRESPONDING TO THOSE IMAGE URLS
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-04
################################################################################ |
185 | 901-mggk-get-all-image-links-from-mggk-webpages-for-cloudflare-cache.sh | Usage function found | USAGE: 901-mggk-get-all-image-links-from-mggk-webpages-for-cloudflare-cache.sh
################################################################################
## USAGE:
#### > bash 901-mggk-get-all-image-links-from-mggk-webpages-for-cloudflare-cache.sh $1
#### WHERE, $1 IS ...
################################################################################
## THIS SCRIPT FINDS ALL IMAGE URLS PRESENT ON CORRESPONDING MGGK WEBPAGE
## CREATED BY READING EVERY VALID MGGK MDFILE IN MGGK HUGO CONTENT DIRECTORY.
## THIS SCRIPT FINDS jpg, jpeg, png, gif
## A TEXT FILE IS CREATED IN WORKDIR AS A RESULT OF THIS SCRIPT RUN.
################################################################################
## REQUIREMENT: /home/ubuntu/GitHub/2019-HUGO-MGGK-WEBSITE-OFFICIAL/_mggk_summary_files/summary_mggk_current_mdfilepaths_with_urls.txt
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-08-02
################################################################################ |
186 | 508-mggk-convert-yaml-recipes-to-json-and-html-blocks.sh | Usage function found | USAGE: 508-mggk-convert-yaml-recipes-to-json-and-html-blocks.sh
##############################################################################
## FILENAME: 508-mggk-convert-yaml-recipes-to-json-and-html-blocks.sh
## USAGE: sh THIS_FILE_NAME
## SAMPLE YAML RECIPE FILE = recipe-sample-template-in-yaml-1.yaml
##############################################################################
#### IMPORTANT NOTE: Make sure that the recipe yaml files have the
#### prefix 'recipe-', and naming convention as recipe-ANY-NAME-YOU-LIKE.yaml
##
##############################################################################
## THIS PROGRAM PARSES A MGGK RECIPE YAML FILE USING A UTILITY KNOWN AS YQ
## AND OUTPUTS JSON. IT ALSO CONVERTS YAML TO JSON.
#### IT PARSES A YAML FILE THROUGH BASH COMMAND LINE, AND OUTPUTS JSON OUTPUT
#### BY GETTING THE KEYS AND VALUES (NON-NESTED AND NESTED).
#### It Parses a YAML file using a utility'yq' (which needs jq)
##
################## YQ /JQ INSTALLATION INSTRUCTIONS: #########################
#### JQ = https://stedolan.github.io/jq/download/
#### YQ = https://pypi.org/project/yq/
#### brew install jq
#### brew install python-yq OR pip3 install yq
##
######################### TUTORIAL ON HOW TO USE: ############################
#### https://medium.com/@frontman/how-to-parse-yaml-string-via-command-line-374567512303
#### JQ USAGE tutorial: https://stedolan.github.io/jq/tutorial/
##############################################################################
## CODED BY: PALI
## ON: April 13, 2019
##############################################################################
############################################################################## |
187 | 599-mggk-2020-COPY-AND-RENAME-ALL-FEATURED-IMAGES-TO-PWD.sh | Usage function found | USAGE: 599-mggk-2020-COPY-AND-RENAME-ALL-FEATURED-IMAGES-TO-PWD.sh
################################################################################
## THIS SCRIPT READS url AND featured_image TAGS IN THE FRONTMATTER OF ALL
## MD FILES IN HUGO_CONTENT_DIRECTORY FOR MYGINGERGARLICKITCHEN.COM WEBSITE.
## IT THEN COPIES THEM TO PRESENT WORKING DIRECTORY AND ALSO RENAMES THEM
## BASED UPON THE url FOUND IN FRONTMATTER.
################################################################################
## CREATED ON: 2020-09-15
## CREATED BY: PALI
################################################################################
## USAGE:
#### bash 599-mggk-2020-COPY-AND-RENAME-ALL-FEATURED-IMAGES-TO-PWD.sh
################################################################################ |
188 | 10-mggk-create-images-index-page-for-current-year.sh | Usage function found | USAGE: 10-mggk-create-images-index-page-for-current-year.sh
###############################################################################
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH
## ALL THE IMAGES IN WORKING DIRECTORY + NON-RECURSIVELY
###############################################################################
## Coded by: PALI
## On: April 13, 2019
############################################################################### |
189 | 999B-mggk-CREATE-SEARCH-ENGINE-LINKS-FOR-ALL-URLS.sh | Usage function found | USAGE: 999B-mggk-CREATE-SEARCH-ENGINE-LINKS-FOR-ALL-URLS.sh
################################################################################
## THIS PROGRAM CREATES AN HTML FILE WITH ALL THE SEARCH ENGINE LINKS
## FOR ALL THE MGGK URLS. THE USER CAN THEN CHECK THE PAGE TITLES SEARCHES ON
## THOSE SEARCH ENGINES.
################################################################################
## CREATED BY: PALI
## CREATED ON: NOV 06, 2020
################################################################################ |
190 | 9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/9999_MGGK_TEMPLATE_SCRIPTS/9999_mggk_TEMPLATE_SCRIPT-get_all_urls_from_ALL_sitemap_urls.py
################################################################################
THIS SCRIPT EXTRACTS URLS AND LASTMOD TIMES FROM A LIST OF SITEMAP URLS, AND
SAVES THEM TO A OUTPUT CSV FILE.
##############################################################################
REQUIREMENTS_FILE = NONE
################################################################################
USAGE: python3 THIS_SCRIPT_NAME
################################################################################
CREATED ON: March 30, 2021
CREATED BY: Pali
##############################################################################
|
191 | 9999_mggk_TEMPLATE_SCRIPT_FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS.sh | Usage function found | USAGE: 9999_mggk_TEMPLATE_SCRIPT_FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS.sh
################################################################################
## THIS PROGRAM CALCULATES THE DIFFERENCE BETWEEN TWO DATES.
## Whether the program is being run on Mac OS or Linux, it works accordingly.
## Just for reference, uname on Mac OS = "Darwin", and uname on Linux = "Linux"
## The only thing for you to remember is to format the input dates as: %Y-%m-%dT%H:%M:%S
################################################################################
## USAGE -> ARGUMENTS EXPLANATION:
## Call the function by assigning it to a variable:
## YOUR_OUTPUT_VAR=$(FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS_on_MacOS_or_Linux $1 $2 $3)
#### where,
#### $1 (smaller date) and $2 (bigger date) are two date variables,
####### ... formatted as %Y-%m-%dT%H:%M:%S (eg: 2019-09-21T15:32:56)
#### $3 = Any of "days" OR "minutes" OR "seconds"
#### COMMAND EXAMPLE:
#### YOUR_OUTPUT_VAR=$(FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS_on_MacOS_or_Linux $OLD_DATE $NEW_DATE "seconds" $uname)
################################################################################
## USAGE -> FROM ANOTHER BASH SCRIPT:
## This function should be called from an another bash script. Run these commands for that:
## >>>>
## DIR_SCRIPT="$DIR_GITHUB/Bash-Scripts-To-Make-Life-Easier/mggk_bash_scripts/9999_MGGK_TEMPLATE_SCRIPTS"
## source $DIR_SCRIPT/9999_mggk_TEMPLATE_SCRIPT_FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS.sh ;
## OLD_DATE="2020-10-30T12:00:00" ; ## Example past date ...
## NEW_DATE="$(date +%Y-%m-%dT%H:%M:%S)" ;
## DATE_DIFFERENCE_IN_MINUTES=$(FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS_on_MacOS_or_Linux $OLD_DATE $NEW_DATE "minutes")
## DATE_DIFFERENCE_IN_SECONDS=$(FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS_on_MacOS_or_Linux $OLD_DATE $NEW_DATE "seconds")
## DATE_DIFFERENCE_IN_DAYS=$(FIND_TWO_DATES_DIFFERENCE_FOR_YmdTHMS_on_MacOS_or_Linux $OLD_DATE $NEW_DATE "days")
################################################################################
## CREATED ON: November 16, 2019
## CREATED BY: Pali
################################################################################ |
192 | 9999_mggk_TEMPLATE_SCRIPT_beautiful_soup4_full_demotest.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/9999_MGGK_TEMPLATE_SCRIPTS/9999_mggk_TEMPLATE_SCRIPT_beautiful_soup4_full_demotest.py
##############################################################################
## THIS PYTHON SCRIPT IS THE TEMPLATE SCRIPT FOR USING BEAUTIFUL SOUP.
## Run this script to see how most of beautiful soup feature works and make use
## of this knowledge in your own python scripts.
##############################################################################
|
193 | 599-mggk-CREATE-AND-SAVE-SITE-STATISTICS.sh | Usage function found | ____ _ _ _ _ _
/ ___|| |_ __ _| |_(_)___| |_(_) ___ ___
\___ \| __/ _` | __| / __| __| |/ __/ __|
___) | || (_| | |_| \__ \ |_| | (__\__ \
|____/ \__\__,_|\__|_|___/\__|_|\___|___/
USAGE: 599-mggk-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################
## THIS SCRIPT GATHERS IMPORTANT SITE STATS USING HUGO MD FILES, AND
## SAVES THEM TO AN OUTPUT FILE IN HUGO STATIC DIRECTORY
## USAGE:
#### bash 599-mggk-CREATE-AND-SAVE-SITE-STATISTICS.sh
#####################################
## NOTE: This program uses csvtojson NPM utility.
## => Install it by running: npm i -g csvtojson
#####################################
## Created on: 2021-07-21
## Created by: Pali
################################################################################ |
194 | 599-mggk-MAKE-VIDEO-SITEMAP-XML.sh | Usage function found | USAGE: 599-mggk-MAKE-VIDEO-SITEMAP-XML.sh
################################################################################
## THIS SCRIPT CREATES VIDEO SITEMAP XML FILE FROM ALL THE MD FILES WHICH CONTAIN
## youtube_video_id TAG IN YAML FRONTMATTER.
## IT THEN SAVES IT IN HUGO STATIC DIRECTORY AS video-sitemap.xml
############################################
## USAGE: bash 599-mggk-MAKE-VIDEO-SITEMAP-XML.sh
############################################
## CREATED ON: Thursday November 28, 2019
## CREATED BY: PALI
################################################################################ |
195 | 599-mggk-2020-CREATE-IMAGES-TO-DIFFERENT-RATIOS-USING-IMAGEMAGICK-IN-PWD.sh | Usage function found | USAGE: 599-mggk-2020-CREATE-IMAGES-TO-DIFFERENT-RATIOS-USING-IMAGEMAGICK-IN-PWD.sh
################################################################################
## THIS SCRIPT READS ALL .jpg IMAGES IN THE WORKING DIRECTORY AND
## CREATES VARIOUS VERSIONS WITH DIFFERENT RATIOS AND DIMENSIONS AND
## SAVES THEM TO A TEMPORARY OUTPUT DIRECTORY WITH PREFIXES.
#########################################
## THIS SCRIPT USES imagemagick / mogrify / convert commands on CLI.
## IT CREATES THE FINAL IMAGE BY COMPOSITING ONE IMAGE OVER ANOTHER BY BLURRING
## THE BOTTOM IMAGE.
################################################################################
## CREATED ON: 2020-09-15
## CREATED BY: PALI
################################################################################
## USAGE:
#### bash 599-mggk-2020-CREATE-IMAGES-TO-DIFFERENT-RATIOS-USING-IMAGEMAGICK-IN-PWD.sh
################################################################################
## >>>> Important note: >>>>
## Don't put any images directly in /mnt/c/Users/abhip/Desktop/Y. Instead make
## a sub-directory and put images there. Any other directory is OKAY.
################################################################################ |
196 | 513B-mggk-read-a-csv-file-to-create-recipe-yaml-files.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
########################################
## USAGE: mggk_bash_scripts/513B-mggk-read-a-csv-file-to-create-recipe-yaml-files/513B-mggk-read-a-csv-file-to-create-recipe-yaml-files.py
##############################################################################
## THIS PYTHON SCRIPT READS A CSV FILE OBTAINED FROM GOOGLE SHEETS.
## THAT CSV CONTAINS THE NECESSARY TEXT CONTENT FOR EACH MGGK URL
## ARRANGED AS ONE ROW PER RECIPE.
## WE WILL USE THIS CSV FILE TO OUTPUT ONE YAML RECIPE FILE FOR INPUT EACH ROW.
#######################################
#######################################
## MADE ON: JULY 07 2019
## BY: PALI
##############################################################################
######################################## |
197 | 599_mggk_REPLACE_BULK_RATINGCOUNT_AND_RATINGVALUE_FROM_GOOGLE_SHEETS_CSV.sh | Usage function found | USAGE: 599_mggk_REPLACE_BULK_RATINGCOUNT_AND_RATINGVALUE_FROM_GOOGLE_SHEETS_CSV.sh
################################################################################
## THIS BASH SCRIPT REPLACES RATING COUNT AND RATING VALUE IN ORIGINAL MD FILES,
## USING A CSV FILE DOWNLOADED FROM GOOGLE SHEETS (REQUIREMENTS_FILE). THIS CSV
## FILE SHOULD BE PRESENT IN REQUIREMENTS_DIRECTORY AND SHOULD ONLY HAVE TWO COLUMNS.
## COLUMNS = (URL, UNIQUE_PAGEVIEWS_PER_90_DAYS)
##------------------------------------------------------------------------------
## IMPORTANT NOTE:
## MAKE SURE TO DOWNLOAD THE LATEST CSV FILE FROM GOOGLE ANALYTICS EVERY MONTH
## TO UPDATE THE VALUES, CONTAINING DATA FOR LAST 90 DAYS.
## UPDATE DATA IN THIS GOOGLE SHEET ONLINE, THEN DOWNLOAD (AND RENAME) REQUIREMENTS CSV:
## _For_script_599_MGGK-Analytics-last-90-days#2020_Aug03-Nov01
##------------------------------------------------------------------------------
## THE REQUIREMENTS_FILE IS /home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/mggk_bash_scripts/599-mggk-ratings/599_MGGK_RATING_REQUIREMENT_FILE_CSV_FROM_GOOGLE_SHEETS.csv
##------------------------------------------------------------------------------
## USAGE:
## bash 599_mggk_REPLACE_BULK_RATINGCOUNT_AND_RATINGVALUE_FROM_GOOGLE_SHEETS_CSV.sh
##------------------------------------------------------------------------------
## IMPORTANT NOTE:
## This bash program uses a python command-line utility 'csvkit', which can be
## installed by running => pip3 install csvkit
## Learn more at: https://csvkit.readthedocs.io/en/latest/index.html
##------------------------------------------------------------------------------
## CREATED ON: November 2, 2020
## CREATED BY: Pali
################################################################################ |
198 | 517-mggk-delete-every-2nd-csv-file-and-keep-max-15-csv-files-in-subdirs.sh | Usage function found | USAGE: 517-mggk-delete-every-2nd-csv-file-and-keep-max-15-csv-files-in-subdirs.sh
################################################################################
## THIS SCRIPT RUNS AS CRONJOB EVERYDAY, AND DELETES EVERY Nth CSV FILE PRESENT
## UNDER ALL SUBDIRS INSIDE A DIRECTORY. THIS IS TO ENSURE THAT WE DON'T PILE UP
## MANY CSV FILES AS OUTPUTTED FROM RUNNING MANY SCRIPTS.
## FOR EXAMPLE, WE HAVE CHOSEN N=16, i.e. IF TOTAL CSV FILES IN A SUBDIR IS MORE THAN 16, THEN
## THIS DELETES EVERY 2ND FILE, MEANING ON ANY GIVEN DAY AFTER THIS SCRIPT RUNS,
## WE WILL HAVE ABOUT 8-16 CSV FILES REMAINING.
################################################################################
## USAGE:
##> bash 517-mggk-delete-every-2nd-csv-file-and-keep-max-15-csv-files-in-subdirs.sh
################################################################################
CREATED ON: Monday December 16, 2019
CREATED BY: PALI
################################################################################ |
199 | 517_step0-mggk-only_run_this.sh | Usage function found | USAGE: 517_step0-mggk-only_run_this.sh
##########################################################################################
## Only run this script and it will take care of everything in sequence.
## Created on: Monday December 16, 2019
## Coded by: Pali
######################################################################################### |
200 | 597a-mggk-INSERTING-first_published_on_VARIABLE-IN-YAML-FRONTMATTER-AFTER-DATE-LINE.sh | Usage function found | VERY IMPORTANT NOTE:
>>>> THIS SCRIPT SHOULD NEVER BE RUN AGAIN, NOT EVEN BY MISTAKE. ITS JOB IS DONE.
>>>> IT'S DANGEROUS TO RUN THIS SCRIPT. HENCE, THE PROGRAM WILL EXIT NOW. |
201 | 514-mggk-python-open-parallel-random-urls-in-2-browsers-from-a-textfile.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mggk_bash_scripts/514-mggk-python-open-random-urls/514-mggk-python-open-parallel-random-urls-in-2-browsers-from-a-textfile.py
##############################################################################
## THIS PYTHON SCRIPT OPENS PARALLEL RANDOM URLS FOR MGGK AND WP.MGGK.COM WEBSITES
## IN TWO DIFFERENT BROSWER WINDOWS.
##############################################################################
|
202 | 999-mggk-EXTRACT-VIDEO-SCREENSHOTS-EVERY-N-SECONDS.sh | Usage function found | USAGE: 999-mggk-EXTRACT-VIDEO-SCREENSHOTS-EVERY-N-SECONDS.sh
###############################################################################
## IF YOU CHOOSE OPTION 1 WHEN ASKED FOR USER INPUT =>
## THIS PROGRAM EXTRACTS VIDEO THUMBNAIL SCREENSHOTS FROM
## ALL mkv OR mp4 OR webm FILES PRESENT IN /mnt/c/Users/abhip/Desktop/Y, AND SAVES THEM TO PROPER SUBDIRECTORIES.
## MAKE SURE THE VIDEOS ARE NAMED WITH THEIR CORRESPONDING MGGK URL.
## AFTER THIS STEP, YOU NEED TO MOVE THE RELEVANT STEPS IMAGES INTO THE STEP-XX SUBFOLDERS. THEN RUN STEP 2.
###########################################
## IF YOU CHOOSE OPTION 2 WHEN ASKED FOR USER INPUT =>
## THIS PROGRAM RENAMES STEP IMAGES SEQUENTIALLY, ACCORDING
## TO THE STEP DIRECTORY THEY ARE PRESENT IN. MAKE SURE THAT STEP-XX DIRECTORIES
## ARE NOT EMPTY.
#### For renaming, it uses the 'rename' command. If your system does not have it ...
#### Install rename command using homebrew by running > brew install raname
###########################################
## IF YOU CHOOSE OPTION 0 WHEN ASKED FOR USER INPUT =>
## THIS PROGRAM DOWNLOADS ALL VIDEOS FROM YOUTUBE FOUND IN AN ALREADY SPECIFIED DIRECTORY.
## CURRENT SPECIFIED DIRECTORY = /mnt/c/Users/abhip/Desktop/Y/f
## IF NEEDED, CHANGE SPECIFIED DIRECTORY BY CHANGING THIS
## VARIABLE => $DIR_WHICH_YOUTUBE_VIDEOS.
###############################################################################
## Coded by: PALI
## On: October 13, 2020
############################################################################### |
203 | 1001b-rename-files-by-removing-first-N-words.sh | Usage function found | USAGE: 1001b-rename-files-by-removing-first-N-words.sh
## THIS PROGRAM RENAMES ALL FILES IN A FOLDER BY
## REMOVING THE FIRST WORD, KEEPING ALL OTHERS AS IT IS |
204 | 8-before-and-after-editing-image-differences-compare-checker.sh | Usage function found | USAGE: 8-before-and-after-editing-image-differences-compare-checker.sh
## BEFORE AND AFTER IMAGE DIFFERENCES - CHECKER SCRIPT
## THIS SCRIPT CREATES A 2-COLUMN BEFORE-AND-AFTER HTML FILE WITH...
## ...ALL THE IMAGES TAKEN FROM THE ORIGINAL AND EDITED FOLDERS IN WORKING DIRECTORY |
205 | 13-renaming-image-files-adding-date-prefix.sh | Usage function found | USAGE: 13-renaming-image-files-adding-date-prefix.sh
## THIS SCRIPT AUTOMATICALLY ADDS 'CREATION TIME' PREFIX TO IMAGE FILES.
## Created By: Abhishek
## Creation Date: Monday April 3, 2017 |
206 | 999-make-imagemagick-collage-vertically-and-horizontally.sh | Usage function found | USAGE: 999-make-imagemagick-collage-vertically-and-horizontally.sh
######################################################
## THIS PROGRAM MAKES TWO COLLAGES BY CONCATENATING IMAGES
## IN PRESENT WORKING DIRECTORY USING IMAGEMAGICK.
## ONE COLLAGE IS VERTICAL, AND ONE HORIZONTAL.
######################################################
## MADE ON: Friday OCTOBER 5, 2018
## MADE BY: PALI
###################################################### |
207 | 1003-rename-images-with-custom-prefix-and-counters.sh | Usage function found | USAGE: 1003-rename-images-with-custom-prefix-and-counters.sh
## FILENAME: 1003-rename-images-with-custom-prefix-and-counters.sh
## THIS PROGRAM RENAMES ALL UPPERCASE/lowercase JPG/jpg/PNG/png FILES IN PWD
## THRU COMMAND LINE BY ADDING A USER ENTERED CUSTOM PREFIX AND
## RNNING COUNTERS IN THIS FORMAT = YourPrefix-Counter.Extension
###################################################
## Created: 2020-09-03
## By: Pali
################################################### |
208 | 0000_create_NEW_BASH_SCRIPT_FROM_TEMPLATE.sh | Usage function found | USAGE: 0000_create_NEW_BASH_SCRIPT_FROM_TEMPLATE.sh
################################################################################
## This script creates a fresh BASH SCRIPT from the template text already
## present in REQUIREMENTS file directory.
################################################################################
## REQUIREMENT: /home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/mggk_bash_scripts/_REQUIREMENT_FILES_MGGK/0000-bash-script-creation-template.txt
################################################################################
## CREATED BY: PALI
## CREATED ON: NOV 11, 2020
################################################################################ |
209 | 1002-leelasrecipes-MAKE-VIDEO-SITEMAP-XML.sh | Usage function found | USAGE: 1002-leelasrecipes-MAKE-VIDEO-SITEMAP-XML.sh
################################################################################
## THIS SCRIPT CREATES VIDEO SITEMAP XML FILE FROM ALL THE MD FILES WHICH CONTAIN
## youtube_video_id TAG IN YAML FRONTMATTER.
## IT THEN SAVES IT IN HUGO STATIC DIRECTORY AS video-sitemap.xml
############################################
## USAGE: bash 1002-leelasrecipes-MAKE-VIDEO-SITEMAP-XML.sh
############################################
## CREATED ON: September 09, 2020
## CREATED BY: PALI
################################################################################ |
210 | 1002-leelasrecipes-MOVE-ALL-PWD-IMAGES-TO-PROPER-WEBSITE-FOLDER.sh | Usage function found | USAGE: 1002-leelasrecipes-MOVE-ALL-PWD-IMAGES-TO-PROPER-WEBSITE-FOLDER.sh
################################################################################
## THIS SCRIPT MOVES ALL JPGs or PNGs found in the present working directory and
## MOVES THEM TO THE IMAGES FOLDER LOCATED IN THE LEELASRECIPES WEBSITE DIRECTORY.
## USAGE:
#### bash 1002-leelasrecipes-MOVE-ALL-PWD-IMAGES-TO-PROPER-WEBSITE-FOLDER.sh
################################################################################ |
211 | 1002-leelasrecipes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh | Usage function found | USAGE: 1002-leelasrecipes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
###############################################################################
## THIS PROGRAM RENAMES ALL MD FILES FOUND IN HUGO_CONTENT_DIR BASED UPON THE
## VALUES OF date AND url FRONTMATTER VARIABLE VALUES.
###############################################################################
## CODED ON: August 26, 2020
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates and url in yaml frontmatter of all files in content directory
#### 3. Create a new filename based upon the those variable values.
#### 4. Finally, rename the existing file with the new filename, replacing the original.
#### 5. Check everything is as it should be in Github Desktop. Make sure that
#### the filenames have indeed been changed.
###############################################################################
# USAGE (run the following command):
# > bash 1002-leelasrecipes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
############################################################################ |
212 | 1002-leelasrecipes-CREATE-AND-SAVE-SITE-STATISTICS.sh | Usage function found | USAGE: 1002-leelasrecipes-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################
## THIS SCRIPT GATHERS IMPORTANT SITE STATS USING HUGO MD FILES, AND
## SAVES THEM TO AN OUTPUT FILE IN HUGO STATIC DIRECTORY
## USAGE:
#### bash 1002-leelasrecipes-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################ |
213 | 1002-leelasrecipes-2020-MICROSOFT-BING-BATCH-URL-SUBMISSION.sh | Usage function found | USAGE: 1002-leelasrecipes-2020-MICROSOFT-BING-BATCH-URL-SUBMISSION.sh
###############################################################################
## THIS PROGRAM EXTRACTS 8 TOP URLS FROM LIVE SITEMAP.XML WHICH ARE LATEST UPDATED,
## AND SUBMITS THEM TO BING SEARCH USING BING WEBMASTER API, USING CURL.
###############################################################################
## Coded by: PALI
## Created on: 2020-10-30
############################################################################### |
214 | 1002-leelasrecipes-CREATE-SUBDIRECTORIES-THEN-MOVE-STEPS-IMAGES.sh | Usage function found | USAGE: 1002-leelasrecipes-CREATE-SUBDIRECTORIES-THEN-MOVE-STEPS-IMAGES.sh
################################################################################
## USAGE:
#### > bash 1002-leelasrecipes-CREATE-SUBDIRECTORIES-THEN-MOVE-STEPS-IMAGES.sh
################################################################################
## This script concerns recipe steps images.
## This script needs user input as a number string. It then splits that string into
## an array, and based on the array element, moves those number of recipe steps images
## present in CWD (jpg + png) into corresponding automatically created subdirectories.
################################################################################
## CREATED BY: PALI
## CREATED ON: NOV 11, 2020
################################################################################ |
215 | 0000_create_html_index_with_usage_help_for_all_bash_scripts.sh | Usage function found | >> This enables => 'palidivider' command, which prints a fancy divider on cli.
>> This enables => 'palidelete' command, which moves files into a _trashed_directory instead of deleting completely.
Currently sourcing the bash color script, which outputs chosen texts in various colors ...
[35mThis enables use of keywords for coloring, such as: debug, info, error, success, warn, highlight.[0m
[34mRead it's help by running: >> bash /home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/2000_vendor_programs/color-logger.sh -h[0m
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>>> BEGIN: 0000_create_html_index_with_usage_help_for_all_bash_scripts.sh <<<<<
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> Currently running => 0000_create_html_index_with_usage_help_for_all_bash_scripts.sh
>> OUTPUT_DIR = /mnt/c/Users/abhip/Dropbox/Public/_TO_SYNC_downloads.concepro.com/dropbox-public-files/LCE/_pali_github_scripts_outputs
USAGE: 0000_create_html_index_with_usage_help_for_all_bash_scripts.sh
## THIS SCRIPT CREATES AN HTML OUTPUT FILE in THIS OUTPUT DIR ==>
## /mnt/c/Users/abhip/Dropbox/Public/_TO_SYNC_downloads.concepro.com/dropbox-public-files/LCE/_pali_github_scripts_outputs
## LISTING ALL THE BASH_SCRIPT NAMES IN /home/ubuntu/GitHub
## AND ALSO WHETHER THEY HAVE THE USAGE HELP FUNCTION BLOCK IN THEM OR NOT.
##################################################################################
## USAGE_HOWTO ON CLI > bash 0000_create_html_index_with_usage_help_for_all_bash_scripts.sh
##################################################################################
## If that usage function is not found, then you will have to manually create it.
## >> The idea here is that all bash scripts ending in *.sh extension should have
## >> the usage help function in them, so that if that script is called as
## >> bash SCRIPT_NAME --help , it should return the usage help.
##################################################################################
## CREATED ON: 2020-03-21 22:08
## CREATED BY: PALI
################################################################################## |
216 | 999_01-convert-and-sort-dates-to-human-readable-events.sh | Usage function found | USAGE: 999_01-convert-and-sort-dates-to-human-readable-events.sh
###############################################################################
## THIS PROGRAM READS A TEXT FILE CONTAINING DATES AND EVENTS IN SPECIFIED
## FORMAT, THEN PARSES THEM AND MAKES AN HTML EVENTS INDEX HTML FILE USING
## JAVASCRIPT MOMENT LIBRARY
#### REQUIREMENTS FILE = 999_01-ONLY-EDIT-THIS-FILE-WITH-EVENT-NAMES-AND-DATES.txt
#################### FORMAT OF REQUIREMENTS FILE: #############################
# 20190902,16:10:00,deeppink,Skating-Class
# 20190909,16:10:00,deeppink,Skating-Class
# 20190916,16:10:00,deeppink,Skating-Class
# 20190923,16:10:00,deeppink,Skating-Class
# ...
# ...
##############################################################################
## CODED BY: PALI
## DATE: SEPTEMBER 04 2019
############################################################################### |
217 | 01-mantra-print-logos-on-various-background-colors.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: mantra-scripts/01-mantra-print-logos-on-various-background-colors.py
##################################################################################
## THIS SCRIPT PRINTS MANTRA COACHING LOGO ONTO VARIOUS COLOR BACKGROUDS IN AN
# HTML FILE OUTPUT.
##################################################################################
## MADE BY: PALI
## CODED ON: 2021-02-20
##############################################################################
|
218 | 7-imagemagick-png-to-jpg.sh | Usage function found | USAGE: 7-imagemagick-png-to-jpg.sh
##########################################################
## This script convert all the PNG images in the current directory to JPGs,
## and puts them in a separate folder.
## This tool uses ImageMagick (Mogrify / Convert) installed onto the system.
## Mogrify is used for batch operations, while convert is used for one image.
########################################################## |
219 | 2_create_wallpapers_index.sh | Usage function found | USAGE: 2_create_wallpapers_index.sh
## THIS SCRIPT CREATES WALLPAPER INDEX. |
220 | 999-move_videos_and_photos_to_separate_folders.sh | Usage function found | USAGE: 999-move_videos_and_photos_to_separate_folders.sh
########################################################
## THIS PROGRAM SEPARATES PHOTOS AND VIDOES INTO TWO SEPARATE FOLDERS.
## IT DOES IT BY CREATING TWO NEW FOLDERS BASED UPON THE BASEDIRECTORY NAME, AND THEN
## MOVES ALL LOWERCASE PHOTO FILES (jpg, png) INTO PHOTOS FOLDER, AND ALL LOWERCASE VIDEO
## FILES (mp4, mov, m4v, 3gp) INTO VIDEOS FOLDER.
## CREATED ON: 05-02-2020 16:38
## CREATED BY: PALI
######################################################### |
221 | 102_rename_files_with_creation_date.sh | Usage function found | USAGE: 102_rename_files_with_creation_date.sh
########################################################
## THIS PROGRAM RENAMES ALL FILES IN A DIRECTORY
## BY PREFIXING THE ORIGINAL FILENAME WITH THE CREATION DATE OF THE FILE IN YYYYMMDD FORMAT
## THIS PROGRAM ALSO REMOVES STRANGE CHARS FROM FILENAMES AND REPLACES THEM WITH HYPHENS.
## CREATED ON: Thursday July 19, 2018
## CREATED BY: PALI
######################################################### |
222 | _only-run-this-indexer_n_backup_maker.sh | Usage function found | USAGE: _only-run-this-indexer_n_backup_maker.sh
##############################################################################
ONLY RUN THIS SCRIPT TO MAKE ALL BACKUPS ON LINUX OR MAC.
############################################################################## |
223 | 9-create-these-brand-folders.sh | Usage function found | USAGE: 9-create-these-brand-folders.sh
######################################################
## THIS SCRIPT CREATES NESTED FOLDERS IN THE PWD
## TAKING THE FOLDERNAMES FROM FOLDERNAMES.TXT
## CREATED BY: ABHISHEK PALIWAL
## FIRST CREATED ON: Friday March 10, 2017
## LAST MODIFIED ON: Friday March 10, 2017
###################################################### |
224 | 1599-palinotes-CREATE-AND-SAVE-SITE-STATISTICS.sh | Usage function found | USAGE: 1599-palinotes-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################
## THIS SCRIPT GATHERS IMPORTANT SITE STATS USING HUGO MD FILES, AND
## SAVES THEM TO AN OUTPUT FILE IN HUGO STATIC DIRECTORY
## USAGE:
#### bash 1599-palinotes-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################ |
225 | 1000-palinotes-make-hugo-ready-md-files-from-original-text-files-from-NVNotes.sh | Usage function found | USAGE: 1000-palinotes-make-hugo-ready-md-files-from-original-text-files-from-NVNotes.sh
################################################################################
## THIS SCRIPT PARSES EXPORTED TXT FILES FROM NVNOTES IN A FORMAT READY TO BE
## USED IN HUGO STATIC SITE GENERATOR. IT GENERATES MARKDOWN (MD) FILES AT A RESULT
## FOR EACH TXT FILE ENCOUNTERED. JUST PUT THOSE OUTPUT MD FILES INTO
## HUGO'S CONTENT/POSTS/ DIRECTORY.
################################################################################ |
226 | 1599-palinotes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh | Usage function found | USAGE: 1599-palinotes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
###############################################################################
## THIS PROGRAM RENAMES ALL MD FILES FOUND IN HUGO_CONTENT_DIR BASED UPON THE
## VALUES OF date AND url FRONTMATTER VARIABLE VALUES.
###############################################################################
## CODED ON: Friday November 22, 2019
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates and url in yaml frontmatter of all files in content directory
#### 3. Create a new filename based upon the those variable values.
#### 4. Finally, rename the existing file with the new filename, replacing the original.
#### 5. Check everything is as it should be in Github Desktop. Make sure that
#### the filenames have indeed been changed.
###############################################################################
# USAGE (run the following command):
# > bash 1599-palinotes-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
############################################################################ |
227 | 1001-concepro-CREATE-AND-SAVE-SITE-STATISTICS.sh | Usage function found | USAGE: 1001-concepro-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################
## THIS SCRIPT GATHERS IMPORTANT SITE STATS USING HUGO MD FILES, AND
## SAVES THEM TO AN OUTPUT FILE IN HUGO STATIC DIRECTORY
## USAGE:
#### bash 1001-concepro-CREATE-AND-SAVE-SITE-STATISTICS.sh
################################################################################ |
228 | 1001-concepro-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh | Usage function found | USAGE: 1001-concepro-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
###############################################################################
## THIS PROGRAM RENAMES ALL MD FILES FOUND IN HUGO_CONTENT_DIR BASED UPON THE
## VALUES OF date AND url FRONTMATTER VARIABLE VALUES.
###############################################################################
## CODED ON: May 22, 2020
## CODED BY: PALI
###############################################################################
## STEPS OF LOGICAL EXECUTION:
#### 1. Create a zip backup of full hugo-content-directory containing md files
#### 2. Finding dates and url in yaml frontmatter of all files in content directory
#### 3. Create a new filename based upon the those variable values.
#### 4. Finally, rename the existing file with the new filename, replacing the original.
#### 5. Check everything is as it should be in Github Desktop. Make sure that
#### the filenames have indeed been changed.
###############################################################################
# USAGE (run the following command):
# > bash 1001-concepro-RENAME-ALL-MD-FILES-BASED-UPON-DATE-URL-YAML-FRONTMATTER-VALUES.sh
############################################################################ |
229 | 0B_images2html-maker-with-lazy-loading.sh | Usage function found | USAGE: 0B_images2html-maker-with-lazy-loading.sh
## THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY |
230 | 001-littleA-create-html-by-highlighting-vowels-in-wordlist-textfile.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 001-littleA-scripts/001-littleA-create-html-by-highlighting-vowels-in-wordlist-textfile.py
##############################################################################
## THIS PYTHON SCRIPT PARSES AN EXTERNAL WORD LIST FILE PRESENT IN CWD (=wordlist.txt).
## EACH WORD IS PRESENT IN ITS OWN LINE. MEANING ONE WORD PER LINE.
## IT THEN READS EACH LINE AND HIGHLIGHTS THE VOWELS.
## THEN FINALLY OUTPUTS AN HTML FILE IN CWD WITH THESE HIGHTLIGHED VOWELS.
#######################################
## MADE ON: SEP 30 2020
## BY: PALI
##############################################################################
|
231 | 11-sitemap-for-website-generator.sh | Usage function found | USAGE: 11-sitemap-for-website-generator.sh
# This script creates sitemaps in directories specified as function arguments
# by passing arguments to a function
# Creation Date: Sunday April 16, 2017 |
232 | 10C_create_LOWPOLY_indexes.sh | Usage function found | USAGE: 10C_create_LOWPOLY_indexes.sh
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY + RECUSRSIVELY |
233 | 0A_images2html-maker-with-packery-masonry.sh | Usage function found | USAGE: 0A_images2html-maker-with-packery-masonry.sh
## THIS SCRIPT CREATES AN HTML FILE WITH ...
## ALL THE IMAGES IN WORKING DIRECTORY. |
234 | 101-pali-change-modification-time-of-files.sh | Usage function found | USAGE: 101-pali-change-modification-time-of-files.sh
## THIS PROGRAM CHANGES THE CREATION/MODIFICATION TIME OF ANY FILE WHOSE NAME MATCHES ##
## THE NAMING AS yyyymmdd-filename-is-anything.fileextension, such as 20180401-video-file.mp4, etc. ##
## CREATED by Pali
## DATE: Friday April 6, 2018 |
235 | 2000-collage-maker-for-subdirectories-vendor-script-leelasrecipes.sh | Usage function found | USAGE: 2000-collage-maker-for-subdirectories-vendor-script-leelasrecipes.sh
################################################################################
## THIS SCRIPT MAKES COLLAGES WITH VARIOUS RESOLUTIONS USING VENDOR PYTHON COLLAGE MAKER.
## THIS SCRIPT MAKES COLLAGES FOR RECIPE STEPS IMAGES FOR LEELASRECIPES.
## >>>> NOTE: THIS SCRIPT SHOULD BE RUN FROM A DIRECTORY WHERE MANY FOLDERS ARE PRESENT, EACH
## >>>> CONTAINING SOME IMAGES.
################################################################################
## USAGE: bash 2000-collage-maker-using-vendor-script-leelasrecipes.sh
################################################################################
## MADE BY: PALI
## MADE ON: Thursday May 28, 2021
################################################################################ |
236 | 2000-collage-maker-for-subdirectories-vendor-script.sh | Usage function found | USAGE: 2000-collage-maker-for-subdirectories-vendor-script.sh
################################################################################
## THIS SCRIPT MAKES COLLAGES WITH VARIOUS RESOLUTIONS USING VENDOR PYTHON COLLAGE MAKER.
## >>>> NOTE: THIS SCRIPT SHOULD BE RUN FROM A DIRECTORY WHERE MANY FOLDERS ARE PRESENT, EACH
## >>>> CONTAINING SOME IMAGES.
################################################################################
## USAGE: bash 2000-collage-maker-using-vendor-script.sh
################################################################################
## MADE BY: PALI
## MADE ON: Thursday January 23, 2020
################################################################################ |
237 | 2000-python_collage_maker.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 2000_vendor_programs/2000-python_collage_maker.py
##############################################################################
Collage maker - tool to create picture collages
Author: Delimitry
##############################################################################
|
238 | 2002-download-images-from-webpage-by-python.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 2000_vendor_programs/2002-download-images-from-webpage-by-python.py
##############################################################################
## This script downloads all images from a web page.
## It needs CLI argument of the URL of the web page you want to download images.
## Additionally, you can also pass -p" OR "--path", for the Directory you want to
#### store your images, default dir is the domain of URL passed as www.YOUR-URL.com
##############################################################################
#### USAGE: python3 download_images.py https://www.YOUR-URL.com
####
## If needed, install these dependencies by: pip3 install requests bs4 tqdm
##############################################################################
|
239 | rename_to_title_case.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 2000_vendor_programs/rename_to_title_case.py
##############################################################################
## THIS SCRIPT RENAMES ALL FILES AND FOLDERS RECURSIVELY WITH TITLE CASE.
#### NOTE: Files and directories will only be renamed if they atleast have one other
#### joining characters between filename words, OTHER THAN HYPHENS.
#### It means if the filenames contains only hyphens between words, they will not
#### be renamed to title case.
##############################################################################
|
240 | 2001-quote-wallpaper-maker-with-background-images.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 2000_vendor_programs/2001-python-quotes-wallpapers/2001-quote-wallpaper-maker-with-background-images.py
################################################################################
## THIS SCRIPT MAKES QUOTES WALLPAPERS WITH BACKGROUND IMAGES AND RANDOM BACKGROUND COLORS.
## IT USES PYTHON PILLOW (PIL) LIBRARY TO CREATE SUCH QUOTE WALLPAPER IMAGES.
################################################################################
## USAGE: python3 THIS_SCRIPT_NAME
################################################################################
## MADE BY: PALI
## MADE ON: Thursday FEB 02, 2021
################################################################################
|
241 | color-logger.sh | Usage function found | USAGE: color-logger.sh
# Some credit to https://github.com/maxtsepkov/bash_colors/blob/master/bash_colors.sh
#
# Constants and functions for terminal colors. Not using tput
# Author: Steve Wyckoff
# This script is downloaded from: https://github.com/swyckoff/color-logger-bash
################################################################################## |
242 | 2000-python_collage_maker_vertical_and_horizontal_grid.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: 2000_vendor_programs/2000-python_collage_maker_vertical_and_horizontal_grid.py
################################################################################
## THIS SCRIPT MAKES COLLAGES WITH VARIOUS NUMBER OF IMAGES PER ROW.
## IT ALSO CREATES VERTICAL AND HORIZONTAL COLLAGES FROM ALL IMAGES FROM SUBDIRECTORIES.
#### NOTE: THIS SCRIPT SHOULD BE RUN FROM A DIRECTORY WHERE MANY FOLDERS ARE PRESENT, EACH
#### CONTAINING SOME IMAGES.
################################################################################
## USAGE: python3 THIS_SCRIPT_NAME ARG1 ARG2
#### (where, ARG1 = images_input_directory // ARG2 = collage_output_directory)
################################################################################
## MADE BY: PALI
## MADE ON: Thursday June 02, 2021
################################################################################
|
243 | tecmint_monitor_ubutuwindows.sh | Usage function found | USAGE: tecmint_monitor_ubutuwindows.sh
####################################################################################################
# Tecmint_monitor.sh
# Written for Tecmint.com for the post: www.tecmint.com/linux-server-health-monitoring-script/
# RUN AS => bash THIS_SCRIPT_NAME
#################################################################################################### |
244 | pi00-copy-important-files-to-output-dir.sh | Usage function found | USAGE: pi00-copy-important-files-to-output-dir.sh
# Purpose: Copies some important files to script output directory
# Created on : Monday January 13, 2020 |
245 | screen-lock.sh | Usage function found | USAGE: screen-lock.sh
### THIS SCRIPT RUNS A COMMAND TO LOCK THE SCREEN |
246 | pi000_step0_only_run_this_to_download_all_bash_scripts.sh | Usage function found | USAGE: pi000_step0_only_run_this_to_download_all_bash_scripts.sh
##########################################################################################
## Only run this script on Raspberry Pi4, and it will take care of everything in sequence.
## This script will download the freshest copies of the bash scripts from GitHub repo,
## necessary to make the video slideshow from photos.
##########################################################################################
## Created on: Wednesday January 15, 2020
## Coded by: Pali
######################################################################################### |
247 | my-pi-temp.sh | Usage function found | USAGE: my-pi-temp.sh
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 |
248 | pi02-print-directory-structure-to-file.sh | Usage function found | USAGE: pi02-print-directory-structure-to-file.sh
# Purpose: Writes directory structures to a TXT file
# Created on : Monday January 13, 2020 |
249 | pi03_step1_temperature_plots_using_python.py | Usage function found |
## USAGE HELP IS PRINTED BELOW. SCRIPT WILL EXIT AFTER THAT.
## USAGE: raspberry-pi-scripts/pi03-temperature-plots-using-python3/pi03_step1_temperature_plots_using_python.py
##############################################################################
## THIS PROGRAM USES CSV OUTPUTS CREATED FROM PI03... PYTHON SCRIPT, AND CREATE
## VARIOUS PLOTS USING PYTHON pandas AND matplotlib packages.
## Created on: January 16, 2020
## Created by: Pali
##############################################################################
|
250 | pi03_step0_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh | Usage function found | USAGE: pi03_step0_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh
################################################################################
## RUN THIS SCRIPT FOR MAKING PLOTS USING THE UNDERLYING pi03... PYTHON FILE.
## IT WILL USE ALL THE CSV FILES FOR THE DATA, AND MAKE ONE PLOT FOR EACH CSV FILE.
################################################################################
## USAGE: bash pi03_step0_only_run_this_script_for_making_all_plots_using_underlying_python_program.sh
################################################################################
## CREATED ON: January 16, 2020
## CREATED BY: Pali
################################################################################ |
251 | pi01-temperature_plot_data_creator.sh | Usage function found | USAGE: pi01-temperature_plot_data_creator.sh
# Purpose: Writes the ARM CPU and GPU temperatures to a CSV file
# Created on: Monday January 13, 2020 |
252 | create_pi_backup.sh | Usage function found | USAGE: create_pi_backup.sh
## This script makes backup of the home folder
## on raspberry pi computer in BACKUP_DIR. |
253 | 5-abhishek_create_MACFILES_backup.sh | Usage function found | USAGE: 5-abhishek_create_MACFILES_backup.sh
## This bash script creates the backups of all the important files on our Macs. ##
## Just run this script on any Mac, and it will create that ubuntu's backup folder automatically. |
254 | 0000_create_main_index_html_page_from_github_projects.sh | Usage function found | USAGE: 0000_create_main_index_html_page_from_github_projects.sh
## THIS SCRIPT CREATES AN HTML OUTPUT FILE in THIS OUTPUT DIR ==>
## /home/ubuntu/GitHub/HASHBANGHACKS-WEBAPP
## LISTING ALL THE BASH_SCRIPT NAMES IN /home/ubuntu/GitHub
## AND ALSO WHETHER THEY HAVE THE USAGE HELP FUNCTION BLOCK IN THEM OR NOT.
##################################################################################
## USAGE_HOWTO ON CLI > bash 0000_create_main_index_html_page_from_github_projects.sh
##################################################################################
## If that usage function is not found, then you will have to manually create it.
## >> The idea here is that all bash scripts ending in *.sh extension should have
## >> the usage help function in them, so that if that script is called as
## >> bash SCRIPT_NAME --help , it should return the usage help.
##################################################################################
## CREATED ON: 2022-09-19
## CREATED BY: PALI
################################################################################## |
255 | 6_tinyPNG-API-Image-Maker.sh | Usage function found | USAGE: 6_tinyPNG-API-Image-Maker.sh
#############################################################################
## Using tinyPNG/tinyJPG server API to create compressed images. AWESOME!!!
## Created by: Pali
## Created on: Thursday January 5, 2017
#########################################
## STEPS:
## >> Open the Terminal. Go to desired directory. Run this bash script.
## >> Run on CLI as > bash /home/ubuntu/GitHub/Bash-Scripts-To-Make-Life-Easier/6_tinyPNG-API-Image-Maker.sh
############################################################################# |
256 | 1004-rename-images-with-custom-prefix-and-zero-padded-counters.sh | Usage function found | USAGE: 1004-rename-images-with-custom-prefix-and-zero-padded-counters.sh
################################################################################
## USAGE:
#### > bash 1004-rename-images-with-custom-prefix-and-zero-padded-counters.sh
## THIS PROGRAM RENAMES ALL UPPERCASE/lowercase JPG/jpg/PNG/png FILES IN PWD
## THRU COMMAND LINE BY ADDING A USER ENTERED CUSTOM PREFIX AND
## RUNNING ZERO-PADDED COUNTERS IN THIS FORMAT = YourPrefix-ZeroPaddedCounter.Extension
###################################################
## Created: 2020-09-03
## By: Pali
################################################### |
257 | 1_create_markdown_books_index.sh | Usage function found | USAGE: 1_create_markdown_books_index.sh
## THIS SCRIPT CREATES INDEX OF ALL MARKDOWN FILES |
258 | 301_create_merged_bash_aliases.sh | Usage function found | USAGE: 301_create_merged_bash_aliases.sh
############################################################################
## THIS PROGRAM TAKES TWO DIFFERENT .BASH_ALIASES FILES AND CREATES
## A MERGED FILE WITH ALL THE UNIQUE LINES (AKA ALIASES)
## STEPS:
#### 1. ON THE CLIENT MACHINE, MAKES A COPY OF THE BASH ALIASES FILE IN
####### ONEDRIVE TMP FOLDER
#### 2. REPEATS STEP 1 ON ANOTHER CLIENT'S MACHINE
#### 3. FINDS THE DIFFERENCES BETWEEN THOSE TWO FILES, AND MERGES THEM, AND
####### CREATES A NEW MERGED ALIASES FILE. JUST REPLACE THIS FILE TO BOTH THE
####### THE BASH ALIASES ON BOTH CLIENT MACHINES.
############################################################################
## CREATED ON: MARCH 27 2019
## BY: PALI
############################################################################ |
259 | 9996-digitalocean-send-server-backups-to-dreamobjects.sh | Usage function found | USAGE: 9996-digitalocean-send-server-backups-to-dreamobjects.sh
################################################################################
## USAGE:
#### > bash 9996-digitalocean-send-server-backups-to-dreamobjects.sh
################################################################################
## This program copies all backup zip files to a dedicated dreamobjects bucket.
## This program uses rclone too. Install it via linuxbrew.
#######################################
## IMPORTANT NOTE: This program should only be run on DIGITALOCEAN SERVER.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2022-02-11
################################################################################ |
260 | 9999-download-latest-scripts-from-github-repo-for-crontab.sh | Usage function found | USAGE: 9999-download-latest-scripts-from-github-repo-for-crontab.sh
################################################################################
## THIS SCRIPT DOWNLOADS THE LATEST VERSIONS OF SCRIPTS FROM GITHUB REPOS.
## Add more scripts as needed.
################################################################################
## IMPORTANT NOTE: Please dont include this script to download itself.
################################################################################
## Created on: July 31, 2021
## Coded by: Pali
###############################################################################
# USAGE (run the following command):
# > bash 9999-download-latest-scripts-from-github-repo-for-crontab.sh
############################################################################ |
261 | 9998-digitalocean-create-responsive-images-and-copy-to-cdn.sh | Usage function found | USAGE: 9998-digitalocean-create-responsive-images-and-copy-to-cdn.sh
################################################################################
## USAGE:
#### > bash 9998-digitalocean-create-responsive-images-and-copy-to-cdn.sh
################################################################################
#### IMPORTANT: THIS SCRIPT SHOULD ONLY BE RUN ON DIGITAL OCEAN SERVER.
## This script reads all jpg images (only jpg) from given directories and creates
## responsive images to be read by the srcset html image tags by the browser.
## Example image resolutions include: 350px, 425px, 550px, 675px, 800px, etc.
#### NOTE: Needs the rclone cli program. (https://rclone.org/)
#### Install by running > brew install rclone
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-10-18
################################################################################ |
262 | 9995-digitalocean-delete-all-temporary-unnecessary-files.sh | Usage function found | USAGE: 9995-digitalocean-delete-all-temporary-unnecessary-files.sh
################################################################################
## USAGE:
#### > bash 9995-digitalocean-delete-all-temporary-unnecessary-files.sh
################################################################################
## This program deletes all temporary unnecessary files on digitalocean server.
#######################################
## IMPORTANT NOTE: This program should only be run on DIGITALOCEAN SERVER.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2022-02-21
################################################################################ |
263 | 9999-show-files-to-delete-for-space-cleanup-digitalocean.sh | Usage function found | USAGE: 9999-show-files-to-delete-for-space-cleanup-digitalocean.sh
################################################################################
## This is the script you need to run for housecleaning of the server.
################################################################################
## Created on: Feb 16, 2021
## Last updated on: Feb 17, 2021
## Coded by: Pali
###############################################################################
# USAGE (run the following command):
# > bash 9999-show-files-to-delete-for-space-cleanup-digitalocean.sh
############################################################################ |
264 | 1001-rename-all-files-in-folder-by-removing-strange-chars.sh | Usage function found | USAGE: 1001-rename-all-files-in-folder-by-removing-strange-chars.sh
## FILENAME: 1001-rename-all-files-in-folder-by-removing-strange-chars.sh
## THIS PROGRAM RENAMES ALL FILES IN PWD THRU COMMAND LINE BY REMOVING ALL STRANGE CHARS
###################################################
## Created: Tuesday July 29, 2018
## By: Pali
################################################### |
265 | 999-copy-n-random-files-in-folder.sh | Usage function found | USAGE: 999-copy-n-random-files-in-folder.sh
###########################################################
## THIS PROGRAM COPIES N-RANDOM FILES TO TMP DIRECTORIES
## FROM ALL THE FILES IN A GIVEN DIRECTORY USING 2 DIFFERENT APPROACHES
## 1. BY SELECTING EVERY Nth FILE (eg., will select every 5th file after 'ls' from a list of 100 files, etc.)
## 2. BY DOING A SHUFFLE COMMAND (TOTALLY RANDOM FILES)
## MADE BY: PALI
## MADE ON: Thursday September 27, 2018
########################################################### |
266 | 1001a-rename-files-with-first-N-words.sh | Usage function found | USAGE: 1001a-rename-files-with-first-N-words.sh
## THIS PROGRAM RENAMES ALL FILES IN A FOLDER BY
## KEEPING THE FIRST N-WORDS, REMOVING EVERYTHING AFTER THAT |
267 | 10D_create_OUR_LOGOS_indexes.sh | Usage function found | USAGE: 10D_create_OUR_LOGOS_indexes.sh
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY + RECUSRSIVELY |
268 | 10A_create_JSON_plus_image_indexes.sh | Usage function found | USAGE: 10A_create_JSON_plus_image_indexes.sh
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY + RECURSIVELY |
269 | 203-join-N-random-mp3-files-using-ffmpeg.sh | Usage function found | USAGE: 203-join-N-random-mp3-files-using-ffmpeg.sh
#################################################
## THIS PROGRAM CONCATENATES N MP3 FILES.
## WHERE, N = AN INTEGER PROVIDED BY USER
## DATE: Sunday August 12, 2018
## MADE BY: PALI
################################################# |
270 | 113_ffmpeg_images_to_video_slideshow_maker.sh | Usage function found | USAGE: 113_ffmpeg_images_to_video_slideshow_maker.sh
###############################################
## THIS SCRIPT USES IMAGEMAGICK AND FFMPEG TO CREATE A VIDEO slideshow ...
## ... from STILL IMAGES USING CONFIGURABLE PARAMETERS
## IMPORTANT NOTE: Make sure that all the images used by FFMPEG are PNGs, and not JPGs.
## TUTORIAL LINK: https://trac.ffmpeg.org/wiki/Slideshow#Colorspaceconversionandchromasub-sampling
############################################### |
271 | 111-ffmpeg-convert-opus-to-mp3.sh | Usage function found | USAGE: 111-ffmpeg-convert-opus-to-mp3.sh
## THIS PROGRAM USES FFMPEG TO CONVERT AUDIO FILE FROM OPUS FORMAT TO MP3
## DATE: Monday July 2, 2018
## By: Pali |
272 | 115_imagemagick_print_custom_label_text_onto_images.sh | Usage function found | USAGE: 115_imagemagick_print_custom_label_text_onto_images.sh
########################################################################################
# THIS PROGRAM USES IMAGEMAGICK TO INSERT CUSTOM TEXT AS LABEL ONTO IMAGES,
# AFTER READING INPUTS FROM COMMAND LINE
# CREATED BY: PALI
# CREATED ON: Thursday August 15, 2018
######################################################################################## |
273 | 114_make_imagemagick_collage_with_title.sh | Usage function found | USAGE: 114_make_imagemagick_collage_with_title.sh
########################################################################################
# THIS PROGRAM USES IMAGEMAGICK TO CREATE A TITLE AFTER READING INPUTS FROM COMMAND LINE
# THEN, CREATES A COLALGE USING ALL THE IMAGES IN THE FOLDER
# CREATED BY: PALI
# CREATED ON: Thursday August 2, 2018
######################################################################################## |
274 | 000-pali-ffmpeg-command-examples.sh | Usage function found | USAGE: 000-pali-ffmpeg-command-examples.sh
##############################################
## FFMPEG VIDEO CONVERSION - Some Example Commands
############################################## |
275 | 117-imagemagick-sort-images-long-and-wide.sh | Usage function found | USAGE: 117-imagemagick-sort-images-long-and-wide.sh
########################################################################################
# THIS PROGRAM USES IMAGEMAGICK TO SORT AND RENAME IMAGE FILES
# BASED UPON THEIR DIMESIONS AS WIDE AND LONG
# CREATED BY: PALI
# CREATED ON: Thursday SEPTEMBER 5, 2018
######################################################################################## |
276 | 120-ffmpeg-make-video-grid-collage.sh | Usage function found | USAGE: 120-ffmpeg-make-video-grid-collage.sh
################################################################################
## USAGE:
#### > bash 120-ffmpeg-make-video-grid-collage.sh
################################################################################
## This program makes video collages in 1920x1080 as 2x3, 3x2, 3x3 grid.
## It reads mp4 video files in working directory as inputs and renames them as
## 1.mp4, 2.mp4, 3.mp4, etc.
################################################################################
## CREATED BY: PALI
## CREATED ON: 2021-12-06
################################################################################ |
277 | 202-change-id3-tags-info-for-mp3.sh | Usage function found | USAGE: 202-change-id3-tags-info-for-mp3.sh
## FILENAME: 202-change-id3-tags-info-for-mp3.sh
## THIS PROGRAM CHANGES THE ID3 MUSIC TAGS OF AUDIO MP3 FILES THRU COMMAND LINE
## THIS PROGRAM USES 'MUTAGEN' PYTHON API TOOLS, AND SPECIFICALLY mid3v2 cli TOOL FROM MUTAGEN
###################################################
## Installing Mutagen Tools on OSX = Run 'sudo pip3 install mutagen' in OS X.
## See full tutorial here: http://mutagen.readthedocs.io/en/latest/man/mid3v2.html
## Created: Tuesday July 17, 2018
## By: Pali
################################################### |
278 | 201_sorting_mp3_files_by_duration.sh | Usage function found | USAGE: 201_sorting_mp3_files_by_duration.sh
##############################
## USAGE COMMAND: sh 201_sorting_mp3_files_by_duration.sh "INTEGER_ARGUMENT" "SONG_DIRECTORY"
## IMPORTANT NOTE: ALWAYS USE AN ARGUMENT WITH THIS SCRIPT
##############################
## THIS PROGRAM GOES THROUGH A FOLDER CONTAINING MP3 Files
## THEN, FINDS THEIR DURATION, AND SORTS THEM IN A TEXT File
## IT THEN MAKES ANOTHER TXT FILE WHERE DURATION ARE GREATER THAN CERTAIN VALUE.
## FINALLY, CHOOSES A RANDOM MP3 FILE LONGER THAN THE SUPPLIED ARGUMENT ...
## ... FROM THAT SORTED FILE FOR FFMPEG VIDEO
## DATE: Tuesday July 3, 2018
## BY: PALI
############################## |
279 | 116_imagemagick_crop_images_to_any_custom_dimensions.sh | Usage function found | USAGE: 116_imagemagick_crop_images_to_any_custom_dimensions.sh
#########################################
## THIS PROGRAM RESIZES THEN CROPS IMAGES ...
## FROM THE SUPPLIED COMMAND LINE ARGUMENTS AS $1 $2 $3, where $3 is optional
## USING IMAGES PRESENT IN A FOLDER
######################
## USE-HOWTO:
## (uses 3 arguments, 3rd is optional): sh program.sh $1 $2 $3"
## $1 is width in PX // $2 is height in PX. // $3 is Image-File-List.txt (optional)
######################
## NAME: 116_imagemagick_crop_images_to_any_custom_dimensions.sh
## CODED BY: Pali
## DATE: Friday August 24, 2018
########################################## |
280 | 114a_make_imagemagick_very_fancy_custom_collage.sh | Usage function found | USAGE: 114a_make_imagemagick_very_fancy_custom_collage.sh
######################################
## THIS PROGRAM MAKES A COLLAGE BY MAKING ROWS OF SUBCOLLAGES ...
## USING IMAGES PRESENT IN A FOLDER
###################################### |
281 | 119-imagemagick-make-video-slideshow-title-using-collage-n-text.sh | Usage function found | USAGE: 119-imagemagick-make-video-slideshow-title-using-collage-n-text.sh
##############################################################################
## THIS PROGRAM USES IMAGEMAGICK TO CREATE A SLIDESHOW TITLE SLIDE FROM
## IMAGES IN PRESENT WORKING DIRECTORY, USING TWO LINES OF TEXT AND
## FIRST 8 IMAGES PRESENT IN THAT FOLDER (WIDE IMAGES WORK BEST)
##########################################
## IMPORTANT NOTE:
## All the image names should start with lowercase 'a', such as a101.jpg, a102.jpg, etc.
##########################################
## MADE BY: PALI
## CRAFTED ON: Sunday October 14, 2018
############################################################################## |
282 | 118-imagemagick-make-title-slides-and-move-to-their-directories.sh | Usage function found | USAGE: 118-imagemagick-make-title-slides-and-move-to-their-directories.sh
######################################################
## THIS PROGRAM LISTS ALL FOLDERS IN PWD, AND THEN
## BASED UPON THEIR NAMES, CREATES A TITLE SLIDE USING IMAGEMAGICK
## MADE BY: PALI
## CRAFTED ON: Saturday September 15, 2018
###################################################### |
283 | 112-ffmpeg-join-movies.sh | Usage function found | USAGE: 112-ffmpeg-join-movies.sh
## THIS BASH FILE CONCATENATES THE VIDEO FILES, ALL MP4 FILES PRESENT IN A DIRECTORY.
## BEORE RUNNING THIS, MAKE SURE THAT THE MP4 FILES ARE CORRECTLY ENCODED BY ADOBE ENCODER, ALL WITH THE SAME SPECS |
284 | 0C_images2html-maker-with-names.sh | Usage function found | USAGE: 0C_images2html-maker-with-names.sh
## THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY |
285 | 10E_create_adoria_xyz_portfolio_index_page.sh | Usage function found | USAGE: 10E_create_adoria_xyz_portfolio_index_page.sh
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY + RECURSIVELY |
286 | 10B_create_SOCIAL_MEDIA_image_indexes.sh | Usage function found | USAGE: 10B_create_SOCIAL_MEDIA_image_indexes.sh
## BOOTSTRAP FRAMEWORK : THIS SCRIPT CREATES AN HTML FILE WITH...
## ...ALL THE IMAGES IN WORKING DIRECTORY + RECUSRSIVELY |
287 | 999-count-number-of-files-in-directories-recursively.sh | Usage function found | USAGE: 999-count-number-of-files-in-directories-recursively.sh
################################################################################
## THIS PROGRAM PRINTS THE NUMBER OF FILES FOUND IN ALL THE SUBDIRECTORIES IN
## THE DIRECTORY TREE.
## OPTIONALLY IT REQUIRES A CLI ARGUMENT AS THE DIRECTORY FOR
## WHICH THE FILES COUNT NEEDED TO BE FOUND. IF NO CLI ARGUMENT IS PROVIDED,
## IT USES THE CURRENT WORKING DIRECTORY FOR THE FILE COUNT.
################################
## USAGE: bash THIS_SCRIPT_NAME $1
################################
## CREATED BY: PALI
## CREATED ON: 2020-02-05
################################################################################# |