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/bash | |
| DIR=$1 | |
| touch ${DIR}.metadata_never_index | |
| find ${DIR}* -path ${DIR} -prune -o -path ${DIR}emuMMC -prune -o -path ${DIR}Emutendo -prune -o -path ${DIR}Nintendo -prune -o -depth 0 -print | xargs -I{} sudo chflags -R arch "{}" | |
| rm -rf ${DIR}.metadata_never_index |
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
| R='\033[0;31m' | |
| G='\033[0;32m' | |
| NC='\033[0m' | |
| NEW_EMAIL=$(cat ~/.ssh/id_ed25519_secondary.pub | awk '{ print $3}') | |
| echo "${G}Current: $(cat ~/.ssh/id_ed25519.pub | awk '{ print $3}')" | |
| echo "${R}New: $NEW_EMAIL${NC}" | |
| printf 'Is this a good question (y/n)? ' | |
| read answer |
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
| @echo off | |
| set WSL_UTF8=1 | |
| goto main | |
| REM Function to check WSL status | |
| :check_status | |
| wsl -l --running | FINDSTR Ubuntu >nul 2>&1 | |
| if %errorlevel% equ 0 ( |