Skip to content

Instantly share code, notes, and snippets.

View igorbrites's full-sized avatar
👨‍👩‍👧
I'm one with the Force and the Force is with me.

Igor Brites igorbrites

👨‍👩‍👧
I'm one with the Force and the Force is with me.
View GitHub Profile
@igorbrites
igorbrites / new-credential.sh
Created December 23, 2021 20:55
Interactive shell script for creating Jenkins credentials using Kubernetes Credentials Provider and Kubernetes Secrets. Requires Bash >= 4 and kubectl.
#!/usr/bin/env bash
set -euo pipefail
declare -xA data
declare -xl name
declare -x description
kebab-case() {
echo "${1//_/-}" |
@igorbrites
igorbrites / Testing.md
Last active June 26, 2020 19:53
Propper terraform plan output to GitHub

Transforming this:

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create
  ~ update in-place

Terraform will perform the following actions:

  # aws_s3_bucket.b will be updated in-place
@igorbrites
igorbrites / .gitignore
Created February 27, 2018 16:49
.gitignore to use in Talend projects
*.screenshot
code/routines/system/
businessProcessSVG
images
sqlPatterns
temp
.Java
.JETEmitters
<?php
/**
* Create a web friendly URL slug from a string.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
* @copyright Copyright 2012 Sean Murphy. All rights reserved.