Skip to content

Instantly share code, notes, and snippets.

View d3adwolf's full-sized avatar
:octocat:
GitHub Campus Member

Dmitrii Zagorodnev d3adwolf

:octocat:
GitHub Campus Member
View GitHub Profile
@d3adwolf
d3adwolf / post-install.sh
Last active January 7, 2025 20:42
Post install script for Arch/Ubuntu
#!/bin/bash
# Определение цветов
RED='\033[0;31m'; GREEN='\033[0;32m'; GRAY='\033[37m'; BLUE='\033[0;34m'; NC='\033[0m'
# Проверка прав суперпользователя
(( EUID != 0 )) && { echo -e "${RED}Запустите скрипт с правами суперпользователя.${NC}"; exit 1; }
# Функции для задач
configure_ssh() {
@d3adwolf
d3adwolf / daemon.json
Created January 1, 2025 21:42
/etc/docker/daemon.json
{
"metrics-addr": "0.0.0.0:9323",
"experimental" : true,
"live-restore": true
}
@d3adwolf
d3adwolf / docker-403-forbidden.sh
Last active May 30, 2024 08:05
Error response from daemon: pull access denied for nginx, repository does not exist or may require 'docker login': denied: <html><body><h1>403 Forbidden</h1> Since Docker is a US company, we must comply with US export control regulations. In an effort to comply with these, we now block all IP addresses that are located in Cuba, Iran, North Korea…
sudo bash -c 'cat <<EOF > /etc/docker/daemon.json
{
"registry-mirrors" : [
"https://mirror.gcr.io",
"https://daocloud.io",
"https://c.163.com/",
"https://huecker.io/",
"https://registry.docker-cn.com"
]
}
spotify.com
linuxgsm.com
hotspotshield.com
saashub.com
reddit.com
intel.com
netacad.com
cisco.com
linustechtips.com
xilinx.com
apt install parted -y
parted /dev/sda
resizepart 3
@d3adwolf
d3adwolf / fish-and-oh-my-fish.md
Last active December 19, 2022 22:30
Installing Fish shell and Oh My Fish with theme Eden
apt install fish -y
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish
omf install eden
@d3adwolf
d3adwolf / msk-time.md
Last active December 19, 2022 22:30
Fixes locales for Mosh connection
timedatectl set-timezone Europe/Moscow