Skip to content

Instantly share code, notes, and snippets.

@numbnet
numbnet / .gitconfig
Last active June 27, 2023 16:26
Git Conf
##=======================================================
#create a new repository on the command line
# echo "NEW REPO" >> README.md
# git init
# git add README.md
# git commit -m "first commit"
# git branch -M numbnet
# git remote add origin https://github.com/numbnet/TEST.git
# git push -u origin numbnet
##=== OpenSSH Win10 ===
echo "----------- !!! START !!! ----------"
## ================= ≠≠≠ =================
param([switch]$Elevated)
function TestAdmin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
@numbnet
numbnet / .bashrc
Last active November 12, 2022 06:19
TERMUX
# ============= .bashrc ============= #
##==================≠==================
## Aliases
##==================≠==================
alias ls="ls -a"
alias rm='rm -rf'
alias cp='cp -i'
alias mv='mv -i'
@numbnet
numbnet / 1.sh
Last active November 12, 2022 06:17
TERMUX Moduls
#!/bin/bash
# https://gist.githubusercontent.com/numbnet/16283d639aa316c8a1925c779dbd225c/raw/e44a093421e9988ffcfee7c43b2da95b5be98b57/1Etap.sh
kastom() {
TITLE = ""
SUBTITLE = "Кастомизации Termux"
NIK.NAME = "NUMBNET"
LastNAME
## ::::::::::::::::::::::::::::::::::::::::::::::::::::::::
##
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 September 4, 2021 19:36
Steps to build GCC 10 on Debian Buster.
#!/bin/bash
#
# Steps to build GCC 10 on Debian Buster.
#
set -e -x
# Install all dependencies.
export DEBIAN_FRONTEND=noninteractive
apt update

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

Обновлено Обновлено: 09.05.2020 Опубликовано Опубликовано: 31.10.2019
@numbnet
numbnet / hetzner.preInstall.sh
Last active June 21, 2021 03:19
HETZNER sceipts
## ******************************* ##
##
## ДАННЫЕ ПОЛЬЗОВАТЕЛЯ
## Примеры конфигурации облака
##
## ******************************* ##
## ******************************* ##
title="Включая пользователей и группы"

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