You can install or move WSL distros to a different partition like this:
- Download
.appx
file (e.g., Ubuntu). - Extract it to D:\WSL\Ubuntu using
Expand-Archive
.
# Set CRAN mirror | |
options(repos = c(CRAN = "https://cloud.r-project.org")) | |
# Install optparse if not already installed | |
if (!requireNamespace("optparse", quietly = TRUE)) { | |
install.packages("optparse") | |
} | |
library(optparse) |
# filterjson.py | |
#! /usr/bin/env python3 | |
# python script to extract key, value pair from a json based using a text file with keys as filter | |
# | |
# contents.json | |
# { | |
# "031648494230": "ETUI-JNredServices-PrivateLink-Prod", | |
# "230148474224": "ETUI-JNSPlanningViewer-Test", | |
# "432541444253": "ETUI-JNCOE-Dev", |
wsl hostname -I
netsh interface portproxy add v4tov4 listenport=8000 listenaddress=0.0.0.0 connectport=8000 connectaddress=172.17.225.2
netsh interface portproxy add v4tov4 listenport=4443 listenaddress=0.0.0.0 connectport=4443 connectaddress=172.17.225.2
# extract all the links from firefox bookmarks export | |
# the following uses grep to get both http, https url | |
# then uses sed - non-greedy match to extract the link alone | |
grep 'HREF="http' bookmarks.html | sed -e 's,.*HREF="\([^"]*\)".*,\1,g' | sort | less | |
# replace a bunch of lines in the middle of a file with ... blah ... | |
cat 40lines.txt | sed -e '6,34d; 35{i ... blah ...' -e 'd}' | |
cat 40lines.txt | sed -e '6,33d; 34,36s,.*,,;35s// ... blah .../' |
https://rasa.com/docs/rasa/docker/building-in-docker/
docker run --user $(id -u):$(id -g) -v $(pwd):/app rasa/rasa:3.4.0-full init --no-prompt
docker run -it --user $(id -u):$(id -g) -v $(pwd):/app rasa/rasa:3.4.0-full shell