This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ if .Values.properties.clusterSecure }} | |
| ${NIFI_TOOLKIT_HOME}/bin/tls-toolkit.sh standalone -n "${FQDN}" \ | |
| --clientCertDn "CN=${FQDN}, OU=NIFI" \ | |
| --certificateAuthorityHostname ${FQDN} \ | |
| --subjectAlternativeNames 'localhost{{- if .Values.properties.webProxyHost -}},{{ .Values.properties.webProxyHost }}{{- end -}}' \ | |
| --outputDirectory "${NIFI_HOME}/conf/" \ | |
| --isOverwrite | |
| KEYSTORE_PASSWORD=`grep keystorePasswd ${NIFI_HOME}/conf/${FQDN}/nifi.properties | awk 'BEGIN { FS = "=" } ; { print $2 }'` | |
| KEY_PASSWORD=`grep keyPasswd ${NIFI_HOME}/conf/${FQDN}/nifi.properties | awk 'BEGIN { FS = "=" } ; { print $2 }'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default_box = 'ubuntu/bionic64' | |
| Vagrant.configure(2) do |config| | |
| config.vm.define 'master' do |master| | |
| master.vm.box = default_box | |
| master.vm.hostname = "master" | |
| master.vm.synced_folder ".", "/vagrant", type:"virtualbox" | |
| master.vm.network 'private_network', ip: "192.168.0.200", virtualbox__intnet: true | |
| master.vm.network "forwarded_port", guest: 22, host: 2222, id: "ssh", disabled: true | |
| master.vm.network "forwarded_port", guest: 22, host: 2000 # SSH TO MASTER/NODE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backuprepo() { | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
| declare -i LOOP=0 | |
| declare -i LOOPMAX=10 | |
| while [ ! -d "${DIR}/.git/" ] && [ "${LOOP}" -ne "${LOOPMAX}" ]; do | |
| DIR="$( echo $DIR | sed 's/\(.*\)\/.*/\1/' )" | |
| LOOP=$((LOOP+1)) | |
| done | |
| if [ "${LOOP}" -ne "${LOOPMAX}" ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tk() { | |
| additionalParams="${@:2}" | |
| if [ "$1" = "dc" ] | |
| then | |
| echo "exec: kitchen destroy ${additionalParams} && kitchen converge ${additionalParams}" | |
| kitchen destroy ${additionalParams} && kitchen converge ${additionalParams} | |
| elif [ "$1" = "l" ] | |
| then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sshinto() { | |
| declare -a vmArray=( $(sed -nE 's/^Host ([^github])/\1/p' ~/.ssh/config) ) | |
| vmArray_ArrayLen=${#vmArray[@]} | |
| re='^[0-9]+$' | |
| if [[ $1 = "" ]] | |
| then | |
| if [[ vmArray_ArrayLen -ne 0 ]] | |
| then | |
| tput setaf 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INFO global: Vagrant version: 2.2.6 | |
| INFO global: Ruby version: 2.4.9 | |
| INFO global: RubyGems version: 2.6.14.4 | |
| INFO global: VAGRANT_LOG="info" | |
| INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/bin/vagrant" | |
| INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded" | |
| INFO global: VAGRANT_INSTALLER_VERSION="2" | |
| INFO global: VAGRANT_INSTALLER_ENV="1" | |
| WARN global: resolv replacement has not been enabled! | |
| INFO manager: Registered plugin: NFS synced folders |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "success": true, | |
| "messages": [ | |
| { | |
| "clientid": "XXX", | |
| "feedid": 1, | |
| "platform": "tw", | |
| "platformid": "757623239312936960", | |
| "posttime": "2016-07-25T17:07:10.000Z", | |
| "original": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // EXAMPLE 1 | |
| { | |
| "_id": ObjectId("XXX"), | |
| "clientid": "XXX", | |
| "feedid": "1", | |
| "platform": "tw", | |
| "platformid": "752521840640159744", | |
| "posttime": new Date("2016-07-11T10:16:02-0500"), | |
| "meta": { | |
| "tags": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| platform: {type: String, required: true}, | |
| platformid: {type: String, required: true}, | |
| posttime: {type: Date, required: true}, | |
| feedid: {type: String, required: true}, | |
| clientid: {type: String, required: true}, | |
| meta: { | |
| tags: [{type: String}], | |
| rating: {type: Number, min: 1, max: 10, default: 0, required: true}, | |
| approval: { | |
| isapproved: {type: Boolean, required: true, default: false}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h3 class="title js-activate-block"> | |
| <a href="/farm-loans/operating-loans">Terms + Flexibility</a></h3> | |
| <p class="info"> | |
| Find the right financing based on factors that matter to you and your operation.</p> |
NewerOlder