Skip to content

Instantly share code, notes, and snippets.

View jbianquetti-nami's full-sized avatar

Jorge Bianquetti jbianquetti-nami

View GitHub Profile
@jbianquetti-nami
jbianquetti-nami / script-template.sh
Created February 23, 2021 11:34 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@jbianquetti-nami
jbianquetti-nami / terraform-iteration.md
Created March 5, 2020 10:58 — forked from max-rocket-internet/terraform-iteration.md
Some examples for iteration in Terraform 0.12

Iteration in Terraform 0.12

All of these examples allow for an item to be removed without recreation of any other resources.

Basic iteration 1

variable "data" {
  type = map
  default = {
@jbianquetti-nami
jbianquetti-nami / jenkins-2.176.2.yaml
Created August 14, 2019 11:33
vRA 8 blueprint for jenkins-2.176.2
inputs:
count:
type: integer
default: 1
maximum: 7
minimum: 1
title: Number of slaves
description: Number of Jenkins slaves to deploy
ssh_key:
type: string
@jbianquetti-nami
jbianquetti-nami / jenkins-2.164.2.yaml
Created August 14, 2019 11:32
vRA8 blueprint for jenkins-2.164.2
inputs:
count:
type: integer
default: 1
maximum: 7
minimum: 1
title: Number of slaves
description: Number of Jenkins slaves to deploy
ssh_key:
type: string
@jbianquetti-nami
jbianquetti-nami / Kubeprod's migration.jsonnet
Created January 2, 2019 16:49
Kubeprod's migration.jsonnet
// target-add-rsync.jsonnet: add rsync sidecar container, exposing
// <volume_name> below via rsync, by overloading saved "target.json"
// NOTE: We're not assuming a particular instrumentation tool (e.g ksonnet, kubecfg via jsonnet)
// but rather doing an override from original sts / deploy output json
// 1) Save existing deployment/sts to target.json:
// kubectl get deployments -n NAMESPACE NAME -o target.json
local target = import "target.json";

Keybase proof

I hereby claim:

  • I am jbianquetti-nami on github.
  • I am jbianquetti (https://keybase.io/jbianquetti) on keybase.
  • I have a public key ASDbnk_9BumzExl428qH-l5Xad9oa9iiJ-veZfUnVFKpEQo

To claim this, I am signing this object:

@jbianquetti-nami
jbianquetti-nami / Jenkinsfile
Created February 12, 2018 12:35 — forked from JJediny/Jenkinsfile
An example Declarative Pipeline Jenkinsfile for Feb 15 2017 demo
// A Declarative Pipeline is defined within a 'pipeline' block.
pipeline {
// agent defines where the pipeline will run.
agent {
// This also could have been 'agent any' - that has the same meaning.
label ""
// Other possible built-in agent types are 'agent none', for not running the
// top-level on any agent (which results in you needing to specify agents on
// each stage and do explicit checkouts of scm in those stages), 'docker',