Skip to content

Instantly share code, notes, and snippets.

View installedPKGorNOT.ubuntu.sh
## ::::::::::::::::::::::::::::::::::::::::::::::::::::::::
##
PKG="nano";
# read -p "ENTER name install PKG: " insPKG;
if [ "$(dpkg-query -W -f='${Status}' "$PKG" 2>/dev/null | grep -c "ok installed")" == "1" ]; then
echo "$PKG OK"
@numbnet
numbnet / gcc-10-debian-buster.sh
Created Sep 4, 2021 — forked from inSilo/gcc-10-debian-buster.sh
Steps to build GCC 10 on Debian Buster.
View gcc-10-debian-buster.sh
#!/bin/bash
#
# Steps to build GCC 10 on Debian Buster.
#
set -e -x
# Install all dependencies.
export DEBIAN_FRONTEND=noninteractive
apt update
View hetzner.preInstall.sh
## ******************************* ##
##
## ДАННЫЕ ПОЛЬЗОВАТЕЛЯ
## Примеры конфигурации облака
##
## ******************************* ##
## ******************************* ##
title="Включая пользователей и группы"
View NGINXApacheMariaDBPHPMyAdmin.md

NGINX + Apache (httpd) + MariaDB (MySQL) + PHP + PHP-FPM (fastCGI) + FTP + PHPMyAdmin + Memcached + Postfix на CentOS 8

Обновлено Обновлено: 09.05.2020 Опубликовано Опубликовано: 31.10.2019
View README.md

NGINX + Apache (httpd) + MariaDB (MySQL) + PHP + PHP-FPM (fastCGI) + FTP + PHPMyAdmin + Memcached + Postfix на CentOS 8

@numbnet
numbnet / NGINXApachePHPFTP_PHPMyAdmin.md
Last active Jun 13, 2021
NGINX + Apache (httpd) + MariaDB (MySQL) + PHP + PHP-FPM (fastCGI) + FTP + PHPMyAdmin + Memcached + Postfix на CentOS 8
View NGINXApachePHPFTP_PHPMyAdmin.md

NGINX + Apache (httpd) + MariaDB (MySQL) + PHP + PHP-FPM (fastCGI) + FTP + PHPMyAdmin + Memcached + Postfix на CentOS 8

Описание
View SMBEnaDis_v123.ps1
###################################################################################
## Как удалить SMBv1
## Вот как удалить SMBv1 в Windows ( 10, 8.1, Server 2019, Server 2016 и 2012 R2)
###################################################################################
## SMB v1 (клиент и сервер)
## ****************************************
## СТАТУС:
Get-WindowsOptionalFeature -Online -FeatureName smb1protocol
View RenameComputerNew.ps1
##*********************** ≠≠≠≠ ***********************
## start as ADMIN
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$testadmin = $currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
if ($testadmin -eq $false) {
Start-Process powershell.exe -Verb RunAs -ArgumentList ('-noprofile -noexit -file "{0}" -elevated' -f ($myinvocation.MyCommand.Definition))
exit $LASTEXITCODE
}
View ask.ps1
##**********************************************************
##
$title = "Lorem"
$message = "Ipsum"
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", "This means Yes"
$no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", "This means No"
$options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
$result = $host.ui.PromptForChoice($title, $message, $Options, 0)
Switch ($result) {