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
| # | |
| # http://wiki.bash-hackers.org/commands/builtin/read?s[]=read | |
| # | |
| > read -e -i "[txt_before]" -p "answer: " -t 10 myvariable ; echo $myvariable | |
| answer: [txt_before]fuck | |
| [txt_before]fuck |
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
| :: | |
| cd /d Z: | |
| cd Z:\SQL2014sp1entEn | |
| setup.exe /Q /IACCEPTSQLSERVERLICENSETERMS /ACTION=install /FEATURES=SQL,AS,RS,IS,Tools | |
| setup.exe /UpdateEnabled=0 |
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
| startup_message off | |
| vbell off | |
| hardstatus alwayslastline "%{=b}%{G} %{b}%w %=%{kG}%C%A %D,%d/%m/%y" | |
| shelltitle "Shell" | |
| defscrollback 5024 |
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
| cd /var/log; tail -f log.* samba/samba.{n,s}mbd samba/samba.winbindd | |
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
| # | |
| # >> добавить в /etc/rc.local (или что-то типа того): | |
| # | |
| # turn on verbose logging | |
| export AUTOSSH_DEBUG | |
| # Sets the connection monitoring port. | |
| export AUTOSSH_PORT=61000 | |
| # specifies the connection poll time in seconds; default is 600 seconds. | |
| export AUTOSSH_POLL=300 |
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), | |
| с помощью которого вы можете загрузить и тихо установить | |
| сразу несколько приложений одной командой! | |
| Примечание: |
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
| <# | |
| .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
| $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 | |
| 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 |