Skip to content

Instantly share code, notes, and snippets.

View vduseev's full-sized avatar
😄

Vagiz Duseev vduseev

😄
View GitHub Profile
@vduseev
vduseev / main.dart
Created April 27, 2025 17:46
DraggableScrollableSheet
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
home: Home(),
),
);
}
@vduseev
vduseev / pub
Created September 20, 2023 12:03
pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOcL+ZFm6UZuH8M4n07HD8lH7hecgmY7OLfDSycsN2B4k2J2US9JtEB94aos1+185VEN7ntCRG7S20+r5jM0R7j35lKOQfhv7lGcQ0tTHwffvtnblxe2Ks15fUikNSamiSqOLEVS1G7TtVf3TC6zdfZiP4C1/4X1KDcvLk9vXPsH2+A/tlAtF9d0SqKExpvTqe5FveoLT+qhkAeW7u1yrjepHnXxUjdMakEvrA8m1GICOh1mi3oaACe376iwjMWGs/2of4nxJzO+56S0Gypgjo3P+JANuy5j15PH563ew63ex9WN6EO0THjqLEV43XYg2BLZVsllNbaqU4Z8RtXocR
@vduseev
vduseev / proxmox-network.md
Last active February 2, 2025 19:15
Proxmox network setup with multiple IPs on a single interface

Proxmox network setup

Configuration for Proxmox host to support multiple IP addresses through a single interface.

Initial configuration

Initially, with a single IP and a single interface, the configuration looks like this.

auto lo
@vduseev
vduseev / proxmox-setup.md
Created April 19, 2023 12:58
Basic toolset Proxmox

Basic Proxmox toolset

Install basic packages

apt-get update
apt-get install tmux vim jq net-tools nmap ncdu git

Configure tmux

@vduseev
vduseev / proxmox-lvm-pool.md
Last active April 20, 2023 10:21
Proxmox LVM pool

How to properly configure a VM data pool

Initial setup

  • HP DL360 Gen9
  • 2 RAID arrays
    • RAID0 running on SSD for OS
    • RAID6 running on SAS HDD for data

Configuration

@vduseev
vduseev / debian-ansible.md
Created April 19, 2023 10:04
Configure Debian host for Ansible

Ansible configuration for the S1 server based on Proxmox

Prerequisites

  • Ansible instsalled on the managing host (from where ansible is launched)

    # Homebrew on MacOS
    $ brew install ansible
@vduseev
vduseev / logger.js
Created December 19, 2022 20:47
JSON logging configuration for JavaScript using log4js (python compatible)
/**
* This configuration uses log4js and outputs logs to stdout
* in JSON format. The names of the fields are compatible with
* python-json-logger.
*
* The configuration was developed to the purposes of logging
* Express JS logs running inside docker and collected through
* FluentD.
*
* Reported fields:
@vduseev
vduseev / _in_process.py
Created November 27, 2022 17:04
Instrumented _in_process.py from pep517 Python package to debug failing build for pyproject.toml using pip-tools
"""This is invoked in a subprocess to call the build backend hooks.
It expects:
- Command line args: hook_name, control_dir
- Environment variables:
PEP517_BUILD_BACKEND=entry.point:spec
PEP517_BACKEND_PATH=paths (separated with os.pathsep)
- control_dir/input.json:
- {"kwargs": {...}}
@vduseev
vduseev / commands
Last active April 5, 2021 07:51
Usual pyenv, poetry, tmux commands
** Note:
alt = option key on Mac
PageUp/PageDown = fn+up/down on Mac
# Pyenv
## Install pyenv
brew install pyenv
## After installing pyenv don't forget to add pyenv init commands to your `.zshrc` or `.bashrc` file