Skip to content

Instantly share code, notes, and snippets.

View kupereal's full-sized avatar

kupereal

View GitHub Profile
@kupereal
kupereal / 99-rustdesk.conf
Created February 19, 2026 12:27
Xorg Dummy Config for Headless RustDesk Access (Linux)
Section "Device"
Identifier "dummy_device"
Driver "dummy"
VideoRam 256000
EndSection
Section "Monitor"
Identifier "dummy_monitor"
HorizSync 28.0-80.0
VertRefresh 48.0-75.0
@kupereal
kupereal / xorg.conf
Created February 19, 2026 10:42
Xorg Dummy Config for Headless AnyDesk Access (Linux)
Section "Device"
Identifier "Card0"
Option "NoDDC" "true"
Option "IgnoreEDID" "true"
Driver "dummy"
VideoRam 512000
EndSection
Section "Monitor"
Identifier "Monitor0"
@kupereal
kupereal / 60-my-config.yaml
Last active February 18, 2026 12:05
Конфиг Netplan с сервера в Hyper-V - статический IP
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: false
dhcp6: false
accept-ra: false
link-local: []
addresses:
@kupereal
kupereal / 60-my-config.yaml
Last active February 18, 2026 12:05
Конфиг Netplan с железки - вифи со статикой
network:
version: 2
renderer: networkd
wifis:
wlp1s0:
dhcp4: no
dhcp6: no
optional: true
accept-ra: false
link-local: []
@kupereal
kupereal / 60-my-config.yaml
Last active February 18, 2026 12:05
Конфиг Netplan с железки - вифи с DHCP
network:
#ethernets:
#enp3s0:
#dhcp4: true
wifis:
wlp1s0:
access-points:
link5:
password: 12345
dhcp4: true
@kupereal
kupereal / 60-my-config.yaml
Last active February 18, 2026 12:05
Конфиг Netplan с виртуалки - статический IP
network:
ethernets:
eth0:
dhcp4: false
addresses:
- 192.168.0.8/24
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
@kupereal
kupereal / 60-my-config.yaml
Last active February 18, 2026 12:04
Конфиг Netplan с виртуалки - дефолт с DHCP
network:
ethernets:
eth0:
dhcp4: true
version: 2
@kupereal
kupereal / index.html
Last active February 18, 2026 10:26
Правильный код Яндекс.Метрики для GTM
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(12345678, "init", {
clickmap:true,
@kupereal
kupereal / collection.json
Last active February 18, 2026 07:00
Мой порядок сортировки CSS-свойств
[
"position",
"z-index",
"top",
"right",
"bottom",
"left",
"display",
"visibility",
"float",