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 | |
sudo chown -R $(whoami) /usr/local | |
# Additionally, you could use (remove #) | |
# chgrp -R admin /usr/local | |
# chmod -R g+w /usr/local | |
# chgrp -R admin /Library/Caches/Homebrew | |
# chmod -R g+w /Library/Caches/Homebrew | |
# dseditgroup -o edit -a $USER -t user admin |
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
wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | |
chmod +x speedtest-cli |
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 | |
sudo chmod -R 777 /VirtualBox\ VMs/ |
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 | |
# Reset | |
Color_Off='\033[0m' # Text Reset | |
# Regular Colors | |
Black='\033[0;30m' # Black | |
Red='\033[0;31m' # Red | |
Green='\033[0;32m' # Green | |
Yellow='\033[0;33m' # Yellow | |
Blue='\033[0;34m' # Blue |
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
preferred_shell= | |
if [ -x /opt/bin/fish ]; then | |
preferred_shell=/opt/bin/fish | |
fi | |
if [ -n "$preferred_shell" ]; then | |
case $- in | |
*i*) SHELL=$preferred_shell; export SHELL; exec "$preferred_shell";; | |
esac | |
fi |
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 | |
#encrypt files | |
if [ $1 == "-e" ]; | |
then | |
if [ -f "$2" ]; | |
then | |
openssl aes-256-cbc -a -e -salt -in "$2" -out "$2.aes" | |
else | |
echo "This file does not exist!" | |
fi |
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 | |
#stop Darkstat service | |
sudo synoservicecfg --stop pkgctl-darkstat | |
#removing logfile | |
sudo rm /var/packages/darkstat/target/var/darkstat.data | |
#restart Darkstat service | |
sudo synoservicecfg --start pkgctl-darkstat |
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 | |
# DOT files clean script and auto eject | |
printf "Insert your USB/SD volume name (es: SD): " | |
read -r volumename | |
if df | grep -iw "$volumename" > /dev/null | |
then | |
echo "Cleaning dot_files into \"/Volumes/$volumename\" .." | |
sudo dot_clean /Volumes/$volumename | |
echo "Ejecting volume .." | |
sudo diskutil eject /Volumes/$volumename |
NewerOlder