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
Распаковываем архив | |
Распаковываем архив с исходными кодами PostgreSQL | |
student$ tar xzf /home/student/postgresql-10.0.tar.gz | |
student$ ls -ld /home/student/postgres* | |
drwxr-xr-x 6 student student 4096 окт 3 2017 /home/student/postgresql-10.0 | |
-rw-rw-r-- 1 student student 25830653 окт 3 2017 /home/student/postgresql-10.0.tar.gz | |
Создание конфигурации | |
Если требуется повторно выполнить конфигурацию, например с другими параметрами, то предварительно нужно очистить результаты предыдущего запуска: |
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
mongoimport /tmp/tv-shows.json -d movieData -c movies --jsonArray --drop |
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
Articles: | |
low level: | |
hardware: | |
a https://habr.com/post/80962/ | |
memory managment: | |
linux core and memory: | |
a https://habr.com/company/yandex/blog/250753/ | |
v https://www.youtube.com/watch?v=bhdkFPGhxfI | |
a https://www.insight-it.ru/linux/2015/chto-stoit-znat-o-pamiati-v-linux/ |
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
# Some assembler instructions | |
# | |
# x86 - Little endian architecture, bytes stores in reversed order | |
# | |
# Move (MOV) | |
# @@@@@@@@@@ | |
# | |
# mov dst, src - Copy data from source to destination | |
# mov eax, 8CBh - Put 8CB number to 32-bit eax register, h at the end is for converting number to HEX representation (base 16). | |
# mov ecx, ebx - Copy 32-bit number from ebx to ecx. |
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
# Combine with other protocols if needed. | |
# -P Prevent convertion from service name to number, -iTCP - (-i{PROTO} select given protocols), | |
# -sTCP:LISTEN (-s select give protocol state) | |
lsof -PiTCP -sTCP:LISTEN | grep {portnumber} |
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
## Swarm | |
# On one of manager nodes run | |
docker swarm init --advertise-addr 46.161.54.215:2377 --listen-addr 46.161.54.215:2377 # --advertise-addr 46.161.54.215:2377 - Which of this machine IP's will be used for swarm. --listen-addr 46.161.54.215:2377 - IP:Port to listen command for manager nodes. | |
# Then to generate command to connetc as a manager run. | |
docker swarm join-token manager | |
# To generate same command for worker run. | |
docker swarm join-token worker |
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
# OpenVPN config simple example on CentOS 7 | |
-------------------------------------------------------------------------------- | |
# Server config | |
# /etc/openvpn/server.conf | |
port 1194 | |
proto udp | |
dev tun | |
ca ca.crt | |
cert server.crt |
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
git branch --contains 0b5cb4a |
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
## Super Hot | |
cd - # go to previous directory. | |
## Copy public key to servers that I want to be accessible to connects to me | |
# server1 should be configured via ~/.ssh/config like | |
# Host server1 | |
# HostName 10.0.2.4 | |
# User sabahtalateh | |
# Port 22 | |
ssh-copy-id -i id_rsa.pub server1 |
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
sudo find / -size +20000k -exec ls -lh {} \; | |
find /boot -maxdepth 1 -size +10M -exec du -h {} \; | |
NewerOlder