This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: void (function () { | |
| let result = ""; | |
| for (const node of document.querySelectorAll("h1, h2, h3, h4, h5, h6")) { | |
| const label = getNodeValue(node); | |
| if ( | |
| !node.closest('[aria-hidden=""], [aria-hidden="true"]') && | |
| (node.offsetHeight > 0 || node.offsetWidth) && | |
| label | |
| ) { | |
| const headingLevel = parseInt(node.tagName.match(/\d/)[0]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -RunAsAdministrator | |
| <# Coolest development environment setup script in the block (Part 2) | |
| --------------------------------------------------------- | |
| What can I expect from this script? | |
| Part 2 of the setup script, to be run after rebooting to activate WSL | |
| This will: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -RunAsAdministrator | |
| <# Coolest development environment setup script in the block | |
| --------------------------------------------------------- | |
| Before running the script: | |
| Make sure to run `Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process` | |
| before running the script in an admin Powershell session. | |
| See more at https:/go.microsoft.com/fwlink/?LinkID=135170. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| winget install "Spotify.Spotify" --accept-package-agreements --accept-source-agreements | |
| winget install "Discord.Discord" --accept-package-agreements --accept-source-agreements | |
| winget install --Id "Mozilla.Firefox" --accept-package-agreements --accept-source-agreements | |
| winget install "7Zip" --accept-package-agreements --accept-source-agreements | |
| winget install "Azure CLI" --accept-package-agreements --accept-source-agreements | |
| # Hoppscotch is unfortunately not available | |
| winget install "Postman" --accept-package-agreements --accept-source-agreements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Update and upgrade packages | |
| sudo apt-get update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y | |
| #region ohmyzsh | |
| # Install | |
| sudo apt-get install zsh -y |