This file contains 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
#!/bin/bash | |
WINDOWS_USER="<windows_user>" | |
sudo apt update | |
sudo apt install build-essential flex bison libssl-dev libelf-dev bc libncurses-dev autoconf libudev-dev libtool dwarves -y | |
WSLKERNEL=$(uname -a | cut -d " " -f3 | cut -d "-" -f1) | |
CHECKOUT_DIR="linux-msft-wsl-${WSLKERNEL}" | |
export WSLKERNEL | |
export CHECKOUT_DIR | |
export WINDOWS_USER |
This file contains 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
# Enable automated data access under https://postmaster.live.com/snds/auto.aspx | |
import datetime | |
import requests | |
import shutil | |
DATA_URL = 'https://postmaster.live.com/snds/data.aspx?key=xx' | |
for i in range(90): | |
date = datetime.datetime.now() + datetime.timedelta(-i) |