Skip to content

Instantly share code, notes, and snippets.

View lauborges's full-sized avatar
💭
I may be slow to respond.

Lau Borges lauborges

💭
I may be slow to respond.
View GitHub Profile
@lauborges
lauborges / gist:16458c1bfd0aa59598f36cff91c2e10f
Created May 6, 2020 18:27
Prevent OS X from changing Spaces after quitting an App
defaults write com.apple.dock workspaces-auto-swoosh -bool NO
then restarting the Dock using the following command:
killall Dock
Source: https://apple.stackexchange.com/questions/19878/prevent-os-x-from-changing-spaces-after-quitting-an-app
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f "dangling=true")
@lauborges
lauborges / gist:45da5d3e959fc5d842c40375c7d37f4a
Created April 26, 2021 01:16
Delete all node_modules folders
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
@lauborges
lauborges / gist:9199015efb7284bf09a8123f651948d9
Created August 14, 2021 15:37
See what Mac processes are accessing the internet
lsof -P -i -n | cut -f 1 -d " " | uniq
# dotnet core Error on linux
The configured user limit (128) on the number of inotify instances has been reached
# Fix
echo fs.inotify.max_user_instances=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p