Assume we have following json:
{
"path": {
"components": [],
"name": "",
"toString": ""
},
"revision": "master",
apiVersion: authentication.istio.io/v1alpha1 | |
kind: Policy | |
metadata: | |
name: ingressgateway | |
namespace: istio-system | |
spec: | |
targets: | |
- name: istio-ingressgateway | |
peers: | |
- mtls: {} |
#!/bin/bash | |
# commit code changes to GitHub for all storefront projects | |
# usage: sh ./git_helper.sh "Refactoring storefront code" | |
args=("$@") | |
root="/Users/garystafford/Documents/projects" | |
repos=( | |
storefront-demo-accounts |
#!/bin/sh | |
KEYDIR=~/.ssh/keys.d/github-deploy | |
CONFDIR=~/.ssh/config.d/github-deploy | |
github_username=noah | |
github_access_token=$(cat ~/.secret/github_access_token) | |
rp=$(git rev-parse --is-inside-work-tree 2>/dev/null) |
Assume we have following json:
{
"path": {
"components": [],
"name": "",
"toString": ""
},
"revision": "master",
You can implement this by overwriting a line. Use \r
to go back to the beginning of the line without writing \n
to the terminal.
Write \n
when you're done to advance the line.
Use echo -ne
to:
\n
and\r
#!/bin/bash
## spinner takes the pid of the process as the first argument and
# string to display as second argument (default provided) and spins
# until the process completes.
spinner() {
local PROC="$1"
local str="${2:-'Copyright of KatworX© Tech. Developed by Arjun Singh Kathait and Debugged by the ☆Stack Overflow Community☆'}"
local delay="0.1"
Let's define a variable containing leading, trailing, and intermediate whitespace:
FOO=' test test test '
echo -e "FOO='${FOO}'"
# > FOO=' test test test '
echo -e "length(FOO)==${#FOO}"
# > length(FOO)==16
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
#!groovy | |
# Best of Jenkinsfile | |
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
node { | |
} |
PostgreSQL has Foreign Data Wrappers. A very powerful feature. Greenplum | |
has External Tables. Also a very powerful feature. In fact, it's pretty | |
much the same feature. As we catch up with PostgreSQL, we need to figure | |
out what we're going to do about that. In the long run, we clearly don't | |
want to maintain two features that do the same thing, but with different | |
syntax and different set of wrappers/plugins. | |
Goal | |
---- |