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
# Compile and install HAProxy | |
rm -rf /tmp/haproxy-current | |
git clone http://git.haproxy.org/git/haproxy-2.0.git /tmp/haproxy-current | |
cd /tmp/haproxy-current | |
make \ | |
TARGET=linux-glibc USE_LINUX_TPROXY=1 USE_ZLIB=1 USE_REGPARM=1 USE_PCRE=1 USE_PCRE_JIT=1 \ | |
USE_OPENSSL=1 SSL_INC=/usr/include SSL_LIB=/usr/lib ADDLIB=-lpthread USE_SYSTEMD=1 | |
make install | |
# cp /tmp/haproxy-current/examples/haproxy.init /etc/init.d/haproxy |
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
#write all to port 80 | |
tcpdump dst port 80 -w - | tee tcp3 | tcpdump -r - |
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
select email,tref7,tref8, UserCreationDate, | |
xmlFields,cast ( xmlFields.query( '(/d/i[@k="Reasons"][1]/text())') as varchar(200)), | |
* from actions where actionname ='set-unsubscribe-reasons' |
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/sh | |
JAVA_VER=jdk-9.0.4 | |
JAVA_FILE=jdk-9.0.4_linux-x64_bin.tar.gz | |
cd /opt/ | |
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/9.0.4+11/c2514751926b4512b076cc82f959763f/jdk-9.0.4_linux-x64_bin.tar.gz" | |
tar xzf $JAVA_FILE | |
rm -rf $JAVA_FILE | |
cd "/opt/${JAVA_VER}/" | |
alternatives --install /usr/bin/java java "/opt/${JAVA_VER}/bin/java" 1 | |
alternatives --install /usr/bin/javac javac "/opt/${JAVA_VER}/bin/javac" 1 |
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/sh | |
user=elasticsearch | |
mkdir -p /elasticsearch | |
cd /elasticsearch | |
curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.4.4/elasticsearch-2.4.4.tar.gz | |
tar -xvf elasticsearch-2.4.4.tar.gz | |
mv elasticsearch-2.4.4 $1 | |
rm -rf elasticsearch-2.4.4.tar.gz | |
if [ $(getent passwd $user) ] ; then | |
echo user $user exists |
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/sh | |
user=elasticsearch | |
mkdir -p /elasticsearch | |
cd /elasticsearch | |
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.1.tar.gz | |
tar -xvf elasticsearch-5.6.1.tar.gz | |
mv elasticsearch-5.6.1 $1 | |
rm -rf elasticsearch-5.6.1.tar.gz | |
if [ $(getent passwd $user) ] ; then | |
echo user $user exists |
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/sh | |
user=elasticsearch | |
mkdir -p /elasticsearch | |
cd /elasticsearch | |
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.tar.gz | |
tar -xvf elasticsearch-6.5.1.tar.gz | |
mv elasticsearch-6.5.1 $1 | |
rm -rf elasticsearch-6.5.1.tar.gz | |
if [ $(getent passwd $user) ] ; then | |
echo user $user exists |
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
Самый простой способ запрос на *137# | |
Еслиу услуга уже подключена - отключить. | |
После повторного подключения приходит СМС с логином (совпадает с номером телефона) и паролем. | |
После этого любой SIP-клиент. Zoiper, например. | |
Пример настройки: | |
multifon.ru:5060 | |
P.S. | |
Существует 3 типа маршрутизации звонков для мультифона: |
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
links | |
https://www.catalog.update.microsoft.com/Search.aspx?q=cumulative%202019-03%202016 |
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
https://support.code42.com/Administrator/6/Troubleshooting/Code42_server_stalls_due_to_too_many_open_files | |
ps aux | grep proserver | |
sudo cat /proc/[PID]/limits | |
/opt/proserver/.proserverrc | |
ulimit -n 409600 |
OlderNewer