Skip to content

Instantly share code, notes, and snippets.

View dominicusin's full-sized avatar

dominicusin dominicusin

View GitHub Profile
export LANG=C.UTF-8
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
apt -y modernize-sources;apt-mark -y minimize-manual ;apt --allow-change-held-packages --allow-downgrades --allow-remove-essential --allow-unauthenticated --fix-broken --fix-missing --ignore-hold --install-recommends --install-suggests --update --show-progress --color --audit --autoremove --purge --reinstall --fix-broken --fix-missing --ignore-hold -t unstable --option DPkg::Options::="--force-confnew" --option DPkg::Options::="--force-all" -fym full-upgrade;aptitude --no-gui --with-recommends -t unstable -vfy full-upgrade;dpkg --configure -a --force-all
@dominicusin
dominicusin / myzfs
Last active February 8, 2025 06:21
zpool create
#!/bin/bash
set -e
# Define disk arrays
HDD_DISKS=(
"/dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF"
"/dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF"
"/dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G"
"/dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G"
@dominicusin
dominicusin / make chroot
Last active January 24, 2025 23:04
chroot
dnf --releasever='rawhide' --repofrompath='rawhide,http://mirrors.dotsrc.org/fedora-enchilada/linux/development/rawhide/Everything/x86_64/os/' --repofrompath='rawhide-modular,https://mirrors.huaweicloud.com/repository/fedora/development/rawhide/Modular/x86_64/os/' --installroot='/chroot/fedora' --enablerepo='rawhide,rawhide-modular' --setopt=install_weak_deps=True --nogpgcheck install dnf @core
debootstrap --verbose --no-check-gpg --no-merged-usr --components="main,contrib,non-free,non-free-firmware" ceres /chroot/devuan http://deb.devuan.org/merged
debootstrap --verbose --components=main,contrib,non-free-firmware,non-free --variant=minbase --merged-usr --force-check-gpg --log-extra-deps stable /chroot/debian https://deb.debian.org/debian
zypper --root /chroot/suse install --allow-vendor-change --allow-arch-change --allow-name-change --allow-downgrade --recommends --force-resolution --auto-agree-with-licenses --replacefiles --no-confirm --force --allow-unsigned-rpm --oldpackage --details zyp
@dominicusin
dominicusin / lists
Created October 23, 2024 14:15
lists
deb [arch=all,amd64 signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr bookworm
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main
deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
deb [arch=amd64] https://repo.vivaldi.com/snapshot/deb/ stable main
deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main
deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ beta steam
deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ stable steam
deb [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian sid main
@dominicusin
dominicusin / sources
Created October 23, 2024 14:13
sources
Uris: http://labs.consol.de/repo/stable/debian
Architectures: amd64
Types: deb
Suites: bookworm
Components: main
Signed-By: /var/lib/extrepo/keys/consol.asc
Enabled: yes
Types: deb deb-src
Suites: trixie
YunoHost
curl https://install.yunohost.org | bash
CapRover
docker run -p 80:80 -p 443:443 -p 3000:3000 -e ACCEPTED_TERMS=true -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover
PikaPods
https://www.pikapods.com/pods
umbrelOS
winget upgrade --accept-package-agreements --accept-source-agreements --include-unknown --all -ruh
C:\Windows\System32\wbadmin.exe delete backup -keepVersions:1 -quiet
C:\Windows\System32\Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth
C:\Windows\System32\sfc.exe /SCANNOW
C:\Windows\System32\compact.exe /CompactOs:always
https://packages.jdel.org
https://digitalbox.go.zd.fr
https://get.filebot.net/syno/
https://packages.pcloadletter.co.uk/
https://packages.synocommunity.com/
https://packages.synocommunity.com/?beta=1
https://spk7.imnks.com/
https://synology.sysco.ch
https://synopackage.com/repository/spk/all
chrome://flags/
#enable-quic
#enable-tls13-kyber
about:config.
network.http.http3.enabled
security.tls.enable_kyber
opera://flags/
#enable-quic
@dominicusin
dominicusin / raid_bootloader_install.sh
Created June 19, 2024 07:43
raid_bootloader_install
#!/bin/bash
# Переменные для разделов и RAID массива
raid_device="/dev/md0"
efi_partitions=("/dev/sdd2" "/dev/sdb2" "/dev/nvme2n1p2" "/dev/sdc2" "/dev/nvme1n1p2" "/dev/sda2")
mount_point="/mnt/efi"
backup_dir="/tmp/efi_backup"
log_file="/var/log/raid_bootloader_install.log"
# Функция для логирования сообщений