Skip to content

Instantly share code, notes, and snippets.

View fabiojose's full-sized avatar
🎯
Focusing

Fabio Jose fabiojose

🎯
Focusing
  • São Paulo, Brazil
  • 00:48 (UTC -03:00)
View GitHub Profile
@fabiojose
fabiojose / update.sh
Last active November 21, 2018 16:12
Update the java alternative at Debian
update-alternatives \
--install /usr/bin/java \
java \
/usr/lib/jvm/java-9-openjdk-amd64/bin/java \
100
update-alternatives --config java
BUILD_VERSION=$(oc start-build $RD_OPTION_BUILD_NAME -n pvd-pre | grep -o '".*"' | tr -d \")
while :; do
STATUS=$(oc describe bc $RD_OPTION_BUILD_NAME | grep "$BUILD_VERSION" | awk '{print $2}')
echo $STATUS
case $STATUS in
running)
sleep 5
continue
function process0(){
echo "process0"
sleep 10s
}
function process1(){
echo "process1"
sleep 5s
}
### to fix the issue about oc login token shared between the job executions ###
HOME=$(pwd)/.${RD_JOB_EXECID}
cd $HOME
### fix end ###
### functions ###
# produz logging no console
## $1 mensagem
function info() {
mvn archetype:generate \
-DgroupId=br.com.itau.java.reactive \
-DartifactId=start \
-DarchetypeArtifactId=maven-archetype-quickstart \
-DinteractiveMode=false
@fabiojose
fabiojose / new.sh
Last active November 13, 2018 13:24
mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-archetype \
-DarchetypeVersion=1.3
Operating system Docker implementation
Linux Default docker daemon for OS
macOS Docker for macOS
macOS Docker Toolbox
Windows Docker for Windows
Windows Docker Toolbox
@fabiojose
fabiojose / devops-kpi-nifi-template.xml
Created August 1, 2018 16:50
DevOps KPI in Practice - Chapter 2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>8ce97bbb-0162-1000-233e-5c8cc4c3a93f</groupId>
<name>DevOps KPI - Change Volume and Lead Time</name>
<snippet>
<connections>
<id>8a0d9e3d-1744-3d97-0000-000000000000</id>
<parentGroupId>33980602-0d29-3ae1-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
- description: Infrastructure as Code Rollout Deployment
executionEnabled: true
group: common/openshift
id: 67b0ca39-ea27-4668-9f8a-bb447244508a
loglevel: INFO
name: openshift-deploy-iac
nodeFilterEditable: false
options:
- description: Openshift Project Namespace
name: openshift-project
@fabiojose
fabiojose / gitlog.json
Created April 1, 2018 14:55
git log in json
[
{
"hash":"10ef79ff1720aa5179373871ee58b08674e5c420",
"author":"Fábio J. Moraes",
"email":"fabiojose@gmail.com",
"timestamp":"1510082724",
"changes":"4",
"insertions":"38",
"deletions":"15"
},