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
# install java | |
sudo apt-get update -y | |
sudo apt-get install software-properties-common -y | |
sudo add-apt-repository -y ppa:openjdk-r/ppa | |
sudo apt-get install wget -y | |
sudo apt-get install openjdk-8-jdk -y | |
sudo apt-get update -y | |
# make serve directory | |
sudo mkdir -p /srv |
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
#!/bin/bash | |
#http://linux.autostatic.com/installing-webrtc2sip-on-ubuntu-1204#install_packages | |
sudo su | |
# install | |
apt-get update | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:autostatic/doubango |
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
#!/bin/bash | |
# https://code.google.com/p/webrtc2sip/wiki/Building_Source_v2_0 | |
sudo su | |
sudo yum -y update | |
sudo yum install -y make libtool autoconf subversion git cvs wget libogg-devel gcc gcc-c++ pkgconfig nasm | |
#Building libsrtp |
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
wget http://apache.petsads.us/kafka/0.8.1/kafka_2.9.2-0.8.1.tgz | |
tar -xzf kafka_2.9.2-0.8.1.tgz | |
cd kafka_2.9.2-0.8.1 | |
bin/zookeeper-server-start.sh config/zookeeper.properties | |
bin/kafka-server-start.sh config/server.properties | |
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test | |
bin/kafka-topics.sh --list --zookeeper localhost:2181 | |
bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test |
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
DROP FUNCTION IF EXISTS MurmurHashV2; | |
DELIMITER // | |
CREATE FUNCTION `MurmurHashV2`(`keyx` varchar(65535), `seed` int unsigned) | |
RETURNS int unsigned | |
BEGIN | |
DECLARE l,i,m,r INT unsigned; | |
DECLARE h,k BIGINT unsigned; | |
SET l = LENGTH(keyx), i=1, m = 0x5bd1e995, r=24; | |
SET h = seed ^ l; | |
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
DROP FUNCTION IF EXISTS MurmurHashV3; | |
DELIMITER // | |
CREATE FUNCTION `MurmurHashV3`(`keyx` varchar(65535), `seed` int unsigned) | |
RETURNS int unsigned | |
BEGIN | |
DECLARE remainder,bytes,c1,c2,i, m1,m2 INT unsigned; | |
DECLARE h1,k1,h1b BIGINT unsigned; | |
SET remainder = LENGTH(keyx) & 3; | |
SET bytes = LENGTH(keyx) - remainder; | |
SET h1 = seed; |
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
echo 'System Update' | |
echo '=============' | |
sudo apt-get update | |
echo 'System Upgrade' | |
echo '==============' | |
sudo apt-get -y upgrade | |
echo 'Install Git' | |
echo '===========' |