This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: bash <(curl -fsSL https://gist.githubusercontent.com/sefinek/2be007238549882857b7b8a1eb66c877/raw/ubuntu-mirror-pl.sh) | |
# Other useful script: https://raw.githubusercontent.com/ijash/ubuntu-fastest-mirror/master/run.sh | |
set -euo pipefail | |
SECONDS=0 | |
# Logger | |
log() { | |
local level="$1"; shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: bash <(curl -fsSL https://gist.githubusercontent.com/sefinek/73593f5629065a761588b5a3ba16fed0/raw/set-locale-pl-en.sh) | |
set -euo pipefail | |
# Install 'locales' if not already present | |
if ! dpkg -s locales >/dev/null 2>&1; then | |
echo "Installing 'locales' package..." | |
sudo apt-get update -qq | |
sudo apt-get install -y locales |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt install -y software-properties-common && \ | |
sudo add-apt-repository -y ppa:git-core/ppa && \ | |
sudo apt update && sudo apt install -y git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && \ | |
sudo apt install -y curl && \ | |
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \ | |
sudo apt install -y nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ufw allow 8088/tcp && \ | |
sudo ufw allow 8043/tcp && \ | |
sudo ufw allow 8843/tcp && \ | |
sudo ufw allow 29810/udp && \ | |
sudo ufw allow 29811/tcp && \ | |
sudo ufw allow 29812/tcp && \ | |
sudo ufw allow 29813/tcp && \ | |
sudo ufw allow 29814/tcp && \ | |
sudo ufw allow 27001/udp && \ | |
sudo ufw allow 27002/tcp && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg-reconfigure tzdata | |
timedatectl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan new-main && git add . && git commit -m "First commit" && git branch -D main && git branch -m main && git push -f origin main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################## | |
# !!! WARNING !!! THIS SCRIPT IS INTENDED FOR SERVER USE # | |
# ONLY. IT WILL REMOVE GUI-RELATED PACKAGES AND COMPONENTS! # | |
# # | |
# DO NOT RUN THIS ON A DESKTOP SYSTEM WITH GNOME/KDE/XFCE # | |
# OR ANY OTHER GRAPHICAL ENVIRONMENT. # | |
############################################################## | |
# curl -fSL https://gist.githubusercontent.com/sefinek/42cd13a10895accf385c7f0774d53ce7/raw/cleanup.sh -o cleanup.sh |