Skip to content

Instantly share code, notes, and snippets.

View ulayera's full-sized avatar
🎯
Focusing

Ulises Layera ulayera

🎯
Focusing
  • Santiago, CL
  • 04:14 (UTC -03:00)
  • LinkedIn in/ulayera
View GitHub Profile
@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 (
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
@ulayera
ulayera / fixArchiveBit.sh
Last active October 25, 2022 20:20
Macos fix archive bit
#!/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