Skip to content

Instantly share code, notes, and snippets.

View aczire's full-sized avatar

Jimson James aczire

View GitHub Profile
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
https://www.mapr.com/blog/getting-started-sample-programs-apache-kafka-09
https://github.com/edenhill/librdkafka
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]
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;
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
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
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:
bladerf@bladerf:~/bladerf$ history
1 sudo perl vmware-install.pl
2 /usr/bin/vmware-user
3 sudo apt-get update
4 sudo apt-get install build-essential
5 sudo apt-get install build-essential libssl-dev libffi-dev python-dev
6 sudo apt-get install python-pip python-dev build-essential
7 sudo pip install --upgrade pip
8 cd
9 sudo pip install pybombs
In order to obtain the ARFCN/UARFCN/EARFCN, you will need to enter "Field Test Mode" in your phone. This varies greatly from phone to phone. In general, all involve "calling" certain numbers to bring up the hidden options
Some common ones are:
Samsung (Android): *#*#197328640#*#* or *#0011#
iPhone (all): *3001#12345#*
HTC (Android): *#*#7262626#*#*
https://www.cellmapper.net/
http://niviuk.free.fr/index.html
http://phoneftd.blogspot.ca/
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cp -r ./linux-firmware/ath10k /lib/firmware/
rmmod ath10k_pci
modprobe -v ath10k_pci