Skip to content

Instantly share code, notes, and snippets.

View aczire's full-sized avatar

Jimson James aczire

View GitHub Profile
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
bladerf@bladerf:~/Downloads/vmware-tools/vmware-tools-distrib$ sudo perl
bin/ FILES vgauth/
caf/ INSTALL vmware-install.pl
doc/ installer/ vmware-install.real.pl
etc/ lib/
bladerf@bladerf:~/Downloads/vmware-tools/vmware-tools-distrib$ sudo perl vmware-install.pl
[sudo] password for bladerf:
10 tar -xzf ./VMwareTools-10.0.10-4301679.tar.gz
11 ls -la
12 cd vmware-tools-distrib/
13 ls -la
15 perl vmware-install.pl
16 /usr/bin/vmware-user
C:\zookeeper-3.4.8\bin>zkServer.cmd
C:\kafka_2.11-0.10.0.0>.\bin\windows\kafka-server-start.bat .\config\server.properties
/c/kafka_2.11-0.10.0.0/bin/windows/kafka-console-consumer.bat --zookeeper localhost:2181 --topic metron
[metron@metcap pycapa]$ pycapa --consumer --kafka 192.168.0.103:9092 --topic metron --n 1 --debug 100
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
In Developer Command Prompt for VS2015
[Create the Trusted Root Authority]
makecert.exe -n "CN=Aczire Test CA Root Authority" -r -pe -a sha512 -len 4096 -cy authority -sv aczire-root-ca.pvk -ss Root -sr LocalMachine aczire-root-ca.cer
pvk2pfx.exe -pvk aczire-root-ca.pvk -spc aczire-root-ca.cer -pfx aczire-root-ca.pfx -po 123456
[Create the code signing certificate]
makecert.exe -n "CN=Aczire Solutions" -iv aczire-root-ca.pvk -ic aczire-root-ca.cer -pe -a sha512 -len 4096 -b 01/01/2014 -e 01/01/2026 -sky signature -eku 1.3.6.1.5.5.7.3.3 -sv aczire-code-sign.pvk aczire-code-sign.cer
pvk2pfx.exe -pvk aczire-code-sign.pvk -spc aczire-code-sign.cer -pfx aczire-code-sign.pfx -po 123456
[CodeSign]
https://www.mapr.com/blog/getting-started-sample-programs-apache-kafka-09
https://github.com/edenhill/librdkafka
Hortonworks VM on CentOS
sudo yum install libpcap libpcap-devel pcapy -y
sudo yum install epel-release -y
sudo yum --disablerepo=epel -y update ca-certificates
sudo yum install python-devel -y
sudo yum install python-pip python-wheel -y
sudo pip install -r requirements.txt --upgrade
cat /etc/kafka/2.4.0.0-169/0/server.properties | grep listeners