This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NAME=$(basename $0) | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| echo -e "NAME: ${NAME}\nDIR: ${DIR}\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
| Enable-RemoteDesktop | |
| cinst git-credential-winstore | |
| cinst console-devel | |
| cinst poshgit | |
| cinst dotpeek | |
| cinst irfanview | |
| cinst fiddler4 | |
| cinst windirstat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Install-Module TabExpansionPlusPlus | |
| gcm -Module TabExpansionPlusPlus | |
| man TabExpansionPlusPlus -ShowWindow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Choose a package from 'Out-GridView' and Uninstall it. | |
| #> | |
| $program = Get-Package | Out-GridView -OutputMode Single -Title "Choose Package to Uninstall" | |
| $program | Select Name,Version,Summary,Status | |
| $program | Uninstall-Package -Force -Verbose | |
| <# | |
| gcm -Module PackageManagement | |
| man Uninstall-Package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $AllPackages = Find-Package | |
| $pkg = $AllPackages | Out-GridView -OutputMode Single -Title "Choose a package" | |
| $pkg | Select Name,Summary,Version,Links,Dependencies | |
| $pkg | Install-Package -Force -Confirm:$false -Verbose |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Simple and dirty "hack" to have a "sudo" on Windows. Downloads script and places it into "C:\Windows\System32\". | |
| .EXAMPLE | |
| sudo powershell | |
| .EXAMPLE | |
| sudo notepad C:\Windows\System32\drivers\etc\hosts | |
| .LINKS | |
| https://gist.githubusercontent.com/kapb14/73121937ad36a50de271/raw/e75a44132fb024835a12a79bd9dc4181936bb325/sudo.cmd | |
| #> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Запуск 'tmux' с ярлыка Windows | |
| %userprofile%\.babun\cygwin\bin\mintty.exe -e '/cygdrive/c/babun/.babun/cygwin/bin/tmux.exe' | |
| # Запуск 'ssh' и подключение к удаленному серверу с ярлыка Windows | |
| %userprofile%\.babun\cygwin\bin\mintty.exe -e '%userprofile%\.babun\cygwin\bin\ssh.exe' jump.adv.ru |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| В Windows 10 встроено управление поставщиками пакетов (оно же OneGet), | |
| с помощью которого вы можете загрузить и тихо установить | |
| сразу несколько приложений одной командой! | |
| Примечание: |