Skip to content

Instantly share code, notes, and snippets.

View steenzout's full-sized avatar

Pedro steenzout

View GitHub Profile
@steenzout
steenzout / docker-destroy.sh
Last active January 4, 2017 21:45
Bash script to wipe out all docker containers, volumes and network.
#!/bin/bash
docker stop $(docker ps -a -q)
docker rm -f $(docker ps -a -q)
docker volume prune -f
docker network prune -f
@steenzout
steenzout / ansible_tests.yml
Last active September 19, 2016 20:17
Compilation of ansible tasks useful to setup testing.
- name: is X package installed?
command: dpkg-query -W -f='${Status}\n' X
register: test
changed_when: no
failed_when: test.stdout.find('install ok installed') == -1
- name: file is present?
command: test -e path_to_file
changed_when: no
@steenzout
steenzout / mac_mono_csharp_mysql.md
Last active January 3, 2016 04:59
How to perform Mono installation and to test C# connectivity to MySQL on a Mac
Copyright 2013-2014 steenzout

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
@steenzout
steenzout / ansible_update_roles.md
Last active August 29, 2015 14:10
Poor man's Ansible role update
@steenzout
steenzout / macport_python_github.txt
Created June 25, 2014 11:03
Portfile template for python package hosted at github.com.
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup python 1.0
PortGroup select 1.0
PortGroup github 1.0
github.setup <username> <repository_name> <repository_tag>
@steenzout
steenzout / macport_python_bitbucket.txt
Created June 25, 2014 11:02
Portfile template for python package hosted at bitbucket.org.
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
PortGroup python 1.0
PortGroup select 1.0
PortGroup bitbucket 1.0
bitbucket.setup <username> <repository_name> <repository_tag>