Skip to content

Instantly share code, notes, and snippets.

View Installopensshwindowsx64_x86.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
}
@numbnet
numbnet / VariantsSearch.md
Last active Apr 11, 2021
Search Variable
View VariantsSearch.md

Примеры регулярных выражений ##

Поиск точной фразы Поиск слова или фразы из списка Поиск слова в разных вариантах написания или со специальными символами Поиск любого адреса электронной почты в определенном домене Поиск любого IP-адреса в определенном диапазоне Поиск буквенно-цифровой строки

View Markdown.md

GitHub Markdown

==================================================

Headers

This is an

tag

This is an

tag

This is an
tag

View ComputerName.ps1
Rename-Computer -NewName NN -Force
Restart-Computer -ComputerName NN -Confirm -Force
View OpenSSHforWINDOWS.x64-x86.ps1
##*************************************************
New-Item -Path $env:SYSTEMDRIVE\ -Name 'PS\OpenSSH' -ItemType Directory
##====================================================
### ARH OS and Download OpenSSH x64 or x86
echo "******** Start Download OpenSSH v8.1.0.0p1-Beta .......... *********";
echo " "
if ((Get-WmiObject win32_operatingsystem | select osarchitecture).osarchitecture -like "64*")
{
View .vsconfig
<<<<<<< HEAD
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.NetCore.Component.Runtime.5.0",
"Microsoft.NetCore.Component.Runtime.3.1",
"Microsoft.NetCore.Component.SDK",
"Microsoft.VisualStudio.Component.NuGet",
View INSTALLOpenSSH.W.ps1
##=== 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)
View InstallOpenSSH.Windows.GKI.ps1.md
View .bashrc
# ============= .bashrc ============= #
##==================≠==================
## Aliases
##==================≠==================
alias ls="ls -a"
alias rm='rm -rf'
alias cp='cp -i'
alias mv='mv -i'
View export-prod.polyplast._.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->