Skip to content

Instantly share code, notes, and snippets.

##### install.ipxe #####
#!ipxe
set base http://mirror.centos.org/centos/7/os/x86_64
prompt -k 0x197e -t 2000 Press F12 to install CentOS... || exit
kernel ${base}/images/pxeboot/vmlinuz initrd=initrd.img repo=${base}
initrd ${base}/images/pxeboot/initrd.img
boot
@numbnet
numbnet / backup.sh
Created November 10, 2020 01:40
Rsync
#!/bin/bash
BDIR='/home/backup';
FDIR= '/';
EXCLUDE='{"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/home/backup/*","/media/*","/lost+found"}';
if [ -d $BDIR ]; then
echo "Folder exists"
cd /mnt && ln -s $BDIR;
else
@numbnet
numbnet / .bashrc
Last active December 26, 2020 16:35
UNIX.scripts.Centros.Termux
# ============= .bashrc ============= #
##==================≠==================
## Aliases
##==================≠==================
alias ls="ls -a"
alias rm='rm -rf'
alias cp='cp -i'
alias mv='mv -i'
@numbnet
numbnet / metasploit.sh
Last active November 11, 2020 04:09
metasploit
#!/data/data/com.termux/files/usr/bin/sh
echo "installing Prequisities \n"
apt update && apt upgrade
apt install autoconf bison clang coreutils curl findutils git apr apr-util libffi-dev libgmp-dev libpcap-dev \
postgresql-dev readline-dev libsqlite-dev openssl-dev libtool libxml2-dev libxslt-dev ncurses-dev pkg-config \
postgresql-contrib wget make ruby-dev libgrpc-dev termux-tools ncurses-utils ncurses
echo "\n"
echo "cloning Metasploit framework\n"
@numbnet
numbnet / Backup.sh
Last active February 25, 2021 13:00
backup
#!/bin/bash
function BACKUPMENU {
echo "******* -select- *******"
echo "**************************"
echo " 1) = Backup with RESTIC "
echo " 2) = RESTORE with RESTIC"
echo " 3) = BACKUP with TAR "
echo " 4) = RESTORE with TAR "
echo " *) = EXIT "
echo "**************************"
@numbnet
numbnet / SSH.ed25519.sh
Last active November 25, 2020 11:01
SSH
#!/bin/bash
#====== SSH.ed25519.sh =======#
function variable {
# NKEY='id'
# CKEY='[email protected]'
PKEY="";
# TKEY=rsa;
# TKEY=dsa;
@numbnet
numbnet / centos.utils.sh
Last active December 24, 2020 13:47
Examples
#!/bin/bash
ver="v1.9.2"
title="Breeze Easy Shell"
title_full="$title $ver"
echo "$title_full"
#-----------------
#типовые функции
#-----------------
#для рабты с цветами
@numbnet
numbnet / %pre
Last active November 27, 2020 15:26
kickstart
%pre
#!/bin/sh
hds=""
mymedia=""
for file in /proc/ide/h*
do
mymedia=`cat $file/media`
@numbnet
numbnet / Debloat-Windows10.ps1
Created December 1, 2020 13:04
Windows scripts
<#
NAME
Debloat-Windows10.ps1
DESCRIPTION
Debloats and customizes Windows 10 Enterprise N LTSB.
It changes your privacy options in the settings app and disables scheduled tasks and services that are there
to gather information about you. It also tweaks the registry to customize settings, make your font display properly
on DPI scaling 125% and disable OneDrive completely. Windows Features are also disabled, such as Internet Explorer
and XPS Viewer, while others are enabled such as .NET framework 3.5. On top of it all, it appends new lines to your
hosts file that block Microsoft from collecting data on you, as well as enables or disables local policies to

=============== Менеджер пакетов WinGet в Windows 10 ===============

############## VARIANT 1 Installer: ##############

### с помощью PowerShell скачать appxbundle файл winget с GitHub и установить его (https://github.com/microsoft/winget-cli/releases):

mkdir "C:\PS" Invoke-WebRequest -Uri "https://github.com/numbnet/Win10andAppx/blob/numbnet/WinModules/winget-cli/releases/download/v0.2.3162-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle" -OutFile "C:\PS\WinGet.appxbundle" Add-AppxPackage "C:\PS\WinGet.appxbundle"

##===========================================================================

установка winget в windows 10 из appxbundle: