Skip to content

Instantly share code, notes, and snippets.

Avatar

Pablo Alejandro Costesich pcostesi

View GitHub Profile
@pcostesi
pcostesi / build.tf
Last active Aug 22, 2021
Invalidating blog cache
View build.tf
resource "google_cloudbuild_trigger" "site_trigger" {
provider = google-beta
name = "site-trigger"
project = var.project
github {
push {
branch = "master"
}
owner = "pcostesi"
@pcostesi
pcostesi / build.tf
Last active Aug 19, 2021
Terraforming the Blog
View build.tf
resource "google_cloudbuild_trigger" "site_trigger" {
provider = google-beta
name = "site-trigger"
project = var.project
github {
push {
branch = "master"
}
owner = "pcostesi"
View index.html
<html>
<head>
<style>
.clock {
border-radius: 5rem;
width: 5rem;
height: 5rem;
border: 5px solid grey;
position: relative;
@pcostesi
pcostesi / build.tf
Created Jan 6, 2021
Blog CI/CD Pipeline and Terraform files
View build.tf
resource "google_cloudbuild_trigger" "site_trigger" {
provider = google-beta
name = "${var.project}-trigger"
project = var.project
github {
push {
branch = "master"
}
owner = "pcostesi"
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>d3js</title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<style id="jsbin-css">
.chart div {
View down.sh
#!/bin/bash
set -euo pipefail
files=$(find . -name "docker-compose.*" -maxdepth 3)
for i in $files; do
pushd $(dirname "$i")
docker-compose down
popd
View gist:592cac7e0717f4ffd5e24e1282eef844
kubectl get pods --field-selector=status.phase!=Running --all-namespaces -o json | kubectl delete -f -
View devops_best_practices.md

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

View index.html
<div class="controls">
<button id="toggle">Toggle</button>
<button id="normal">Normal</button>
<button id="danger">Danger</button>
</div>
<div class="alert-overlay alert-danger">
<div class="alert-container">
<h1>Danger</h1>
<div class="alert-body">
<p>This is a sample text</p>