Skip to content

Instantly share code, notes, and snippets.

Avatar
🔴
https://youtube.binpipe.org

Prasanjit Singh prasanjit-

🔴
https://youtube.binpipe.org
View GitHub Profile
@prasanjit-
prasanjit- / ansible_variable_precedence.md
Created Jun 6, 2019 — forked from ekreutz/ansible_variable_precedence.md
Ansible variable precedence (order, hierarchy)
View ansible_variable_precedence.md
@prasanjit-
prasanjit- / docker-cleanup-resources.md
Created Jan 25, 2018 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

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
@prasanjit-
prasanjit- / migrate-redis.py
Created Nov 20, 2017 — forked from thomasst/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
View migrate-redis.py
"""
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
Requires Redis 2.8.0 or higher.
@prasanjit-
prasanjit- / pedantically_commented_playbook.yml
Created Jun 3, 2017 — forked from karlehr/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.