Skip to content

Instantly share code, notes, and snippets.

View globalmac's full-sized avatar
💎
Researche

Igor globalmac

💎
Researche
  • Moscow, Russia
View GitHub Profile
@globalmac
globalmac / docker-cleanup-resources.md
Created July 24, 2019 00:28 — forked from bastman/docker-cleanup-resources.md
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

@globalmac
globalmac / Yandex market Postgres Parsing
Last active July 31, 2018 11:01
Пример парсинга с помощью lxml и psycopg2 для Postgres
#!/usr/local/bin/python
# coding: utf8
import urllib as url
from lxml import etree
import psycopg2
import datetime
print ("Обработка файла = %s" % datetime.datetime.now())