Skip to content

Instantly share code, notes, and snippets.

@mattberther
mattberther / docker-cleanup
Last active November 16, 2020 12:43
Thorough docker cleanup script
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
exited_containers() {
docker ps -a -q -f status=exited
}
untagged_containers() {

Keybase proof

I hereby claim:

  • I am mattberther on github.
  • I am mattberther (https://keybase.io/mattberther) on keybase.
  • I have a public key whose fingerprint is 5400 60AA 20E2 C0E3 2568 3E29 34FE B814 C5C8 2A9B

To claim this, I am signing this object:

@mattberther
mattberther / RssFeed.cs
Created September 21, 2012 17:28
MattBerther.Syndication
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2003 Matt Berther
//
// This material is provided "as is", with absolutely no warranty
// expressed or implied. Any use is at your own risk. Permission to
// use or copy this software for any purpose is hereby granted without
// fee, provided the above notices are retained on all copies.
// Permission to modify the code and to distribute modified code is
// granted, provided the above notices are retained, and a notice that
ruby-1.8.7-p330@rails3:
system:
uname: "Linux ubuntu 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux"
bash: "/bin/bash => GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.2.2 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]"
<% archives.group_by {|entry| Date.parse(entry.date).year}.map { |year, entries| [year, entries] }.sort { |x,y| y <=> x }.each do |year, entries| %>
<% if entries.length > 0 %>
<h2><%= year %> Entries</h2>
<% for entry in entries %>
<li>
<a href="<%= entry.path %>"><%= entry.title %></a>
</li>
<% end %>
<% end %>