Skip to content

Instantly share code, notes, and snippets.

View actionless's full-sized avatar
🎹
https://www.youtube.com/c/ActionlessLoveless13

Actionless Loveless actionless

🎹
https://www.youtube.com/c/ActionlessLoveless13
View GitHub Profile
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
untagged_containers() {
# Print containers using untagged images: $1 is used with awk's print: 0=line, 1=column 1.
# NOTE: "[0-9a-f]{12}" does not work with GNU Awk 3.1.7 (RHEL6).
# Ref: https://github.com/blueyed/dotfiles/commit/a14f0b4b#commitcomment-6736470
docker ps -a | tail -n +2 | awk '$2 ~ "^[0-9a-f]+$" {print $'$1'}'
@actionless
actionless / local.lua
Last active August 29, 2015 14:03
config/local.lua example for actionless/awesome_config
local awful = require("awful")
local local_config = {}
function local_config.init(awesome_context)
awesome_context.config = {
wlan_if = 'wlp4s0',
eth_if = 'enp0s25',
net_preset = 'bond',