Skip to content

Instantly share code, notes, and snippets.

View mariusv's full-sized avatar

Marius Voila mariusv

View GitHub Profile
@mariusv
mariusv / DevOps
Last active August 29, 2015 14:03 — forked from anonymous/gist:161265
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.
source 'http://rubygems.org'
gem 'meinside-ruby', github: 'meinside/meinside-ruby' # my ruby scripts and libraries
gem 'thor'
gem 'geocoder'
@mariusv
mariusv / codesearch.md
Last active August 29, 2015 14:11 — forked from st0le/codesearch.md
@mariusv
mariusv / remove-docker-containers.md
Created November 6, 2017 13:48 — forked from ngpestelos/remove-docker-containers.md
How to remove unused Docker containers and images
  1. Delete all containers

     $ docker ps -q -a | xargs docker rm
    

-q prints only the container IDs -a prints all containers

Notice that it uses xargs to issue a remove container command for each container ID

  1. Delete all untagged images
@mariusv
mariusv / devops_best_practices.md
Created November 19, 2017 12:49 — forked from jpswade/devops_best_practices.md
Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud, open source and business](https://blogs.the451group.com/opensource/2010/03/03/devops-mixing-dev-ops-agile-cloud-open-source-and-busi