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 | |
| # DNS Recursion Scanner: --log | |
| set -e | |
| read -p "🌐 Domain: " INPUT; [[ -z "$INPUT" ]] && exit 1 | |
| read -p "🔍 Test [google.com]: " TD; TD="${TD:-google.com}" | |
| [[ "${1:-}" == "-l" || "${1:-}" == "--log" ]] && LF="dns_$(date +%s).txt" | |
| if [[ $EUID -ne 0 ]]; then |
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
| TARGET_IP=$(hostname -I | awk '{print $1}') | |
| TARGET_PORT=443 | |
| TIMEOUT_SEC=2 | |
| MAX_RESULTS=5 | |
| SNI_LIST=( | |
| "update.microsoft.com" | |
| "download.windowsupdate.com" | |
| "windows.update.microsoft.com" | |
| "go.microsoft.com" |
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" |
NewerOlder