Install an Ubuntu version from Microsoft Store.
- Ubuntu - Ubuntu (latest)
- Ubuntu 18.04 - Ubuntu 18.04
- Ubuntu 16.04 - Ubuntu 16.04
Please check out the Windows 10 Installation Guide written by Microsoft itself.
Install an Ubuntu version from Microsoft Store.
Please check out the Windows 10 Installation Guide written by Microsoft itself.
| #!/bin/bash | |
| PS_VERSON=1.7.5.1 | |
| prompt_confirm() { | |
| while true; do | |
| read -r -n 1 -p "${1:-Continue?} [y/n]: " REPLY | |
| case $REPLY in | |
| [yY]) echo ; return 0 ;; | |
| [nN]) echo ; return 1 ;; |
| # Getting a random free tcp port in python using sockets | |
| def get_free_tcp_port(): | |
| tcp = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| tcp.bind(('', 0)) | |
| addr, port = tcp.getsockname() | |
| tcp.close() | |
| return port |
| from email.mime.text import MIMEText | |
| import smtplib | |
| gmail_username = 'username@gmail.com' | |
| recipients = 'recipient@example.com' | |
| # https://en.wikipedia.org/wiki/List_of_SMS_gateways | |
| # 10DigitNumber@text.att.net for AT&T | |
| # 10DigitNumber@vtext.com for Verizon | |
| msg = MIMEText('This is the body of the message.') |
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |