Skip to content

Instantly share code, notes, and snippets.

View vmpartner's full-sized avatar

Musin Vitaly vmpartner

  • Russia
View GitHub Profile
@vmpartner
vmpartner / gist:d60147e7cffb55f7f6587170eb48e15c
Created August 26, 2025 22:07
Ubuntu 24.04 + Wayland - Fix telegram notification
sh -c "QT_QPA_PLATFORM=xcb telegram"
@vmpartner
vmpartner / gist:b7277956d9c90722c59f1a17805b8f35
Last active August 25, 2025 23:04
Ubuntu 24.04 + Wayland - Flameshot not work in Wayland
- Uninstall any flameshot that you installed early
- Add src to /etc/apt/sources.list.d/ubuntu.sources
Types: deb-src
URIs: http://ru.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb-src
@vmpartner
vmpartner / gist:d9d7f89e4bd1ae9aa6af9a4b72040f2c
Last active August 26, 2025 15:14
Ubuntu 24.04 - Kingston fury ddr5 - how disable rgb
- Install OpenRGB via deb from official site
- sudo rmmod spd5118
- Start OpenRGB, set brightness 0
- echo "blacklist spd5118" | sudo tee /etc/modprobe.d/blacklist-spd5118.conf
@vmpartner
vmpartner / gist:64fc67b88fad1abc32d6c9167400e269
Created August 24, 2025 18:37
Ubuntu 24.04 + Wayland - suspend glitch
- MSI MAG X870 TOMAHAWK WIFI
- Ubuntu 24.04
- Wayland
Create file /etc/modprobe.d/nvidia-power-management.conf with content:
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
~ update-initramfs -u
~ reboot
@vmpartner
vmpartner / gist:d7846bd8d1f10248d52075178b1f2539
Created August 15, 2025 17:36
msi MAG X870 TOMAHAWK WIFI - front panel audio problems, no sound, mic issue, acl4080
- MSI MAG X870 TOMAHAWK WIFI
- Ubuntu 24.04
- don't copy alsa ucm config from repo to your system (not compatible)!
- copy regex usb from here https://github.com/alsa-project/alsa-ucm-conf/blob/master/ucm2/USB-Audio/USB-Audio.conf
- paste this regex to your file /usr/share/alsa/ucm2/USB-Audio/USB-Audio.conf
- reload audio `systemctl --user restart wireplumber pipewire pipewire-pulse`
- done
- check that this command not return errors `alsaucm -c hw:1 dump text`
@vmpartner
vmpartner / gist:adc4e517bbf52eb83caf01de6512732d
Created June 30, 2025 14:40
docker desktop закончилось место, как увеличить?
На windows 11 мне помог только этот способ:
- вырубаем docker desktop и делаем wsl --shutdown
- открываем hyperv
- действие > изменить диск > расширить - ставим новый размер
- открываем wsl -d docker_desktop
- ищем наш диск через lsblk c новым размером
- делаем resize2fs /dev/sdf (подставляем свой диск)
@vmpartner
vmpartner / gist:2bf3f9866f1313e50c7f4e09ff202094
Created October 14, 2024 08:05
Tarantool Idea Goland error Scanning is not allowed for
Add "SET SESSION "sql_seq_scan" = true;" to "Data Sources" of Tarantool field "Startup script"
@vmpartner
vmpartner / php.ini
Created November 23, 2023 09:35
docker desktop php xdebug access + phpstorm
[xdebug]
#xdebug.discover_client_host = true
xdebug.client_host = host.docker.internal
xdebug.client_port = 9123
xdebug.idekey = "PHPSTORM"
xdebug.max_nesting_level = 250
xdebug.mode = debug
xdebug.start_with_request = trigger
xdebug.profiler_output_name = cachegrind.out.%p_%s
xdebug.output_dir = "/var/www/xxx/local/profiles/"
@vmpartner
vmpartner / gist:dc8a4f6c8928ae9bfb32f25b96569720
Created May 11, 2023 22:02
Ошибка битрикс [Error] Class 'Bitrix\Sale\Update\CrmEntityCreatorStepper' not found
Удалите все файлы из /local/modules/sale
@vmpartner
vmpartner / gist:8fb844fedc0bdc77ea06470c84110450
Created May 9, 2023 10:00
Bitrix docker desktop WSL: Ошибка Работа с сокетами
| Сначала делаем локальный сертификат
Create folder
```bash
mkdir /root/ssl
```
1. Generate root authority center
```bash