What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-15 23:14:01
force asp.net https
Use the NWebSec.Owin NuGet package and add the following line of code to enable Strict Transport Security accross the site. Dont forget to add the Preload directive below and submit your site to the HSTS Preload site. More information here and here.... Add solution -
Other 2021-09-15 06:03:02
how to connect to smtp server of the gmail securely
const nodemailer = require('nodemailer');const transporter = nodemailer.createTransport({ host: 'smtp.gmail.com', port: 587, auth: { user: '[email protected]', pass: 'yourpassword', },});transporter.verify().then(console.log).catch(console.err... Add solution -
Other 2021-09-13 21:11:02
brave browser
sudo apt install apt-transport-https curl curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - echo "deb [arch=amd64] https://brave-browser-apt-release... Add solution -
Java 2021-09-13 18:21:01
wsdl soap example java
<?xml version="1.0" encoding="UTF-8"?> <definitions <!-- namespace declarations --> targetNamespace="http://server.ws.soap.baeldung.com/" name="CountryServiceImplService"> <types> ... Add solution -
Python 2021-09-11 05:31:05
how to remove emoji from text in python
import re txt = 'He is so happy (smiley emoji)' # <-- grepper doesn't support emoji, so just assume it has def deEmojify(text): regrex_pattern = re.compile(pattern = "[" u"\U0001F600-\U0001F64F" # emoticons u&qu... Add solution -
Shell/Bash 2021-09-11 00:13:04
install docker debian 10
# Install docker sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.do... Add solution