Skip to content

Instantly share code, notes, and snippets.

@klali
klali / ecconv.c
Last active February 26, 2018 18:02
add a namned group of secp521r1 to an ec key
#include <stdio.h>
#include <openssl/ec.h>
#include <openssl/pem.h>
int main(int argc, char **argv) {
if(argc != 2) {
printf("give key as arg\n");
exit(1);
}
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm