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
# OpenVPN Installation | |
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm | |
rpm -i rpmforge-release-0.5.2-2.el6.rf.i686.rpm | |
yum -y install openvpn | |
cp /usr/share/doc/openvpn-2.2.0/sample-config-files/server.conf /etc/openvpn/ | |
sed 's/;dev tap/dev tap0/' /etc/openvpn/server.conf |
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
#Mercurial | |
yum install -y python-devel gcc python-docutils make vim-enhanced | |
wget http://mercurial.selenic.com/release/mercurial-1.9.2.tar.gz | |
tar xvfz mercurial-1.9.2.tar.gz | |
cd mercurial-1.9.2 | |
make install | |
echo "[ui] | |
; editor used to enter commit logs, etc. Most text editors will work. | |
editor = vim |
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
public class App | |
{ | |
public static void main( String[] args ) | |
{ | |
HashMap<String, String> results = new HashMap<String, String>(); | |
String[] names = new String[40]; | |
for (int i = 0; i<40;i++) { | |
names[i] = "Name" + i; | |
} |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" This is the Vundle package, which can be found on GitHub. | |
" " For GitHub repos, you specify plugins using the | |
" " 'user/repository' format | |
Plugin 'gmarik/vundle' |
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
➜ curl 127.0.0.1:8083/connectors | |
[]% | |
➜ curl --request POST \ | |
--url http://127.0.0.1:8083/connectors \ | |
--header 'content-type: application/json' \ | |
--data '{ | |
"name": "", | |
"config": | |
{ |
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
# 1. Generate server keypair (broker1) | |
keytool -genkeypair -alias $(hostname -f)-server -keyalg RSA -keystore \ | |
$(hostname -f)-server.jks -keysize 2048 -dname \ | |
"CN=$(hostname -f),OU=Dept,O=Dilbert.com,L=Ffm,ST=hessen,C=DE" \ | |
-storepass dilbert -keypass dilbert | |
# 2. Create certificate signing request for broker certificate | |
keytool -certreq -alias $(hostname -f)-server \ | |
-keystore $(hostname -f)-server.jks \ | |
-file $(hostname -f)-server.csr -storepass dilbert \ |
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
public class ComplexKafkaPrincipal extends KafkaPrincipal{ | |
protected List<KafkaPrincipal> additionalPrincipals = new ArrayList<>(); | |
public ComplexKafkaPrincipal(String principalType, String name) { | |
super(principalType, name); | |
} | |
public ComplexKafkaPrincipal(KafkaPrincipal kafkaPrincipal) { | |
this(kafkaPrincipal.getPrincipalType(), kafkaPrincipal.getName()); | |
} |
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
import com.google.common.collect.Maps; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Map; | |
import java.util.Properties; | |
import java.util.UUID; | |
import java.util.concurrent.atomic.AtomicBoolean; | |
import org.apache.kafka.clients.consumer.ConsumerConfig; | |
import org.apache.kafka.clients.consumer.ConsumerRecord; | |
import org.apache.kafka.clients.consumer.ConsumerRecords; |
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
➜ incubator-training git:(master) ✗ grep -r --include "pom.xml" "http[^s]" . | |
./tools/maven-revealjs-asciidoctor-templte/pom.xml: http://www.apache.org/licenses/LICENSE-2.0 | |
./tools/maven-revealjs-asciidoctor-templte/pom.xml:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
./tools/maven-revealjs-asciidoctor-templte/pom.xml: xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
./tools/pom.xml: http://www.apache.org/licenses/LICENSE-2.0 | |
./tools/pom.xml:<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | |
./tools/pom.xml: xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
./content/Incubator/ReleaseChecklist/pom.xml: http://www.apache.org/licenses/LICENSE-2.0 | |
./content/Incubator/ReleaseChecklist/pom.xml:<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/ |
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
[sssd] | |
config_file_version = 2 | |
services = nss, pam | |
domains = {{ KRB_REALM }} | |
[nss] | |
filter_groups = root | |
filter_users = root | |
reconnection_retries = 3 | |
entry_cache_timeout = 300 |
OlderNewer