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
| $LOCAL = "$env:LOCALAPPDATA\Docker\wsl" | |
| $VHD1 = Join-Path $LOCAL "disk\docker_data.vhdx" | |
| $VHD2 = Join-Path $LOCAL "main\ext4.vhdx" | |
| docker system prune -f | |
| docker run --rm --privileged --pid=host docker/desktop-reclaim-space | |
| docker rmi docker/desktop-reclaim-space -f | |
| Get-Process -Name "Docker Desktop","com.docker.backend","com.docker.build" -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue |
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
| #!/usr/bin/env xdg-open | |
| [Desktop Entry] | |
| Actions=OpenDirectory;CreateDirectory; | |
| Categories=Utility;System; | |
| Comment[ru_RU]=Управление AppImage приложениями в NixOS | |
| Comment=Управление AppImage приложениями в NixOS | |
| Exec=konsole --hold -e bash -c 'APP_DIR="$HOME/Документы/Программы"; [ -d "$APP_DIR" ] || { echo "Папка не существует: $APP_DIR"; read -p "Нажмите Enter для выхода..."; exit 1; }; shopt -s nullglob; appimages=("$APP_DIR"/*.appimage); [ ${#appimages[@]} -eq 0 ] && { echo "Нет AppImage файлов в папке"; read -p "Нажмите Enter для выхода..."; exit 1; }; PS3="Выберите приложение: "; select app in "${appimages[@]##*/}"; do [ -n "$app" ] && break; echo "Неверный выбор"; done; echo "Запуск: ${app%.appimage}"; nix --extra-experimental-features nix-command --extra-experimental-features flakes shell nixpkgs#appimage-run --command appimage-run "$APP_DIR/$app"' | |
| GenericName[ru_RU]= | |
| GenericName= | |
| Icon=system-run-symbolic |
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
| REPO="potatoenergy/status" | |
| LABELS='mindustry-server,mindustry-server-port,minecraft-server,minecraft-server-port' | |
| CUTOFF="2025-12-31T23:59:59Z" | |
| gh issue list --repo "$REPO" --state all --limit 1000 --json number,createdAt,labels | jq -r --arg labels "$LABELS" --arg cutoff "$CUTOFF" '($labels|split(",")) as $arr | .[] | .labels = (.labels//[]) | select((.createdAt < $cutoff) and any(.labels[]; (.name|ascii_downcase) as $n | ($arr[]|ascii_downcase) == $n)) | .number' | while read -r n; do gh issue delete "$n" --repo "$REPO" --yes; done |
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
| @echo off | |
| chcp 65001 >nul | |
| mode con: cols=80 lines=20 | |
| color 0a | |
| setlocal enabledelayedexpansion | |
| :: Simple log helper | |
| set LOG=%~dp0anydesk_cleanup.log | |
| for /f "tokens=1-3 delims=/:. " %%a in ("%date% %time%") do set TS=%%a-%%b-%%c_%%d | |
| echo [%date% %time%] START >> "%LOG%" |
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 | |
| show_help() { | |
| cat << EOF | |
| Описание: | |
| Скрипт для сбора содержимого файлов с определёнными расширениями из выбранной директории. | |
| Выводит список всех файлов и содержимое только файлов с указанными расширениями в один текстовый файл. | |
| Скрытыe файлы и файлы в скрытых папках игнорируются. | |
| Использование: |
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 | |
| set -e | |
| # Функция для выполнения docker compose команды в указанном каталоге, | |
| # если найден файл compose.yaml или docker-compose.yaml | |
| run_docker() { | |
| local dir="$1" | |
| local docker_cmd="$2" | |
| if [ -f "${dir}/compose.yaml" ]; then | |
| echo "Выполнение: docker compose -f ${dir}/compose.yaml ${docker_cmd}" |
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 | |
| function prompt_command() { | |
| clear | |
| echo "Which command do you want to execute?" | |
| echo "1. Update all images" | |
| echo "2. Update running container images" | |
| echo "3. exit" | |
| read command | |
| } |
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 | |
| function prompt_command() { | |
| clear | |
| echo "Which command do you want to execute?" | |
| echo "1. up -d" | |
| echo "2. down" | |
| echo "3. pull" | |
| echo "4. pull && down && up -d" | |
| echo "5. restart" |
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
| #!/usr/bin/env bash | |
| # Steam games launcher: --engine=source|unreal|unity, --gamemode, --mangohud, --fsr, --dxvk, --gamescope, --resolution=<width>x<height> | |
| export HOST_LC_ALL="ru_RU.UTF-8" | |
| export LANG="ru_RU.UTF-8" | |
| export LC_ALL="ru_RU.UTF-8" | |
| export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam" | |
| export MESA_NO_ERROR="1" | |
| export WLR_NO_HARDWARE_CURSORS="1" | |
| export PROTON_NO_ESYNC="1" |
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
| [MessageBox] | |
| ExitGame_Title=Выход | |
| ExitGame_Message=Вы уверены, что хотите выйти из игры? | |
| LogOut_Title=Выйти | |
| LogOut_Message=Вы уверены, что хотите выйти из профиля? | |
| StartGame_Title=Начать матч? | |
| StartGame_Message=Начать матч с текущими настройками? | |
| StartDedicated_Title=Запустить выделенный сервер? | |
| StartDedicated_Message=Запустить выделенный сервер с текущими настройками? | |
| FirstTimeCharacter_Title=Создать персонажа |
NewerOlder