Skip to content

Instantly share code, notes, and snippets.

View MarcoMatarazzo's full-sized avatar

Marco Matarazzo MarcoMatarazzo

View GitHub Profile
### Keybase proof
I hereby claim:
* I am MarcoMatarazzo on github.
* I am elementalstorm (https://keybase.io/elementalstorm) on keybase.
* I have a public key whose fingerprint is 5B26 9B0C 47C0 3C8A F003 E0C3 FA92 7373 9736 2C43
To claim this, I am signing this object:
@MarcoMatarazzo
MarcoMatarazzo / docker-destroy-all.sh
Created October 4, 2018 10:04 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@MarcoMatarazzo
MarcoMatarazzo / playbook.yml
Last active August 22, 2018 15:31
Ansible playbook header to gather delegate facts when using --limit
# This will install python2 if missing (but checks first so no expensive repeated apt updates)
- hosts: all
gather_facts: False
tasks:
- name: install python 2
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
tags: ansible_python
# This will gather facts from all hosts when --limit option is used
@MarcoMatarazzo
MarcoMatarazzo / check_redis.py
Last active September 5, 2022 17:50 — forked from luanntvn/check_redis.py
Redis check for Nagios and Icinga, with perfdata
#!/usr/bin/python
#
# LICENSE: MIT
#
# Copyright (C) 2017 Marco Matarazzo
#
# Based on check_redis.py from Samuel Stauffer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
Sane tmux mouse scrolling (single window)
@MarcoMatarazzo
MarcoMatarazzo / !readme
Last active August 29, 2015 14:24 — forked from admackin/.bashrc
Sane SSH_AUTH_SOCK handling for Screen and Tmux, so that new SSH agents
created by subsequent logons are still usable.