From 691ef961f91ea341d5f519586686e40ad8115423 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 16:57:10 -0400 Subject: [PATCH 01/44] Create addtabindex.js --- js/addtabindex.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 js/addtabindex.js diff --git a/js/addtabindex.js b/js/addtabindex.js new file mode 100644 index 0000000..aea35dc --- /dev/null +++ b/js/addtabindex.js @@ -0,0 +1,12 @@ +/* + * Add HTML attribute tabindex="0" to element with .CLASS_NAME + * @see - https://api.jquery.com/attr/ + * @see - https://api.jquery.com/jQuery.noConflict/ + */ + +jQuery(document).ready(function ($) { + $('.CLASS_NAME').each(function() { + var $element = $(this); + $element.attr("tabindex", "0"); + }); +}); From 434ae9ab16673cd551e007d6b731a3db54be2bbf Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 16:59:10 -0400 Subject: [PATCH 02/44] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0cac87c..6563d26 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -# useful-snippets \ No newline at end of file +# Useful Snippets +Just bits of code I may want to use again From 94c168ef9ae561180b1b347b4caaa0a54477b535 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:18:33 -0400 Subject: [PATCH 03/44] Create useful_sites.md --- accessibility/useful_sites.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 accessibility/useful_sites.md diff --git a/accessibility/useful_sites.md b/accessibility/useful_sites.md new file mode 100644 index 0000000..54090d2 --- /dev/null +++ b/accessibility/useful_sites.md @@ -0,0 +1,5 @@ +#Useful Links + +##Guides +[Yale's Web Accessibilty Site](https://usability.yale.edu/web-accessibility/) +[WebAim] (https://webaim.org) From 53ab1f7454793d746afcc6c0ba4710ca9bfd81a5 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:21:05 -0400 Subject: [PATCH 04/44] Update useful_sites.md --- accessibility/useful_sites.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/accessibility/useful_sites.md b/accessibility/useful_sites.md index 54090d2..157d559 100644 --- a/accessibility/useful_sites.md +++ b/accessibility/useful_sites.md @@ -1,5 +1,5 @@ -#Useful Links +# Useful Links -##Guides -[Yale's Web Accessibilty Site](https://usability.yale.edu/web-accessibility/) -[WebAim] (https://webaim.org) +## Guides +- [Yale's Web Accessibilty Site](https://usability.yale.edu/web-accessibility/) +- [WebAim](https://webaim.org) From ac4a54c0353811c3cb1dba96a92284ffcd34cc6b Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:24:02 -0400 Subject: [PATCH 05/44] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6563d26..09b9f4d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # Useful Snippets Just bits of code I may want to use again + +# Useful Links +## Wikis +https://www.markdownguide.org/basic-syntax/#headings From 4277da8a6e6b81ea53e4960c11fd439720283a94 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:31:39 -0400 Subject: [PATCH 06/44] Create useful_links.md --- wp/widgets/useful_links.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 wp/widgets/useful_links.md diff --git a/wp/widgets/useful_links.md b/wp/widgets/useful_links.md new file mode 100644 index 0000000..0d17ec1 --- /dev/null +++ b/wp/widgets/useful_links.md @@ -0,0 +1,4 @@ +# Useful Links + +## Getting Started with Widgets +[WordPress Developer Documentation Widgets](https://developer.wordpress.org/themes/functionality/widgets/) From cf3f06ceb4b2207e60e64a18eb3e464261fc70a5 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:32:02 -0400 Subject: [PATCH 07/44] Rename useful_links.md to readme.md --- wp/widgets/{useful_links.md => readme.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename wp/widgets/{useful_links.md => readme.md} (100%) diff --git a/wp/widgets/useful_links.md b/wp/widgets/readme.md similarity index 100% rename from wp/widgets/useful_links.md rename to wp/widgets/readme.md From c5e3dd7f735242000dcf22b2780e8e6f755122d2 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 18 May 2020 18:32:29 -0400 Subject: [PATCH 08/44] Rename useful_sites.md to readme.md --- accessibility/{useful_sites.md => readme.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename accessibility/{useful_sites.md => readme.md} (100%) diff --git a/accessibility/useful_sites.md b/accessibility/readme.md similarity index 100% rename from accessibility/useful_sites.md rename to accessibility/readme.md From 5208755420cb8369f193f4c95381c2d92ab983af Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 10:19:58 -0400 Subject: [PATCH 09/44] Create readme.md --- wp/readme.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 wp/readme.md diff --git a/wp/readme.md b/wp/readme.md new file mode 100644 index 0000000..eb9c809 --- /dev/null +++ b/wp/readme.md @@ -0,0 +1,4 @@ +# Useful Wordpress Links + +## Customizer +- 2017 [Madison Designs - Customizer Developer Guide](https://maddisondesigns.com/2017/05/the-wordpress-customizer-a-developers-guide-part-1/) From 97d8faf1ecbd7f4e9545844df29f1f73608b4c07 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 11:14:03 -0400 Subject: [PATCH 10/44] Update readme.md --- wp/widgets/readme.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp/widgets/readme.md b/wp/widgets/readme.md index 0d17ec1..8fa2136 100644 --- a/wp/widgets/readme.md +++ b/wp/widgets/readme.md @@ -1,4 +1,2 @@ -# Useful Links +# -## Getting Started with Widgets -[WordPress Developer Documentation Widgets](https://developer.wordpress.org/themes/functionality/widgets/) From e2991c06af66a365f0646cf418e6ff7b618910b2 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 11:15:22 -0400 Subject: [PATCH 11/44] Update readme.md --- wp/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp/readme.md b/wp/readme.md index eb9c809..0965271 100644 --- a/wp/readme.md +++ b/wp/readme.md @@ -2,3 +2,6 @@ ## Customizer - 2017 [Madison Designs - Customizer Developer Guide](https://maddisondesigns.com/2017/05/the-wordpress-customizer-a-developers-guide-part-1/) + +## Widgets + [WordPress Developer Documentation Widgets](https://developer.wordpress.org/themes/functionality/widgets/) From 0a0b2334e9c6758ce1888c0c812b1b1f16c812ae Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 11:16:04 -0400 Subject: [PATCH 12/44] Update readme.md --- wp/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp/readme.md b/wp/readme.md index 0965271..ab1f739 100644 --- a/wp/readme.md +++ b/wp/readme.md @@ -4,4 +4,4 @@ - 2017 [Madison Designs - Customizer Developer Guide](https://maddisondesigns.com/2017/05/the-wordpress-customizer-a-developers-guide-part-1/) ## Widgets - [WordPress Developer Documentation Widgets](https://developer.wordpress.org/themes/functionality/widgets/) +- [WordPress Developer Documentation Widgets](https://developer.wordpress.org/themes/functionality/widgets/) From 7af821957c65a80f3e1745a521319c56d5d75581 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 11:16:55 -0400 Subject: [PATCH 13/44] Create readme.md --- js/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 js/readme.md diff --git a/js/readme.md b/js/readme.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/js/readme.md @@ -0,0 +1 @@ + From b146d58767048474ec80ed99a9141440494b06d0 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 11:18:01 -0400 Subject: [PATCH 14/44] Create readme.md --- cli/regex/readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 cli/regex/readme.md diff --git a/cli/regex/readme.md b/cli/regex/readme.md new file mode 100644 index 0000000..b2c3d68 --- /dev/null +++ b/cli/regex/readme.md @@ -0,0 +1 @@ +stuff and things From 12ca6636be03463a818f14b88560e4ad6a27bf33 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 14:24:09 -0400 Subject: [PATCH 15/44] Update readme.md --- accessibility/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/accessibility/readme.md b/accessibility/readme.md index 157d559..89607de 100644 --- a/accessibility/readme.md +++ b/accessibility/readme.md @@ -1,5 +1,6 @@ # Useful Links ## Guides +- [Harvard's Web Accessibilty Site](https://accessibility.huit.harvard.edu) - [Yale's Web Accessibilty Site](https://usability.yale.edu/web-accessibility/) - [WebAim](https://webaim.org) From 314df3ea0d68ea409d133705166a7148867a451a Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 15:10:50 -0400 Subject: [PATCH 16/44] Create readme.md --- wp/CAS/readme.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 wp/CAS/readme.md diff --git a/wp/CAS/readme.md b/wp/CAS/readme.md new file mode 100644 index 0000000..495f7d4 --- /dev/null +++ b/wp/CAS/readme.md @@ -0,0 +1,6 @@ +# CAS Authentication + +## Useful plugins +- [College of Education, University of Hawaii at Manoa' Authorizer Plugin](https://github.com/uhm-coe/authorizer/) +* [WordPress Plugin Page for Authorizer]( https://wordpress.org/plugins/authorizer/) +- WPCassify From 6ea289bb1b72c6f573fa728098208a59fa3bf6a7 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 19 May 2020 15:11:50 -0400 Subject: [PATCH 17/44] Update readme.md --- wp/CAS/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp/CAS/readme.md b/wp/CAS/readme.md index 495f7d4..ce9a781 100644 --- a/wp/CAS/readme.md +++ b/wp/CAS/readme.md @@ -2,5 +2,5 @@ ## Useful plugins - [College of Education, University of Hawaii at Manoa' Authorizer Plugin](https://github.com/uhm-coe/authorizer/) -* [WordPress Plugin Page for Authorizer]( https://wordpress.org/plugins/authorizer/) + * [WordPress Plugin Page for Authorizer]( https://wordpress.org/plugins/authorizer/) - WPCassify From 88056132f23915c09da9ef2a822c076d829362ed Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Thu, 7 Oct 2021 11:21:30 -0400 Subject: [PATCH 18/44] Create shortcode-table-example.txt --- wp/plugins/plugins-list/shortcode-table-example.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 wp/plugins/plugins-list/shortcode-table-example.txt diff --git a/wp/plugins/plugins-list/shortcode-table-example.txt b/wp/plugins/plugins-list/shortcode-table-example.txt new file mode 100644 index 0000000..e8709d1 --- /dev/null +++ b/wp/plugins/plugins-list/shortcode-table-example.txt @@ -0,0 +1,10 @@ +
+ + + + + + + + +[plugins_list cache=60 format=""]
PluginDescription
{{LinkedTitle}}
by: {{LinkedAuthor}}
{{Description}}
PluginDescription
From c89869e9aa553e91b5b67c8050e3d208cd717b5d Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 12 Oct 2021 14:06:13 -0400 Subject: [PATCH 19/44] Create update-network.txt --- wp/cli/update-network.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 wp/cli/update-network.txt diff --git a/wp/cli/update-network.txt b/wp/cli/update-network.txt new file mode 100644 index 0000000..ee88195 --- /dev/null +++ b/wp/cli/update-network.txt @@ -0,0 +1,7 @@ +# https://developer.wordpress.org/cli/commands/core/update/ +# force: update or downgrade to a specific release +wp core update --version=x.x --force + +# Update database after code update +# https://developer.wordpress.org/cli/commands/core/update-db/ +wp core update-db --network From 1410922c6fec09338d863f8d966f3fdebbf54a2d Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Wed, 17 Nov 2021 16:33:00 -0500 Subject: [PATCH 20/44] Create S3.md --- cli/aws/S3.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cli/aws/S3.md diff --git a/cli/aws/S3.md b/cli/aws/S3.md new file mode 100644 index 0000000..61ca0ec --- /dev/null +++ b/cli/aws/S3.md @@ -0,0 +1,2 @@ +# Copying down to local machine +$ aws s3 cp s3://bucket/folder/file.txt From 5a3518b5bfabee6dc27cc1b76fe655cae5f71e49 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Wed, 17 Nov 2021 16:52:40 -0500 Subject: [PATCH 21/44] Update S3.md --- cli/aws/S3.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 61ca0ec..3637c2d 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -1,2 +1,19 @@ -# Copying down to local machine -$ aws s3 cp s3://bucket/folder/file.txt +# AWS CLI + +- [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) +- [Installing AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) +- [AWS - Step 2: Create an IAM user account](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-prereqs.html#getting-started-prereqs-iam) +- [AWS - Step 3: Create an access key ID and secret access key] (https://docs.aws.amazon.com/cli/latest/userguide/getting-started-prereqs.html#getting-started-prereqs-keys) + +## Copying down to local machine +We off load wp-content/uploads to AWS using WPEngine's LargeFS +Sometimes we create a clone of a server for development and need to also copy the images +[AWS's documentation ](https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html) + + +- Create a directory to store the files `mkdir s3-files` +- Navigate to that file + + + +`$ aws s3 cp s3://bucket/folder/file.txt ` From 02bb7d412228b32e5833aba7afa52ed2509d1306 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Wed, 17 Nov 2021 16:53:05 -0500 Subject: [PATCH 22/44] Update S3.md --- cli/aws/S3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 3637c2d..54500c8 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -3,7 +3,7 @@ - [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html) - [Installing AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) - [AWS - Step 2: Create an IAM user account](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-prereqs.html#getting-started-prereqs-iam) -- [AWS - Step 3: Create an access key ID and secret access key] (https://docs.aws.amazon.com/cli/latest/userguide/getting-started-prereqs.html#getting-started-prereqs-keys) +- [AWS - Step 3: Create an access key ID and secret access key](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-prereqs.html#getting-started-prereqs-keys) ## Copying down to local machine We off load wp-content/uploads to AWS using WPEngine's LargeFS From 798d9b301e719ddb2719918b1dafd5aaa3e59a2b Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Thu, 18 Nov 2021 09:20:54 -0500 Subject: [PATCH 23/44] Update S3.md --- cli/aws/S3.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 54500c8..db96e65 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -12,8 +12,8 @@ Sometimes we create a clone of a server for development and need to also copy th - Create a directory to store the files `mkdir s3-files` -- Navigate to that file +- Navigate to that directory - -`$ aws s3 cp s3://bucket/folder/file.txt ` +### AWS Directory to your current directory +`$ aws s3 cp s3://bucket/folder/ . --recursive` From 5f80093d461844dc1c155b85cbb6bb8db4c06047 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 13 Dec 2021 12:47:24 -0500 Subject: [PATCH 24/44] Create thumbnail-manipulation.txt --- wp/cli/thumbnail-manipulation.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 wp/cli/thumbnail-manipulation.txt diff --git a/wp/cli/thumbnail-manipulation.txt b/wp/cli/thumbnail-manipulation.txt new file mode 100644 index 0000000..aeb027f --- /dev/null +++ b/wp/cli/thumbnail-manipulation.txt @@ -0,0 +1,3 @@ +https://developer.wordpress.org/cli/commands/media/regenerate/ +# Re-generate only the thumbnails of "large" image size for all images. +$ wp media regenerate --image_size=large From 96426c860335ef5ae776cc2b93b861e257950a65 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 14 Dec 2021 13:53:33 -0500 Subject: [PATCH 25/44] Create count-content-by-year.sql --- wp/sql/count-content-by-year.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 wp/sql/count-content-by-year.sql diff --git a/wp/sql/count-content-by-year.sql b/wp/sql/count-content-by-year.sql new file mode 100644 index 0000000..edaad69 --- /dev/null +++ b/wp/sql/count-content-by-year.sql @@ -0,0 +1,8 @@ + # Source: https://wordpress.stackexchange.com/questions/178816/count-posts-for-each-year + + SELECT YEAR(post_date) AS `year`, count(ID) as `content` + FROM wp_posts + WHERE post_type IN ('attachment', 'post', 'page', 'my-custom-post-type') + AND post_status IN ('publish') + GROUP BY YEAR(post_date) + ORDER BY post_date DESC From dbc9807597dc377113f9590bfed5b98d9a2e90fa Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 14 Dec 2021 13:54:47 -0500 Subject: [PATCH 26/44] Update count-content-by-year.sql --- wp/sql/count-content-by-year.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp/sql/count-content-by-year.sql b/wp/sql/count-content-by-year.sql index edaad69..f9a1b14 100644 --- a/wp/sql/count-content-by-year.sql +++ b/wp/sql/count-content-by-year.sql @@ -1,6 +1,6 @@ # Source: https://wordpress.stackexchange.com/questions/178816/count-posts-for-each-year - SELECT YEAR(post_date) AS `year`, count(ID) as `content` + SELECT YEAR(post_date) AS `year`, count(ID) as `content count` FROM wp_posts WHERE post_type IN ('attachment', 'post', 'page', 'my-custom-post-type') AND post_status IN ('publish') From 5f4703d20343a59220e5497202ce06289ffcf1ca Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 26 Apr 2022 16:29:11 -0400 Subject: [PATCH 27/44] Created Page --- wp/multisite/recreate-deleted-subsite.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 wp/multisite/recreate-deleted-subsite.md diff --git a/wp/multisite/recreate-deleted-subsite.md b/wp/multisite/recreate-deleted-subsite.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/wp/multisite/recreate-deleted-subsite.md @@ -0,0 +1 @@ + From 33592809522ff65600938ed2b63f346e124f8aed Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Thu, 14 Jul 2022 10:16:05 -0400 Subject: [PATCH 28/44] Create List-posts-by-type-display-last-editor.sql --- ...List-posts-by-type-display-last-editor.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 wp/sql/List-posts-by-type-display-last-editor.sql diff --git a/wp/sql/List-posts-by-type-display-last-editor.sql b/wp/sql/List-posts-by-type-display-last-editor.sql new file mode 100644 index 0000000..d58f51a --- /dev/null +++ b/wp/sql/List-posts-by-type-display-last-editor.sql @@ -0,0 +1,20 @@ +SELECT + wp_posts.post_date AS 'Post Date', + wp_posts.post_modified AS 'Post Modified', + wp_posts.post_title AS ' Post Title', + wp_posts.post_type AS 'Post Type', + wp_posts.post_parent AS 'Post parent id', + wp_posts.guid AS 'GUID', + author.user_email AS 'Author Email', + author.display_name AS 'Author Display Name', + editor.user_email AS 'Editor Email', + editor.display_name AS 'Editor Display Name' +FROM wp_posts, wp_postmeta, wp_users author, wp_users editor +WHERE wp_posts.post_type IN ('page','post','attachment') + AND wp_posts.post_status in ( 'publish', 'draft','private' ) + AND wp_posts.post_author = author.id + AND ( wp_postmeta.post_id = wp_posts.id + AND wp_postmeta.meta_key LIKE '%_edit_last%' + AND wp_postmeta.meta_value = editor.id + ) + ORDER BY wp_posts.post_type ASC, wp_posts.post_modified DESC From 0eab2be6225d875e6558d5ccde704e70d870d42e Mon Sep 17 00:00:00 2001 From: gsdwebstaff Date: Mon, 19 Sep 2022 09:10:42 -0400 Subject: [PATCH 29/44] Create readme.md --- cli/readme.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/readme.md diff --git a/cli/readme.md b/cli/readme.md new file mode 100644 index 0000000..d062f63 --- /dev/null +++ b/cli/readme.md @@ -0,0 +1,4 @@ +# Misc CLI commands + +## when rm file-name-* times out +> for f in filename-*; do rm "$f"; done From 21f840a2bae346e07218450f66a26cd35630135e Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 09:17:25 -0400 Subject: [PATCH 30/44] Update readme.md --- cli/readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/readme.md b/cli/readme.md index d062f63..97dbf13 100644 --- a/cli/readme.md +++ b/cli/readme.md @@ -1,4 +1,7 @@ # Misc CLI commands +## Remove filed in directory +> rm file-name-* + ## when rm file-name-* times out > for f in filename-*; do rm "$f"; done From eb6d3534751b7b408b5ac112bb1cc99ae6492631 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 09:17:38 -0400 Subject: [PATCH 31/44] Update readme.md --- cli/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/readme.md b/cli/readme.md index 97dbf13..a7b9dd8 100644 --- a/cli/readme.md +++ b/cli/readme.md @@ -1,6 +1,6 @@ # Misc CLI commands -## Remove filed in directory +## Remove files in directory > rm file-name-* ## when rm file-name-* times out From 8d5f6c1b1d13d9e3af16a073688f87efcab9629a Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:02:17 -0400 Subject: [PATCH 32/44] Update S3.md --- cli/aws/S3.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index db96e65..6f9f73e 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -17,3 +17,6 @@ Sometimes we create a clone of a server for development and need to also copy th ### AWS Directory to your current directory `$ aws s3 cp s3://bucket/folder/ . --recursive` + +### AWS Genrate a list of bukcet contents +`$ aws s3 cp s3://bucket/ > blockcontents.txt` From 40d5f08edc4a6aab62bf8cf0e8211f2232a0a20a Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:02:36 -0400 Subject: [PATCH 33/44] Update S3.md --- cli/aws/S3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 6f9f73e..adac6cb 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -18,5 +18,5 @@ Sometimes we create a clone of a server for development and need to also copy th ### AWS Directory to your current directory `$ aws s3 cp s3://bucket/folder/ . --recursive` -### AWS Genrate a list of bukcet contents +### AWS Genrate a list of bucket contents `$ aws s3 cp s3://bucket/ > blockcontents.txt` From 7ee7df9ba5d30f55efb271e567ab9c88630736b4 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:04:00 -0400 Subject: [PATCH 34/44] Update readme.md --- cli/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/readme.md b/cli/readme.md index a7b9dd8..58d3aa7 100644 --- a/cli/readme.md +++ b/cli/readme.md @@ -5,3 +5,5 @@ ## when rm file-name-* times out > for f in filename-*; do rm "$f"; done +### out filenames are they are deleted +>for f in filename-*; do echo rm "$f"; rm "$f"; done From a1210e4e29d4574651169b94f3ea51edd67e1692 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:04:18 -0400 Subject: [PATCH 35/44] Update readme.md --- cli/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/readme.md b/cli/readme.md index 58d3aa7..6b6235b 100644 --- a/cli/readme.md +++ b/cli/readme.md @@ -5,5 +5,5 @@ ## when rm file-name-* times out > for f in filename-*; do rm "$f"; done -### out filenames are they are deleted +### out filenames as they are deleted >for f in filename-*; do echo rm "$f"; rm "$f"; done From 03cc3a8e73839bf0b7becdfacc98856b79be7319 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:04:43 -0400 Subject: [PATCH 36/44] Update readme.md --- cli/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/readme.md b/cli/readme.md index 6b6235b..8f9cf65 100644 --- a/cli/readme.md +++ b/cli/readme.md @@ -3,7 +3,7 @@ ## Remove files in directory > rm file-name-* -## when rm file-name-* times out +## When rm file-name-* times out > for f in filename-*; do rm "$f"; done -### out filenames as they are deleted +### Output filenames as they are deleted >for f in filename-*; do echo rm "$f"; rm "$f"; done From b415abacbb249ba48893f7208880ed1d085deef3 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:08:42 -0400 Subject: [PATCH 37/44] Update S3.md --- cli/aws/S3.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index adac6cb..696eba0 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -18,5 +18,9 @@ Sometimes we create a clone of a server for development and need to also copy th ### AWS Directory to your current directory `$ aws s3 cp s3://bucket/folder/ . --recursive` -### AWS Genrate a list of bucket contents -`$ aws s3 cp s3://bucket/ > blockcontents.txt` +## AWS Genrate a list of bucket contents +`$ aws s3 ls s3://bucket/ > blockcontents.txt` + + +## AWS Move File matching pattern to subdirectory +>aws s3 mv s3://bucket/ s3://bucket/directory/ --exclude "*" --include "filename-*" From 257bd5ae43a3d57e6c47327c535d8a3ef93a0db7 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:09:04 -0400 Subject: [PATCH 38/44] Update S3.md --- cli/aws/S3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 696eba0..45f13f8 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -23,4 +23,4 @@ Sometimes we create a clone of a server for development and need to also copy th ## AWS Move File matching pattern to subdirectory ->aws s3 mv s3://bucket/ s3://bucket/directory/ --exclude "*" --include "filename-*" +>aws s3 mv s3://bucket/ s3://bucket/directory/ --exclude "*" --include "filename-\*" From 482525d910cf2718dd08cc1dbac1b8d553f8bc71 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Mon, 19 Sep 2022 14:34:54 -0400 Subject: [PATCH 39/44] Update S3.md --- cli/aws/S3.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/aws/S3.md b/cli/aws/S3.md index 45f13f8..dcaabb4 100644 --- a/cli/aws/S3.md +++ b/cli/aws/S3.md @@ -16,11 +16,10 @@ Sometimes we create a clone of a server for development and need to also copy th ### AWS Directory to your current directory -`$ aws s3 cp s3://bucket/folder/ . --recursive` +>$ aws s3 cp s3://bucket/folder/ . --recursive ## AWS Genrate a list of bucket contents -`$ aws s3 ls s3://bucket/ > blockcontents.txt` - +>$ aws s3 ls s3://bucket/ > blockcontents.txt ## AWS Move File matching pattern to subdirectory ->aws s3 mv s3://bucket/ s3://bucket/directory/ --exclude "*" --include "filename-\*" +>$ aws s3 mv s3://bucket/ s3://bucket/directory/ --exclude "*" --include "filename-\*" From 0beb0b5cf1142211a79b8aa02cdfdac2b0ac8123 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 15 Nov 2022 13:30:00 -0500 Subject: [PATCH 40/44] Create users.md --- wp/cli/users.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wp/cli/users.md diff --git a/wp/cli/users.md b/wp/cli/users.md new file mode 100644 index 0000000..af86757 --- /dev/null +++ b/wp/cli/users.md @@ -0,0 +1,13 @@ +# WP-CLI Commands + +## WP User + +- [User Commands](https://developer.wordpress.org/cli/commands/user/) +- [wp user list](https://developer.wordpress.org/cli/commands/user/list/) +- [wp user update **user_id** --user_pass=**password_string**](https://developer.wordpress.org/cli/commands/user/update/) + +## WP Network Super Admins + +- [Super Admin Commands](https://developer.wordpress.org/cli/commands/super-admin/) +- [wp super-admin list](https://developer.wordpress.org/cli/commands/super-admin/list/) +- [wp super-admin **add user_id**||**user_name**](https://developer.wordpress.org/cli/commands/super-admin/add/) From ab38c11a590059afa0d028dd6652d330b0660a69 Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 15 Nov 2022 13:30:38 -0500 Subject: [PATCH 41/44] Rename update-network.txt to update-network.md --- wp/cli/{update-network.txt => update-network.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename wp/cli/{update-network.txt => update-network.md} (100%) diff --git a/wp/cli/update-network.txt b/wp/cli/update-network.md similarity index 100% rename from wp/cli/update-network.txt rename to wp/cli/update-network.md From 706027157ac103f1db2e2f3a78c9ee917770a9bc Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 15 Nov 2022 13:33:37 -0500 Subject: [PATCH 42/44] Update update-network.md --- wp/cli/update-network.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/wp/cli/update-network.md b/wp/cli/update-network.md index ee88195..8060a21 100644 --- a/wp/cli/update-network.md +++ b/wp/cli/update-network.md @@ -1,7 +1,8 @@ -# https://developer.wordpress.org/cli/commands/core/update/ -# force: update or downgrade to a specific release -wp core update --version=x.x --force +# WP Core +## force update or downgrade to a specific release +- [wp core update](https://developer.wordpress.org/cli/commands/core/update/) +> wp core update --version=x.x --force -# Update database after code update -# https://developer.wordpress.org/cli/commands/core/update-db/ -wp core update-db --network +## Update database after code update +- [wp core update-db](https://developer.wordpress.org/cli/commands/core/update-db/) +> wp core update-db --network From 6eeac0c02c716b1c56b810ffb49bdf741a97b0da Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Tue, 15 Nov 2022 13:33:58 -0500 Subject: [PATCH 43/44] Update update-network.md --- wp/cli/update-network.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp/cli/update-network.md b/wp/cli/update-network.md index 8060a21..a3244d2 100644 --- a/wp/cli/update-network.md +++ b/wp/cli/update-network.md @@ -3,6 +3,6 @@ - [wp core update](https://developer.wordpress.org/cli/commands/core/update/) > wp core update --version=x.x --force -## Update database after code update +## Update database after core update - [wp core update-db](https://developer.wordpress.org/cli/commands/core/update-db/) > wp core update-db --network From c6db9a1a76c25a25d9537ef6b1757d462a17a2af Mon Sep 17 00:00:00 2001 From: Sue Boland Date: Wed, 12 Jul 2023 12:08:25 -0400 Subject: [PATCH 44/44] Create post_content_author_editor.sql --- wp/sql/post_content_author_editor.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wp/sql/post_content_author_editor.sql diff --git a/wp/sql/post_content_author_editor.sql b/wp/sql/post_content_author_editor.sql new file mode 100644 index 0000000..bcdf21d --- /dev/null +++ b/wp/sql/post_content_author_editor.sql @@ -0,0 +1,22 @@ +SELECT + p.ID AS 'PostID', + p.post_type AS 'Post Type', + p.post_title AS ' Post Title', + p.post_status AS 'Post Status', + p.post_parent AS 'Post Parent ID', + p.guid AS 'GUID', + p.post_content AS 'Post Content', + p.post_date AS 'Post Date', + author.user_email AS 'Author Email', + author.display_name AS 'Author Display Name', + p.post_modified AS 'Post Modified', + editor.user_email AS 'Editor Email', + editor.display_name AS 'Editor Display Name' +FROM wp_posts p , wp_postmeta pm, wp_users author, wp_users editor +WHERE p.post_status in ( 'publish', 'draft','private' ) + AND p.post_author = author.id + AND ( pm.post_id = p.id + AND pm.meta_key LIKE '%_edit_last%' + AND pm.meta_value = editor.id + ) +ORDER BY p.post_status DESC, p.post_modified DESC