Skip to content

Instantly share code, notes, and snippets.

View nelsonwong1012's full-sized avatar

Nelson Wong nelsonwong1012

  • Turnitin
  • Austin, TX
  • 08:31 (UTC -06:00)
View GitHub Profile
@purwandi
purwandi / docker-cleanup.sh
Created April 22, 2016 02:07
Cleanup docker images
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
# find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf ( docker ps -aq | xargs docker inspect | jq -r '.[] | .Mounts | .[] | .Name | select(.)') | xargs -r rm -fr
@publickeating
publickeating / anchor_view.js
Created May 23, 2013 19:24
A proposed SC.AnchorView addition.
// ==========================================================================
// Project: SproutCore
// Copyright: ©2012 7x7 Software, Inc.
// License: Licensed under MIT license
// ==========================================================================
/**
@class