This file contains 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
#Иногда простые для юниксоидов вещи ставят виндовсоидов в тупик: | |
#Простое вроде дело при наличии netcat или connect подключится по ssh через Socks5 прокси. | |
#А вот на Виндовс проще поставить PuTTY. | |
Host 12_ | |
User koka | |
HostName 192.168.0.12 | |
UserKnownHostsFile ~/.ssh/%h | |
#For Windows instead of | |
#ProxyCommand connect -S 127.0.0.1:1080 %h %p | |
#or |
This file contains 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
ListenAddress 127.0.0.1 | |
PasswordAuthentication no | |
ChallengeResponseAuthentication no | |
Subsystem sftp sftp-server.exe | |
ClientAliveInterval 100 | |
# Клиент и хост проверяют друг друга по сертификатам | |
# Клиенту нужен сертификат клиента в ~/.ssh/id_rsa-cert.pub, ключи ЦС хостов в known_hosts | |
# Хосту нужен сертификат хоста в HostCertificate, ключи ЦС клиентов в TrustedUserCAKeys и принципалы сертификатов клиентов в AuthorizedPrincipalsFile | |
#TrustedUserCAKeys __PROGRAMDATA__/ssh/trusted_user_ca_keys |
This file contains 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
У меня есть RSA:2048 ключ в шифрованном паролем id_rsa.ppk | |
Запишем его в шифрованный паролем PKCS #8 pem PRIVATE KEY ENCRYPTED | |
MINGW64 | |
`pacman -S mingw-w64-x86_64-putty` | |
`puttygen id_rsa.ppk` | |
Вводим пароль и в меню Conversion~Export OpenSSH key~id_rsa.pem | |
Чтоб не вводить пароль расшифруем его в PKCS #1 pem https://gist.github.com/tuansoibk/0b1f279be5c1b782d95f4e15af1442cb | |
Не забыть удалить этот расшифрующий и подписывающий ключ (РиПК) PRIVATE KEY | |
`openssl rsa -in id_rsa.pem -out priv.pem` |
This file contains 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
# https://gist.github.com/voidexp/604c61cb7fd1bbcba8142ac94c184f20 | |
if go is installed then | |
echo 'export PATH=/c/Program\ Files/go/bin:$PATH' >> ~/.bashrc | |
echo 'export PATH=$(cygpath $GOPATH/bin):$PATH' >> ~/.bashrc | |
--- | |
git clone https://github.com/thales-e-security/p11tool | |
cd p11tool | |
go get -u | |
go install |
This file contains 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
;EnRu.ahk | |
;Another global keyboard layout switch by clicking the left or right Ctrl key | |
;Еще один глобальный переключатель раскладки клавиатуры щелчком левой или правой клавиши Ctrl | |
en:=0x4090409 | |
ru:=0x4190419 | |
WM_INPUTLANGCHANGEREQUEST:=0x0050 | |
HWND_BROADCAST:=0xFFFF | |
Frequency:=523 |
This file contains 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
Add-Type -AssemblyName 'System.Windows.Forms' | |
$WinUserLanguageList=Get-WinUserLanguageList | |
if ( [System.Windows.Forms.InputLanguage]::CurrentInputLanguage.Culture.Name -ne $WinUserLanguageList[0].LanguageTag ) { | |
Set-WinUserLanguageList $WinUserLanguageList -Force | |
} |
This file contains 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 %~dp0 | |
@set cmd=%~n0 | |
%cmd:;=:% | |
@timeout /t 9 |
This file contains 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
SetLocal EnableExtensions EnableDelayedExpansion | |
:forfiles | |
if "%~1"=="nul" ( | |
call :doit "%~2" | |
goto :EOF | |
) | |
:main | |
if "%~1"=="" ( | |
if not exist "%UserProfile%\SendTo\%~n0.lnk" ( |
This file contains 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
SetLocal EnableExtensions EnableDelayedExpansion | |
:main | |
echo Convert mvc to yt=sbsl rl=sbsr sbs=sbs2l rlq=sbs2r tab=ab2l ba=abr baq=ab2r ab=abl frameseq=alt lines=row arcd hdmi | |
echo Run "mvc2x.bat" without parameters to place it in "%UserProfile%\SendTo" | |
echo Send "c:\d\" to "mvc2x" | |
echo or drop it to "mvc2x.bat" | |
echo "c:\d\film\BD\BDMV\STREAM\00001.m2ts" and "c:\d\film\BD\BDMV\STREAM\00002.m2ts" will be used as mvc source | |
echo "c:\d\film\d.mkv" will be used as sound and metadata source | |
echo Then look at "c:\d\x\d.mkv" where x is you choose |
This file contains 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
SetLocal EnableExtensions EnableDelayedExpansion | |
:forfiles | |
if "%~1"=="nul" ( | |
call :doit "%~2" | |
goto :EOF | |
) | |
:main | |
if "%~1"=="" ( | |
if not exist "%UserProfile%\SendTo\%~n0.lnk" ( |
NewerOlder