Skip to content

Instantly share code, notes, and snippets.

View mancubus77's full-sized avatar
🇦🇺

Mancubus mancubus77

🇦🇺
  • Just a small software company
  • Ku-ring-gai
View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
name: reverse-words
labels:
name: reverse-words
spec:
replicas: 1
selector:
matchLabels:
@mancubus77
mancubus77 / gist:d89eef09d44cb1e27c7420febd796354
Created February 10, 2021 10:56
PAM Installation on OCP BC+KIE
apiVersion: app.kiegroup.org/v2
kind: KieApp
metadata:
name: pam-staging
namespace: pam
spec:
# environment: rhpam-trial
environment: rhpam-authoring
# useImageTags: true
commonConfig:
@mancubus77
mancubus77 / gist:9bce51452f1267769e71d70fe03a08da
Created February 10, 2021 10:54
PAM Immutable Deployment
apiVersion: app.kiegroup.org/v2
kind: KieApp
metadata:
name: insurance
spec:
environment: rhdm-production-immutable
upgrades:
enabled: true
commonConfig:
adminUser: userAdmin
package main
import (
"fmt"
"time"
"math/rand"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)
func makeTimestamp() int64 {
@mancubus77
mancubus77 / influx metrics generator and kafka producer
Created January 8, 2021 00:37
kafka influx message generator
package main
import (
"fmt"
"time"
"math/rand"
"gopkg.in/confluentinc/confluent-kafka-go.v1/kafka"
)
func makeTimestamp() int64 {
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 3 columns, instead of 5 in line 4.
name,role,qty
Pipeline,Pipeline application consumer,3
Pipeline,Pipeline application producer,3
Kafka,Kafka Brokers,3
tsdb, Time Series Database (ClickHouse,VictoriaMetrics,Influx), 3
monitoring, Grafana and Prometheus, 2
> dig my-super-app.apps.ocp4.rhpg.org +short
192.168.50.1
@mancubus77
mancubus77 / 01_IncreaseReplicationFactor.md
Created September 14, 2019 13:00 — forked from uarun/01_IncreaseReplicationFactor.md
Increase replication factor for __consumer_offsets Kafka topic

Increasing replication factor for a topic

  1. Create a custom reassignment plan (see attached file inc-replication-factor.json). In this case we are going from replication factor of 1 to 3.

  2. Run Kafka partition reassignment script:

    kafka-reassign-partitions --zookeeper $ZOOKEEPER_CONNECT \
        --reassignment-json-file /home/liquidnt/inc-replication-factor.json  \
        --execute
    
  3. Verify if the assignment was successful

@mancubus77
mancubus77 / TileLayer.Common.js
Created June 12, 2019 07:14 — forked from mourner/TileLayer.Common.js
Leaflet shortcuts for common tile providers
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {
@mancubus77
mancubus77 / .gitignore
Created April 29, 2019 22:49 — forked from hayajo/.gitignore
Keepalivedを使ったRedisのActive/Standby切り替え
.vagrant/