Skip to content

Instantly share code, notes, and snippets.

@r3dey3
r3dey3 / docker-cleanup.sh
Last active April 24, 2017 22:36
docker-cleanup
#!/bin/bash
# Usage:
# docker-cleanup.sh [-y]
#
# When run without -y will print
# all dead or exited containers
# all dangling images (i.e. images without tags that are not used by any container)
# all dangling volumes (all volumes not in use)
#
# When run with -y, it will DELETE
@r3dey3
r3dey3 / keybase.md
Last active January 25, 2017 19:26

Keybase proof

I hereby claim:

  • I am r3dey3 on github.
  • I am r3dey3 (https://keybase.io/r3dey3) on keybase.
  • I have a public key whose fingerprint is 0731 155E 59F1 BEDE E26E 8847 B3B8 5BA7 A210 9C6C

To claim this, I am signing this object:

@r3dey3
r3dey3 / set_window_hint.py
Last active October 24, 2016 19:38
Set window hint
##Some window managers, including i3wm, the one I use at the moment, highlight
#windows and desktop tabs when the window or one of it’s children sets the X
#urgency hint. irssi, for example, supports that, allowing for nice and silent
#notifications when somebody querys or mentions you. However, even after hours
#of googeling, I couldn’t find any way to make Thunderbird set this flag when
#new mail arrives. This is why I came up with my own solution. I wrote a python
#script that finds the Thunderbird window and set’s the urgency hint using the
#python-xlib (which you would have to install yourself!) bindings. I then
#installed the Thunderbird extension Mailbox Alert, that allows you to specify
#scripts to be executed when new mail arrives – even on a per-folder basis.