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))
numbnet /
Last active Apr 11, 2021
Search Variable

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

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


GitHub Markdown



This is an


This is an


This is an

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": [
##=== OpenSSH Win10 ===
echo "----------- !!! START !!! ----------"
## ================= ≠≠≠ =================
function TestAdmin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
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. -->