Skip to content

Instantly share code, notes, and snippets.

View braxton-bell's full-sized avatar

Braxton Bell braxton-bell

  • Alabama
  • 03:13 (UTC -05:00)
View GitHub Profile

🪵 PowerShell Tree View (Clean Output, Excluding __pycache__ and .venv)

A quick way to display a clean, ASCII-style tree view of your project in PowerShell — no file attributes, just folder/file hierarchy — while excluding unwanted directories and patterns like __pycache__, .venv, and *.pyc.

📦 Install PSTree

Install-Module PSTree -Scope CurrentUser

How to Interact with Shadow DOM Elements: A Developer’s Guide to Automation

This article presents is a comprehensive guide on how to extract the path to Shadow DOM elements (the “shadow path”) and then use that path to interact with those elements—whether that’s setting values, firing events, or clicking buttons. We’ll walk through:

  1. Why Shadow DOM poses unique challenges for automation.
  2. How to generate a shadow path for nested elements.
  3. Why setting values and clicking buttons in Shadow DOM sometimes fails if done “the usual way.”
  4. A working solution that shows how to properly set values on custom elements, trigger events, and click buttons.

Use this article both to understand the concepts and to train a GPT bot or any developer on the intricacies of Shadow DOM automation.

@braxton-bell
braxton-bell / How to Configure SQL Server Express in Docker.md
Last active May 23, 2024 15:24
This guide provides steps to configure SQL Server Express in Docker
@braxton-bell
braxton-bell / how-to-use-multiple-git-accounts-on-same-device.md
Last active November 11, 2024 16:50
This guide provides step-by-step instructions on how to use multiple Git accounts on the same device using HTTPS with Personal Access Tokens. It includes detailed steps on creating a Personal Access Token on GitHub, configuring Git on Windows to manage credentials, and setting specific usernames and emails for different repositories to avoid con…

How-To: Use Multiple Git Accounts on the Same Device

Using HTTPS with Personal Access Token

Reference: GitHub article


1. Create a Personal Access Token on GitHub

  1. Navigate to GitHub Personal Access Tokens: