Skip to content

Instantly share code, notes, and snippets.

View dreamuth's full-sized avatar

Uttran Ishtalingam dreamuth

View GitHub Profile
#!/usr/bin/env python3
"""
This script is meant to format all java files in your repo using google-java-format-1.7-all-deps.jar
"""
import argparse
import os
import sys
import subprocess
@dreamuth
dreamuth / play1-revert.yml
Created February 4, 2020 12:23
Deploy httpd
---
- name: Revert web server
hosts: ansible2
tasks:
- name: Stop httpd service
service:
name: httpd
state: stopped
become: yes
@dreamuth
dreamuth / docker-cleanup-resources.md
Created May 29, 2018 23:27 — 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