Skip to content

Instantly share code, notes, and snippets.

@suoko
suoko / OpenDevinOllama.txt
Last active April 14, 2024 20:45
Open devin
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
@suoko
suoko / coqui.txt
Created March 31, 2024 21:28
Clonare la voce con coqui
# 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>
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");
@suoko
suoko / uninstall_office_2016.sh
Created March 28, 2019 14:59 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@suoko
suoko / gist:31eca1dd0552dd6cfb23c70e9468af1e
Last active June 5, 2017 20:08
OS X active directory domain migration
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