BufWriter<Master<'_>> – Telegram
BufWriter<Master<'_>>
105 subscribers
451 photos
28 videos
34 files
1.7K links
https://www.patreon.com/alxe_master

Видео/статьи. Конспект и мои вольные комментарии по инженерии. тут только то, что считаю полезным для себя или других =)

#os, #cloud, #rust, #golang, #python, #javaScript, #cpp, etc
Download Telegram
WireGuard
Шустрый бесплатный ВПН просто капэц (ну сервак вам таки придется создать)
Настраивается за 10мин
работает пока хорошо) посмотрим как будет дальше

== Официальный вебсайт
https://www.wireguard.com/

== Про протокол
https://www.wireguard.com/protocol/

== WireGuard — прекрасный VPN будущего?
https://habr.com/ru/post/432686/

== ЕСЛИ КТО РЕШИТ СОЗДАТЬ СЕРВАК НА ДО 5$ = нам вместе будет выгодно. перейдите по ссылке https://m.do.co/c/a7a63e8dfa85

== Скрипт для установки в 3сек
https://github.com/l-n-s/wireguard-install
sudo systemctl start wg-quick@wg0.service

sudo systemctl stop wg-quick@wg0.service

== NM нужен свежий что бы было удобно =(
https://www.xmodulo.com/wireguard-vpn-network-manager-gui.html
для себя открыл
generic monitor для панели xfce4
как я без этого жил раньше ???? можно воткнуть туда команду и оно будет показывать её аутпут. и пинговать каждые сколько скажешь секунд. АХЕРЕНЕННО

напрмиер свой айпишник посматривать
curl ifconfig.me

https://www.linuxtrainingacademy.com/determine-public-ip-address-command-line-curl/

apt install -y xfce4-genmon-plugin
Security-Chaos-Engineering-Verica-.pdf
2.4 MB
Достаточно свежая, очень классная книга по теме Security Chaos Engineering.
== Декомпозиция системы на микросервисы
https://youtu.be/u_K0uxw-Qro
не панацея, но
+ сокращение очереди задач в бэклоге
+ устранение проблемы больших релизов
+ интеграция с другими технологиями
+ сокращение среднего времени восстановления
+ снижение совокупной стоимости владения

Работают они только тогда когда есть хорошая культура девопс, и наоборот. культура девопс хороша когда микросервисы в системе
== Baud
https://en.wikipedia.org/wiki/Baud

Бод - то в чем измеряют количество символов данных по каналу связи.

Бод очень плотно связан с Gross bit rate - полное количество бит переданных физически по каналу включая оверхэд данных на протоколе самом. ЕСЛИ МЫ ГОВОРИМ ПРО СИСТЕМУ ГДЕ СИМВОЛЫ МОГУТ ИМЕТЬ БИНАРНЫЕ ЗНАЧЕНИЯ
Forwarded from oleg_log (Oleg Kovalov)
Python я в прод не пускал, но эта штука звучит полезной и приятной.

In Python every class can have instance attributes. By default Python uses a dict to store an object’s instance attributes. This is really helpful as it allows setting arbitrary new attributes at runtime.

However, for small classes with known attributes it might be a bottleneck. The dict wastes a lot of RAM. Python can’t just allocate a static amount of memory at object creation to store all the attributes. Therefore it sucks a lot of RAM if you create a lot of objects (I am talking in thousands and millions). Still there is a way to circumvent this issue. It involves the usage of slots to tell Python not to use a dict, and only allocate space for a fixed set of attributes. Here is an example with and without slots:

https://book.pythontips.com/en/latest/__slots__magic.html
== Вячеслав Панкратов | Проблемы перехода или что они все от меня хотят?!
https://youtu.be/oAhNfa37UKk

Шикарный доклад про изменения
Переход разраба в менеджера
Linux SystemD

== Why systemd
https://youtu.be/KftuGM_ylKg
- init system
- it replaces SysVInit
- created at Red Hat
- faster boot-up stimes
- daemons start in parallel
- YOU DON"T CARE ABOUT ORDER OF DAEMONS START
- SIMPLE CONFIG FILES
- SIMPLE configuration of FAILOVER strategies
- dynamic daemon state management
- consistent administration

Better security:
- every process runs in its own CGROUP by default
- simpler to control resource usage for each process
- better process isolation
- makes it harder for hackers to exploit the system !! - hacker must be root

redhat, suse, ubuntu server families have switched to systemd

== How to Create a systemd Linux Service
https://youtu.be/C4a7jxlMTfo
https://architectelevator.com/architecture/multiple-dimensions/
Две точки зрения на модели движения планет - "все вокруг земли" и "все вокруг солнца". а ведь обе правильные. просто одна из них проще. на второй все выглядит очень непривычно и забавно =) но она тоже правильная
== systemd Basics
https://youtu.be/AtEqbYTLHfs

$ systemctl list-units 
$ systemctl status %service%
$ sudo systemctl disable %service%
$ sudo systemctl enable %service%
$ sudo systemctl stop %service%
$ sudo systemctl start %service%
$ sudo systemctl restart %service%

Disable - it is not stopping


$ systemctl --failed

покажет то что грохнулось при старте и не работает по какой то причине

$ sudo systemctl is-enabled %service%

покажет статус текущего сервиса (enabled/disabled)

можно управлять состоянием машины
$ sudo systemctl reboot
$ sudo systemctl poweroff
$ sudo systemctl suspend


можно глянуть журнал сервиса
$ journalctl
$ journalctl -b
$ journalctl -u %service%
Getting Started with tmux

== Overview and Features
https://youtu.be/gmjyMxezIWU
- session attach
- split terminal screen
- you can use mouse for change window size and switch between tmux windows

$ tmux a
$ tmux attach

== Horizontal and Vertical Panes
https://youtu.be/H6RBPHow_q4
CTRL+B + " - horisontal pane
CTRL+B + % - vertical pane
CTRL+D - drop pane
CTRL+B + ARROW - switch between the panes

== Creating and Managing Windows
https://youtu.be/JMGGrM9KmFw
CTRL+B c - create window
CTRL+B n - next window
CTRL+B p - prev window
CTRL+B & - kill window

== Creating and Switching Between Sessions
https://youtu.be/FAU8rmS5NSE
CTRL+B d - disconnect. exit from tmux
$ tmux a - attach to some session
$ tmux list-sessions
$ tmux a -t 0
- attach to session 1
CTRL+B $ - rename the session
$ tmux new -s "name of the session" - create new session with name
$ tmux ls - short version of list-sessions
$ tmux a -t %session%
CTRL+B s
- list of sessions an d fast switch with ARROWS

== Customization and Tweaks
https://youtu.be/bjBjZvZsgks
COMMANDS: https://tmuxcheatsheet.com/
CONFIGFILE SAMPLE: https://pastebin.com/CDEVZTSC