#OpenSSL cheat sheet This is a brief howto for socket programmers.
ex: 1024bits length key pair:
$> openssl genrsa -out myprivate.pem 1024
$> openssl rsa -in myprivate.pem -pubout -out mypublic.pem
//Git Mergetool and difftool with Beyond Compare 4 | |
//For Windows | |
//IF running this command in git bash then escape $ with \ | |
git config --global diff.tool bc4 | |
git config --global difftool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\"" | |
git config --global difftool.prompt false | |
git config --global merge.tool bc4 | |
git config --global mergetool.bc4.cmd "\"C:/Program Files (x86)/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\"" | |
git config --global mergetool.bc4.trustExitCode true |
On Windows 7 - 32 Bit Install | |
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools | |
Developer Command Prompt for VS 2017 | |
Runs: %comspec% /k "C:\Program Files\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" | |
Sets: PROCESSOR_ARCHITECTURE=x86 | |
x64 Native Tools Command Prompt for VS 2017 (cl.exe doesn't run!) | |
Runs: %comspec% /k "C:\Program Files\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" |
@echo off | |
setlocal | |
for /F %%a IN ('echo %1^|findstr /R ^[0-9][0-9]*$') DO set arg1num=%%a | |
IF "%1"=="%arg1num%" ( | |
doskey /history | findstr /N /R .* | findstr /B %1: > %TEMP%\__history.tmp | |
FOR /F "delims=: tokens=1*" %%a IN (%TEMP%\__history.tmp) DO @echo %%b | |
) ELSE ( | |
IF "%1"=="" ( | |
doskey /history | findstr /N /R .* | |
) ELSE ( |
$sdkver = "10.0.14393.0" | |
$sdkdir = "${env:ProgramFiles(x86)}\Windows Kits\10" | |
$sdkincdir = "$sdkdir\Include\$sdkver" | |
$sdklibdir = "$sdkdir\Lib\$sdkver" | |
$vcdir = "${env:ProgramFiles(x86)}\Microsoft Visual Studio 14.0\VC" | |
$env:path += ";$vcdir\bin\amd64;$sdkdir\bin\amd64" | |
$env:include += ";$vcdir\include" ` | |
+ ";$sdkincdir\shared;$sdkincdir\ucrt;$sdkincdir\um;$sdkincdir\winrt" | |
$env:lib += ";$vcdir\lib\amd64;$sdklibdir\ucrt\x64;$sdklibdir\um\x64" | |
$env:libpath += "$vcdir\lib\amd64" |
@"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" %* |
The following XML enables to resolve this challenge. SetBuildDefaultEnvironmentVariables
is key of this.
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="ManualBuild" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PlatformToolset>v140</PlatformToolset> <!-- (Optional) only if want to explicitly specify platform toolset version -->
8.1
Create and Start Hotspot | |
netsh wlan set hostednetwork mode=allow ssid=MyHotspot key=MyPassword | |
Start Hotspot | |
netsh wlan start hostednetwork | |
Stop Hotspot | |
netsh wlan stop hostednetwork |