Skip to content

Instantly share code, notes, and snippets.

@Ratler
Ratler / config.md
Created April 2, 2024 12:48 — forked from pascalpoitras/config.md
My WeeChat configuration

WeeChat Screenshot

Mouse


enable


#!/bin/bash
declare -a DEPENDENCIES
depends() {
local IMAGE DEPS
if [ $# -gt 1 ]; then
IMAGE=$1; shift
for dep in $@; do
@Ratler
Ratler / gist:7756deecc330db9ce07a
Last active August 27, 2021 17:30
A few quick bash one-liners to export/save import/load docker containers/images

NOTE: make sure you export containers and images in separate directories or it's very likely there will be issues when importing or loading your backups using the following snippets

Export all containers

$ while read image container_id; do 
    docker export $container_id > ${image////_}-${container_id}.tar 
 done < <(docker ps -a -f status=exited | tail -n +2 | awk '{ print $2 " " $1 }')
@Ratler
Ratler / keybase.md
Created April 18, 2015 21:20
keybase.md

Keybase proof

I hereby claim:

  • I am ratler on github.
  • I am ratler (https://keybase.io/ratler) on keybase.
  • I have a public key whose fingerprint is FAC0 8A38 5E8A CF20 A267 30BC 26CB F568 BD11 5DD6

To claim this, I am signing this object: