Notes
local browser https
Section titled “local browser https”netsh http show sslcertnetsh http delete sslcert ipport=0.0.0.0:44300netsh http add sslcert ipport=0.0.0.0:443 certhash=dc117a4d4960291642cb4326669151eadc5ceaf9 appid={214124cd-d05b-4309-9af9-9caa44b2b74a}net stop httpnet start httpCreate react app run https
Section titled “Create react app run https”Windows (cmd.exe)#set HTTPS=true&&npm start(Note: the lack of whitespace is intentional.)
Windows (Powershell)#($env:HTTPS = "true") -and (npm start)($env:HTTPS = "true") -and (npm run dev)
Linux, macOS (Bash)#HTTPS=true npm startssh key generator
ssh-keygen -t ed25519 -C "[email protected]"ssh-keygen -t rsa -b 4096 -C "[email protected]"git remote add origin https://[email protected]/alexvsone/LMSEmailNotification/_git/LMSEmailNotificationgit push -u origin --all
git format-patch -M mastergit format-patch [commit ID]git apply --checkgit am -3 xxx.patchgit apply --reject xxx.patchgit add .git am --resolved(new URL(location)).searchParams.get('tenancy');netstat -p tcp -ano | findstr :10000iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.listecho -e "NODE_ENV=production \nPORT=3000 " >> .envOpenssl
Section titled “Openssl”openssl x509 -text -noout -in cert.pem
openssl req -x509 -newkey rsa:4096 -keyout private.pem -out certificate.pem -days 3650openssl pkcs12 -export -in certificate.pem -inkey private.pem -out certificate.pfx
1- Generating a Private Key:
openssl genrsa -aes256 -out private_key.pem 2048
2- Generating a Public Key:
openssl rsa -pubout -in private_key.pem -out public_key.pem
openssl pkcs12 -export -in public_key.pem -inkey private_key.pem -out certificate_qa.pfx
openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl x509 -inform PEM -in rsa_private.pem -outform DER -out rsa_private.cer
openssl x509 -inform PEM -in rsa_cert.pem -outform DER -out rsa_cert.cer
openssl req -x509 -nodes -newkey rsa:2048 -keyout rsa_private.pem -out rsa_cert.pem -days 3650
openssl req -x509 -sha256 -newkey rsa:2048 -keyout rsa_private.pem -out rsa_cert.pem -subj "/CN=unused" -days 3650
openssl pkcs12 -in rsa_cert.pfx -inkey rsa_private.pem -out rsa_cert.cer -nodes
openssl pkcs12 -export -inkey rsa_private.pem -out rsa_cert_no.pfx
openssl req -x509 -sha256 -newkey rsa:2048 -keyout rsa_private.pem -out rsa_cert.pem -subj "/CN=unused" -days 3650openssl pkcs12 -export -in rsa_cert.pem -inkey rsa_private.pem -out rsa_cert.pfx
openssl req -x509 -newkey rsa:2048 -keyout rsa_private.pem -out rsa_cert.pem -subj "/CN=unused" -days 3650openssl pkcs12 -export -in rsa_cert.pem -inkey rsa_private.pem -CSP "Microsoft Enhanced RSA and AES Cryptographic Provider" -out rsa_cert.pfxWITS-Screen
Section titled “WITS-Screen”sudo docker run --name wits-screen --volume="$PWD:/usr/src/app" -w /usr/src/app -p 80:3000 -d node:alpine3.12 /bin/sh -c "npm run release"anaconda
Section titled “anaconda”The issue ‘jupyter’ is not recognized as an internal or external command is mainly due to no path or wrong path of jupyter in windows environment variables. In my case related files were available in C:\ProgramData\Anaconda3\Scripts and so i have added this path in Windows as shown below and then you can run from any path: One important thing: after that while running jupter notebook from any location may give DLL Error. You have to first give command activate base and then jupyter notebook.
jupyter lab