This file contains 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 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 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 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/bash | |
# For WSL environments only | |
npm install --global yarn | |
password="" | |
echo "Please provide your Git commit info" | |
read -p "Full name: " fullName | |
read -p "Email: " email |
This file contains 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 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) | |
⚠️ WARNING: This script was created to setup WSL before the new easy installation and was not tested under more recent versions of Windows 11. | |
Please follow my other guide that uses the new modern installations https://gist.github.com/andrefcdias/e1435ae4458024ece36a3b93e3cdd24f | |
--------------------------------------------------------- | |
What can I expect from this script? |
This file contains 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 |
This file contains 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 1) | |
⚠️ WARNING: This script was created to setup WSL before the new easy installation and was not tested under more recent versions of Windows 11. | |
Please follow my other guide that uses the new modern installations https://gist.github.com/andrefcdias/e1435ae4458024ece36a3b93e3cdd24f | |
--------------------------------------------------------- | |
Before running the script: |