Skip to content

Instantly share code, notes, and snippets.

View witokondoria's full-sized avatar

Javier Delgado witokondoria

  • Madrid
View GitHub Profile
@witokondoria
witokondoria / jenkinslist.coffee
Last active September 8, 2016 14:51
Awesome jenkins job dashing widget
class Dashing.Jenkinslist extends Dashing.Widget
ready: ->
if @get('unordered')
$(@node).find('ol').remove()
else
$(@node).find('ul').remove()
@witokondoria
witokondoria / remove-orphan-images.sh
Created May 23, 2016 09:04 — forked from bjaglin/remove-orphan-images.sh
Remove orphan layers left by the "file" storage backend of the docker registry, heavily inspired by https://gist.github.com/shepmaster/53939af82a51e3aa0cd6
#!/bin/bash
set -eu
shopt -s nullglob
readonly base_dir=/var/lib/docker/registry
readonly output_dir=$(mktemp -d -t trace-images-XXXX)
readonly jq=/usr/bin/jq
readonly repository_dir=$base_dir/repositories