Skip to content

Instantly share code, notes, and snippets.

@acidhole
acidhole / aptly.sh
Last active January 14, 2026 20:37
APT
###aptly
aptly mirror create -architectures=amd64 -keyring=/usr/share/keyrings/ubuntu-archive-keyring.gpg test https://mirror.yandex.ru/ubuntu noble main universe [nano]
gpg --no-default-keyring --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --export | gpg --no-default-keyring --keyring trustedkeys.gpg --import
aptly mirror update test
desktop-file-utils
aptly mirror show test
aptly mirror show -with-packages test
aptly package search '*'
sudo rm /etc/alternatives/java
@acidhole
acidhole / Docker.py
Last active January 14, 2026 20:36
DOCKER
###docker common
#ubuntu 22
apt-get reinstall docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
#ubuntu 24
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update && sudo apt install docker-ce
sudo groupadd docker
sudo usermod -aG docker adminlocal