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
# 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
@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
@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 '{}' +
docker rm $(docker ps -q -f 'status=exited')
docker rmi $(docker images -q -f "dangling=true")
@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
@lauborges
lauborges / gist:2fb902ba44bfea784d66cb8080782e7f
Created April 11, 2020 18:16
psql: could not connect to server: No such file or directory
psql: could not connect to server: No such file or directory
# run
sudo chown -R postgres:postgres /var/lib/postgresql/10/
sudo chmod -R u=rwX,go= /var/lib/postgresql/10/
@lauborges
lauborges / gist:c31406c7634b735918b93ab6226a45c0
Created April 4, 2020 13:56 — forked from Dufgui/gist:72debe81068bf3ecd7d8
Script to delete exited containers and untagged/unused images from docker
#!/bin/bash
set -o errexit
echo "Removing exited docker containers..."
docker ps -a -f status=exited -q | xargs -r docker rm -v
echo "Removing dangling images..."
docker images --no-trunc -q -f dangling=true | xargs -r docker rmi
@lauborges
lauborges / gist:fbf89042afacedbff0a9c5695afdc504
Created April 4, 2020 13:55
Remove untagged Docker images
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")

Keybase proof

I hereby claim:

  • I am lauborges on github.
  • I am lauborges (https://keybase.io/lauborges) on keybase.
  • I have a public key ASBX3L8FQJNZdpsOwdC378Ee4jw9gPnrit0PxZF6HyNUsQo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1AvNC7gfmLdqjZBXCVVvgUZWEuBQAKJnqq https://explorer.blockstack.org/address/1AvNC7gfmLdqjZBXCVVvgUZWEuBQAKJnqq