Skip to content

Instantly share code, notes, and snippets.

View ulayera's full-sized avatar
🎯
Focusing

ulayera

🎯
Focusing
View GitHub Profile
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