Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: platform.confluent.io/v1beta1
kind: ControlCenter
metadata:
name: controlcenter
namespace: confluent
spec:
replicas: 1
image:
application: confluentinc/cp-enterprise-control-center:7.2.0
apiVersion: platform.confluent.io/v1beta1
kind: Connector
metadata:
name: replicator
namespace: confluent
spec:
class: "io.confluent.connect.replicator.ReplicatorSourceConnector"
taskMax: 4
connectClusterRef:
name: connect
# Intentionally not automated
# .tmux.conf
unbind C-b
set-option -g prefix C-z
bind-key C-z send-prefix
# .vimrc
set expandtab
set shiftwidth=2
set tabstop=2
@justinrlee
justinrlee / HAProxy SNI fallback workaround example
Created October 6, 2017 14:08 — forked from PiBa-NL/HAProxy SNI fallback workaround example
HAProxy SNI fallback/workaround example this example shows some of the possibilities that are possible to give 'best effort' support for browsers that do not support SNI.. (or at least my quick testcase/workout turned into this.., i dont use it myself, and i don't claim its actually usable for anyone.)
global
maxconn 300
log 192.168.0.40 local0 debug
stats socket /tmp/haproxy.socket level admin
gid 80
nbproc 1
chroot /var/empty
daemon
#
# Example configuration for HAProxy 1.5-dev19 for using SNI
# setup dcos security cli
dcos package install dcos-enterprise-cli --cli
# Create keypair
dcos security org service-accounts keypair priv.pem pub.pem
# Create service account
dcos security org service-accounts create -p pub.pem -d 'Marathon Service Account' marathon
dcos security org service-accounts show marathon
## Add 'dcos:superuser full' to permissions through UI
# Create secret:
@justinrlee
justinrlee / SSLPoke.java
Created August 16, 2017 15:34 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {