Skip to content

Instantly share code, notes, and snippets.

View gabrie30's full-sized avatar
🤖
CrashLoopBackOff

gabrie30

🤖
CrashLoopBackOff
View GitHub Profile
@gabrie30
gabrie30 / Jenkinsfile.groovy
Created August 11, 2020 21:15 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@gabrie30
gabrie30 / bash_skeleton.sh
Created November 26, 2019 05:21 — forked from sempervent/bash_skeleton.sh
A skeleton for bash Scripts
#!/usr/bin/env bash
# usage {{{1 ------------------------------------------------------------------
#/ Usage:
#/ -h|-?|--help)
#/ show this help and exit
#/
# 1}}} ------------------------------------------------------------------------
# environment {{{1 ------------------------------------------------------------
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# 1}}} ------------------------------------------------------------------------
@gabrie30
gabrie30 / bash_skeleton.sh
Created November 26, 2019 05:21 — forked from sempervent/bash_skeleton.sh
A skeleton for bash Scripts
#!/usr/bin/env bash
# usage {{{1 ------------------------------------------------------------------
#/ Usage:
#/ -h|-?|--help)
#/ show this help and exit
#/
# 1}}} ------------------------------------------------------------------------
# environment {{{1 ------------------------------------------------------------
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# 1}}} ------------------------------------------------------------------------
@gabrie30
gabrie30 / Environment_for_Developing_Kubernetes.md
Created June 15, 2019 18:35 — forked from whitlockjc/Environment_for_Developing_Kubernetes.md
Resources on creating a development environment for contributing to Kubernetes.

Environment for Developing Kubernetes

First and foremost, this is not a document on how to create an environment for developing applications targeting Kubernetes as its runtime. This document is to outline the steps required to create an environment for contributing to Kubernetes based on recently setting up both Linux and Mac development environments. This document is written as if you will be creating your development enivonment on OS X but just know that things are basically the same when on other OSes. Of course, the installation and configuration of these tools will changed based on which OS you're on, and possibly other things, but the gist is that in this guide when you see that tool X is required, you follow whatever steps to install tool X on your OS.

### Keybase proof
I hereby claim:
* I am gabrie30 on github.
* I am gabrie30 (https://keybase.io/gabrie30) on keybase.
* I have a public key ASDqnk3yc3UT_tAAHQwh863m5dhzP3jTuZ2OMB-DLexUAAo
To claim this, I am signing this object: