Skip to content

Instantly share code, notes, and snippets.

View rogersilvasouza's full-sized avatar
👁️
One eye on the fish and one on the cat

Roger Silva Souza rogersilvasouza

👁️
One eye on the fish and one on the cat
View GitHub Profile
@rogersilvasouza
rogersilvasouza / update.sh
Last active November 15, 2022 11:40
Update and Clean OSX
brew update && brew upgrade && brew cleanup && brew cu --all --cleanup --yes && sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder && sudo purge && sudo rm -rf ~/Library/Caches/* && sudo rm -rf ~/Library/Logs/* && clear
@rogersilvasouza
rogersilvasouza / docker.sh
Created June 16, 2022 09:47
Run quick machine to testing apps or job applications
# Machine with mailcatcher
docker run -d --name mailcatcher -p 1080:1080 -p 1025:1025 chatwork/mailcatcher
# Machine with mariadb
docker run --name mariadb_local -e MYSQL_ROOT_PASSWORD=secret -d -v mysql:/var/lib/mysql -p 33060:3306 mariadb:latest
@rogersilvasouza
rogersilvasouza / cleanTrashCanva.js
Created May 1, 2024 18:55
Apagar os itens na lixeira do Canva
let btnMoreActions = document.querySelector('button[aria-label="Mais ações"]');
btnMoreActions.click();
setTimeout(function() {
let spans = document.querySelectorAll('span');
spans.forEach(function (span) {
if (span.textContent === "Excluir da lixeira") {
span.click();
return;
}
});