Skip to content

Instantly share code, notes, and snippets.

View cheesepaulo's full-sized avatar
🏠
Working from home

Paulo Cesar cheesepaulo

🏠
Working from home
View GitHub Profile
@cheesepaulo
cheesepaulo / README.markdown
Created October 17, 2017 23:40 — forked from FranklinYu/README.markdown
links for old versions of Docker for Mac (inspired by docker/for-mac#1120)

links for old versions of Docker for Mac

Note:

  • Old versions are not supported by the Docker team!
  • This Gist may be removed if Docker officially provides such listing.

Edge channel:

@cheesepaulo
cheesepaulo / docker-cleanup-resources.md
Created August 11, 2017 16:21 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@cheesepaulo
cheesepaulo / bootbox-rails.js
Created April 15, 2017 20:50 — forked from jacksonpires/bootbox-rails.js
Sobrescreve o data-confirm do Rails pelo bootbox.js
$.rails.allowAction = function(element) {
var message = element.attr('data-confirm');
if (!message) { return true; }
var opts = {
title: "Confirmação",
message: message,
buttons: {
confirm: {
label: 'Sim',