This file contains 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 socket | |
if __name__ == "__main__": | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
sock.connect(("localhost", 9000)) | |
data = "some data" | |
sock.sendall(data) | |
result = sock.recv(1024) | |
print result | |
sock.close() |
This file contains 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
Бот: | |
http://t.me/findgbot | |
Инструкция: | |
http://telegra.ph/Poisk-v-telegraph-03-24 | |
Поиск в telegra.ph | |
@findgbot | |
March 24, 2018 |
This file contains 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
apt-get update | |
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms | |
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma | |
modprobe wl |
This file contains 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
pip install --proxy http://.ru:8080 catboost | |
# проброс https на локальную машину | |
https://ngrok.com/ | |
# перезагрузить path (под админом) | |
set homedrive=C: |
This file contains 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
ВВЕДЕНИЕ | |
В соответствии с рекомендациями назначены полномочия IANA (Internet Numbers), корпорация Майкрософт усилила клиент динамического диапазона портов для исходящих подключений в Windows Vista и Windows Server 2008. Новый начальный порт по умолчанию — 49152, а новый конечный порт по умолчанию — 65535. Это изменение из более ранних версий Windows, используется диапазон портов по умолчанию 1025-5000 конфигурации. | |
Дополнительные сведения | |
Диапазон динамических портов можно просмотреть на компьютере под управлением Windows Vista или Windows Server 2008 с помощью следующей команды netsh : | |
netsh int ipv4 show dynamicport tcp | |
netsh int ipv4 show dynamicport udp | |
netsh int ipv6 show dynamicport tcp | |
netsh int ipv6 show dynamicport udp | |
Примечание. Диапазон устанавливается отдельно для каждого транспорта (TCP или UDP). Диапазон портов стала действительно интервал, который имеет начальную и конечную точку. Пользователи Microsoft, которые развертывают серверы под управлением Windows Server 2008 могут возникнуть проблем |
This file contains 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
FROM daald/ubuntu32:trusty | |
ENV DEBIAN_FRONTEND noninteractive | |
ARG DEB_CACHE=http://archive.ubuntu.com | |
WORKDIR /tmp | |
RUN set -xe \ | |
# Шрифты MS содержатся в отдельном репозитории | |
&& echo "deb http://archive.ubuntu.com/ubuntu precise multiverse" >> /etc/apt/sources.list \ |
This file contains 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
Функция ПолучитьМаксимальныйКодСимволаСтроки(СтрокаАнализа) | |
ДлинаСтрокиАнализа = СтрДлина(СтрокаАнализа); | |
МаксимальныйКодСимвола = 0; |
This file contains 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
flow 1: | |
# brew install dpkg | |
## dpkg -i | |
### dpkg: warning: '/usr/local/opt/gnu-tar/bin/gtar' not found in PATH or not executable | |
### dpkg: error: 1 expected program not found in PATH or not executable | |
### Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin | |
This file contains 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
FROM ubuntu:14.04 | |
MAINTAINER whoisit | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update \ | |
&& apt-get install -y software-properties-common python-software-properties \ | |
&& add-apt-repository multiverse && add-apt-repository ppa:no1wantdthisname/ppa && add-apt-repository ppa:openjdk-r/ppa && apt-get update && apt-get upgrade -y \ | |
&& apt-get install -y unixodbc libgsf-1-114 imagemagick libglib2.0-dev libt1-5 t1utils openjdk-8-jdk \ | |
libwebkit-dev libcanberra-gtk-module unzip fontconfig-infinality gtk2-engines-murrine gtk2-engines-pixbuf dialog nano mc \ |
NewerOlder