Skip to content

Instantly share code, notes, and snippets.

View JoeyBurzynski's full-sized avatar
Hacking away on @EdgeSEO tools.

Joey Burzynski JoeyBurzynski

Hacking away on @EdgeSEO tools.
View GitHub Profile
JoeyBurzynski / chatgpt-code-review-prompt.js
Last active February 13, 2024 06:48
ChatGPT Code Review Prompt: 10X Software Developer [Review, Improve and Optimize]
View chatgpt-code-review-prompt.js
================[ Step 1: Code Review ]================
Act as a 10X software developer.
Personal Characteristics:
You, as a 10X developer, exemplify what it means to be a true leader and innovator in the tech industry.
You're fluent in all modern stacks and are regarded as an expert in all modern programming languages, frameworks, and software engineering paradigms.
You seamlessly navigate between front-end and back-end technologies, handle databases, deployments, and even confidently manage networking and security elements.
JoeyBurzynski / programmatic-wordpress-term-insertion.php
Created January 4, 2024 07:05
Wordpress (PHP): How to Programmatically Insert Taxonomy Terms [Slug Definition, Error Handling, and Logging]
View programmatic-wordpress-term-insertion.php
// Programmatic Insertion of Taxonomy Terms with Slug Definition, Error Handling, and Logging
add_action('init', function () {
$taxonomyName = 'state';
// Check if the taxonomy exists
if (!taxonomy_exists($taxonomyName)) {
error_log("Taxonomy {$taxonomyName} does not exist.");
JoeyBurzynski /
Created September 21, 2023 09:43
Screaming Frog: Ad Pixels & Tracker Exclusion List

Screaming Frog Exclusion List: Ad Pixels & Trackers

Last Update: 2023.09.21\?sid=\d+&sifi_uid=\?dataProviderId=\d+&userId=\?shop=[\w.]+&product_uuid=\d+&force_check=true\?ti=\d+\d+/tp=SIMP/tpid=
JoeyBurzynski / globalErrorHandler.js
Created September 15, 2023 05:05
JavaScript SEO: Debugging Googlebot Crawling & Rendering Issues | Global JavaScript Error Handler [onerror]
View globalErrorHandler.js
// Here's an example that shows how to log JavaScript errors that are logged in the global onerror handler.
// Note that some types of JavaScript errors, such as a parse error, cannot be logged with this method.
window.addEventListener('error', function(e) {
var errorText = [
'URL: ' + e.filename,
'Line: ' + e.lineno + ', Column: ' + e.colno,
'Stack: ' + (e.error && e.error.stack || '(no stack trace)')
JoeyBurzynski /
Created August 25, 2023 16:50
Cloudflare Rules: Allow Good Bots by ASN

Rule Name: Allow Good Bots (AS15169/Google LLC, AS8075/Microsoft Corporation, AS714/Apple Inc., AS32934/Facebook, Inc., AS17012/PayPal, Inc., AS5091/Stripe, Inc.) Cloudflare WAF Rule: Allow Good Bots: ( and ip.geoip.asnum in {15169 8075 714 32934 17012 5091})

Ex: - Google

WAF Rules

  • Cloudflare offers 5 WAF rules for free accounts.
  • Create Firewall Rule and then paste them in the Edit Expression box.
View echo-http-headers-with-real-client-ip-from-cloudflare.js
// "cf-connecting-ip" should contain true client IP when Cloudflare managed
// transform rule ("Add visitor location headers") is enabled.
// See:
const HTTP_OK = 200;
* Filters out headers that are not allowed, sorts headers alphabetically,
* and converts headers to JSON.
JoeyBurzynski / cloudflare-worker-ip-to-real-client-ip-address.js
Last active February 15, 2024 10:39
Resolving Cloudflare Worker IP Issues [Replace Cloudflare Worker IP with Real Client IP in X-Forwarded-For HTTP Header]
View cloudflare-worker-ip-to-real-client-ip-address.js
// Cloudflare Worker Sandbox Examples
// Learning here, not intended for production use.
addEventListener('fetch', event => {
JoeyBurzynski / i-design-with-code.markdown
Created March 27, 2023 11:41
View i-design-with-code.markdown
JoeyBurzynski / renovate.json
Created February 15, 2023 09:58
Renovate Configuration
View renovate.json
"extends": [
JoeyBurzynski / sample-hreflang-annotations-in-html-markup.html
Created February 6, 2023 08:07
Sample Hreflang Annotations via HTML Markup
View sample-hreflang-annotations-in-html-markup.html
<!-- x-default: default when no language matches -->
<link rel="alternate" hreflang="x-default" href=""/>
<!-- English (en) -->
<link rel="alternate" hreflang="en" href=""/>
<!-- Arabic: macrolanguage (ar) -->
<link rel="alternate" hreflang="ar" href=""/>
<!-- Chinese (zh) -->