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
| Export-StartLayout -Path "C:\Ins\StartLayout.xml" | |
| gpedit.msc | |
| Конфигурация пользователя | |
| Административные шаблоны | |
| Меню Пуск и панель задач | |
| Макет начального экрана | |
| Включить | |
| C:\Ins\StartLayout.xml |
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
| git clone https://github.com/openwrt-xiaomi/xmir-patcher | |
| cd xmir-patcher | |
| run.bat | |
| Вижу | |
| Xiaomi MiR Patcher | |
| Ставлю свой айпи 192.168.31.189 | |
| Жму: | |
| 2 - Connect to device (install exploit) |
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-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
| Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
| Invoke-RestMethod : Запрос был прерван: Не удалось создать защищенный канал SSL/TLS. | |
| строка:1 знак:1 | |
| + Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression | |
| + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException | |
| + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand |
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
| - "Ой, Галя, не с того я начала..." | |
| Прежде чем ТБ видеофайл на окно MMP глянь формат записи этого медиафайла и создай адекватный проект. |
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
| #Иногда простые для юниксоидов вещи ставят виндовсоидов в тупик: | |
| #Простое вроде дело при наличии 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 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
| 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 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
| У меня есть 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 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
| # 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 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
| ;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 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
| 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 | |
| } |
NewerOlder