# install dependecies
apt-get install qemu qemu-user-static binfmt-support
# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest
# extract raspbian image
unzip raspbian_latest| def splitData(df, trainPerc=0.6, cvPerc=0.2, testPerc=0.2): | |
| """ | |
| return: training, cv, test | |
| (as pandas dataframes) | |
| params: | |
| df: pandas dataframe | |
| trainPerc: float | percentage of data for trainin set (default=0.6 | |
| cvPerc: float | percentage of data for cross validation set (default=0.2) | |
| testPerc: float | percentage of data for test set (default=0.2) | |
| (trainPerc + cvPerc + testPerc must equal 1.0) |
These comments are based on a few years of experience working with WSL. It's based on this tutorial:
https://blog.ropnop.com/configuring-a-pretty-and-usable-terminal-emulator-for-wsl/
And are basically updates to make it more relevant.
In the past, to make the WSL run a command from cmd or somewhere else, you had to run the bash.exe program from windows, which fired up bash (and always bash) in the WSL and made it execute a command.
My domain is registered on cloudflare.
So go to https://dash.cloudflare.com/profile/api-tokens to either use global key
or better create a new api key for a specific zone with zone dns edit permissions.
Copy that token you just created. Go back to dashboard, click on the domain you want to use
bottom right corner copy the zone id.
Acme Client I have used
https://github.com/acmesh-official/acme.sh
| #cloud-config | |
| package_upgrade: true | |
| ssh_authorized_keys: | |
| - <your key> | |
| packages: | |
| - apt-transport-https | |
| - ca-certificates | |
| - curl |