Skip to content

Instantly share code, notes, and snippets.

View pcostesi's full-sized avatar

Pablo Alejandro Costesich pcostesi

View GitHub Profile
@pcostesi
pcostesi / build.tf
Last active August 22, 2021 05:42
Invalidating blog cache
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 August 19, 2021 17:14
Terraforming the Blog
resource "google_cloudbuild_trigger" "site_trigger" {
provider = google-beta
name = "site-trigger"
project = var.project
github {
push {
branch = "master"
}
owner = "pcostesi"
<html>
<head>
<style>
.clock {
border-radius: 5rem;
width: 5rem;
height: 5rem;
border: 5px solid grey;
position: relative;
@pcostesi
pcostesi / build.tf
Created January 6, 2021 02:26
Blog CI/CD Pipeline and Terraform files
resource "google_cloudbuild_trigger" "site_trigger" {
provider = google-beta
name = "${var.project}-trigger"
project = var.project
github {
push {
branch = "master"
}
owner = "pcostesi"
@pcostesi
pcostesi / uwsgi-and-nginx.md
Last active December 28, 2019 17:38
uWSGI and NGiNX
<!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 {
#!/bin/bash
set -euo pipefail
files=$(find . -name "docker-compose.*" -maxdepth 3)
for i in $files; do
pushd $(dirname "$i")
docker-compose down
popd
kubectl get pods --field-selector=status.phase!=Running --all-namespaces -o json | kubectl delete -f -
@pcostesi
pcostesi / devops_best_practices.md
Created November 21, 2017 16:14 — 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

@pcostesi
pcostesi / index.html
Created November 4, 2017 06:16
Nice Alert
<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>