Skip to content

Instantly share code, notes, and snippets.

@rsyuzyov
rsyuzyov / 1 docker-tips.md
Last active November 18, 2025 07:54
docker tips

Консольная панель управления Docker (замена portainer, lin+win+macos)

https://github.com/jesseduffield/lazydocker?tab=readme-ov-file#installation

curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
grep -qxF 'export PATH="$HOME/.local/bin:$PATH"' ~/.bashrc || echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Установка свежего docker

@rsyuzyov
rsyuzyov / foreman-setup.sh
Last active November 15, 2025 08:14
foreman setup
#!/bin/bash
set -e
grep -qxF "net.ipv6.conf.all.disable_ipv6 = 1" /etc/sysctl.conf || echo "net.ipv6.conf.all.disable_ipv6 = 1" | tee -a /etc/sysctl.conf
grep -qxF "net.ipv6.conf.default.disable_ipv6 = 1" /etc/sysctl.conf || echo "net.ipv6.conf.default.disable_ipv6 = 1" | tee -a /etc/sysctl.conf
grep -qxF "net.ipv6.conf.lo.disable_ipv6 = 1" /etc/sysctl.conf || echo "net.ipv6.conf.lo.disable_ipv6 = 1" | tee -a /etc/sysctl.conf
grep -qxF "127.0.0.1 $(hostname −f) $(hostname −s)" /etc/hosts || sed −i "127.0.0.1 $(hostname -f) $(hostname −s)" /etc/hosts
apt update && apt dist-upgrade -y
@rsyuzyov
rsyuzyov / piler.sh
Created October 30, 2025 10:24 — forked from gkwurst/piler.sh
Installation script for Mail Piler (open source version) with Manticore on Ubuntu 24.04 Noble (credit cmer)
#!/bin/bash
#
#
# This script installs the latest open source version of Mail Piler (mailpiler.org) from the master
# branch on GitHub by compiling it from source. It also installs all dependencies, including a MySQL database.
#
# You should run this script as root on a vanilla Ubuntu 24.04 installation.
#
#
set -o errexit
@rsyuzyov
rsyuzyov / console-ui.txt
Last active October 22, 2025 15:30
gui в консоли
Term.Everything
https://github.com/mmulet/term.everythin
zenity - требует x11 или wayland
apt install zenity
https://dzen.ru/a/aCfirEOecm_UITb0
whiptail, dialog - cli утилиты для вывода диалогов в консоли

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@rsyuzyov
rsyuzyov / 1c-moble-debug.txt
Created September 16, 2025 12:08
1c moble debug
Параметры сервера 1С: -debug -http -debugServerPort 1550
Если мобильный клиент отлаживается в серверной базе, то необходимо указать в настройках отладки имя базы:DefAlias
@rsyuzyov
rsyuzyov / deployrds.txt
Last active September 1, 2025 06:08
Развертывание RDS
Развернуть ВМ из шаблона (бэкап vzdump-qemu-rds-2024_02_26-22_50_48.vma.zst)
Включить в домен
mklink /D c:\1c srv-app1\1c$
mklink /D c:\scripts srv-app1\scripts$
mklink /D c:\tools srv-app1\tools$
mklink /D c:\dist \\storage\dist
Установить платформу:
c:\1c\platform\1c-platform-provisioning.cmd
@rsyuzyov
rsyuzyov / setup-nats.sh
Last active August 28, 2025 16:21
Установка nats io
curl -fsSL https://binaries.nats.dev/nats-io/nats-server/v2@v2.11.8 | sh
mv nats-server /usr/sbin/
wget https://raw.githubusercontent.com/nats-io/nats-server/refs/heads/main/util/nats-server.service
mv nats-server.service /etcv/systemd/system
cat >> /etc/nats-server.conf<< EOF
server_name: srv-nats1
port: 4222
http: 8222
host: 0.0.0.0
jetstream {
@rsyuzyov
rsyuzyov / launch.json
Created August 28, 2025 05:46
Конфиг отладки 1С в vscode (.vscode/launch.json)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Отладка 1С (запуск)",
"type": "onec",
"request": "launch",
@rsyuzyov
rsyuzyov / 70-persistent-net.rules
Created January 6, 2025 13:01
udev network card name
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:11:22:33:44:55", NAME="ethint0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="66:77:88:99:aa:bb", NAME="ethusb0"