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
sudo apt update | |
sudo apt install curl build-essential docker-compose-v2 | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
chmod +x https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
Miniconda3-latest-Linux-x86_64.sh |
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
# Creare il container | |
sudo docker run -it -p 5002:5002 --entrypoint /bin/bash ghcr.io/coqui-ai/tts-cpu | |
# Uscire dal container | |
exit | |
# Vedere il nome del container e avviarlo se fermo | |
sudo docker ps -a | |
sudo docker start <container id> |
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
Multimap<String, String> myMultimap = ArrayListMultimap.create(); | |
// Adding some key/value | |
myMultimap.put("Fruits", "Bannana"); | |
myMultimap.put("Fruits", "Apple"); | |
myMultimap.put("Fruits", "Pear"); | |
myMultimap.put("Vegetables", "Carrot"); | |
// Getting values | |
Collection<string> fruits = myMultimap.get("Fruits"); |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
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
Login as admin user and list users: | |
ls -alh /Users/ | |
Move domain User folders to .old: | |
sudo mv /Users/johndoe /Users/johndoe.old | |
Unbind Machine: | |
Preferences -> Accounts-> Login Options-> Network account server -> Directory utility -> Active directory -> Unbind | |
Delete sqlindex files found in ls /var/db/dslocal/nodes/Default/ | |
sudo rm -f /var/db/dslocal/nodes/Default/sqlindex | |
sudo rm -f /var/db/dslocal/nodes/Default/sqlindex-shm | |
sudo rm -f /var/db/dslocal/nodes/Default/sqlindex-wal |