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:eccb900c0ba4d85ae18d17a1e5389fa8
Last active February 23, 2018 00:22
Remove ll node_modules folders
find . -name "node_modules" -type d -exec rm -rf '{}' +
@lauborges
lauborges / gist:014c6f09fa81e0662eb8449527420e05
Created June 6, 2018 18:40
Best Quick Look plugins for developers - Duojam
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package quicklookase qlvideo provisionql quicklookapk quicklook-pat
https://blog.duojam.com/best-quick-look-plugins-for-developers/
@lauborges
lauborges / .gitlab-ci.yml
Created January 23, 2019 18:54 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@lauborges
lauborges / rasprev.sh
Last active March 1, 2019 11:59
get raspberry pi revision
cat /proc/cpuinfo | grep 'Revision' | awk '{print $3}' | sed 's/^1000//'
@lauborges
lauborges / gist:5c3e033c947a654c9c5ffa64201a50b2
Created April 25, 2019 14:21
Check if lib has a function exported
readelf -s -W libsgfplib.so | grep SGFPM_GetImageQuality
Verifying my Blockstack ID is secured with the address 1AvNC7gfmLdqjZBXCVVvgUZWEuBQAKJnqq https://explorer.blockstack.org/address/1AvNC7gfmLdqjZBXCVVvgUZWEuBQAKJnqq

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:

@lauborges
lauborges / gist:fbf89042afacedbff0a9c5695afdc504
Created April 4, 2020 13:55
Remove untagged Docker images
docker rmi -f $(docker images | grep "<none>" | awk "{print \$3}")
@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: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/