install dotenv package:
npm install --save dotenvfile: quasar.conf.js
build: {| " GREAT CONFIGURATION VIDEO: https://youtu.be/XA2WjJbmmoM | |
| " BASIC SETUP: | |
| " enter the current millenium | |
| set nocompatible | |
| " enable syntax and plugins (for netrw) | |
| syntax enable | |
| filetype plugin on |
| # nice blog post: https://www.artificialworlds.net/blog/2017/06/09/python-printing-utc-dates-in-iso8601-format-with-time-zone/ | |
| import time | |
| from datetime import datetime, timezone | |
| timeNow = time.time() | |
| print("local time without timezone ",datetime.fromtimestamp(timeNow).isoformat()) | |
| print("local time with timezone ",datetime.fromtimestamp(timeNow).astimezone().isoformat()) | |
| print("UTC time with timezone ",datetime.fromtimestamp(timeNow, tz=timezone.utc).isoformat()) |
| { | |
| "shortcuts": [ | |
| { | |
| "command": "runmenu:restart-and-run-all", | |
| "keys": [ | |
| "Shift Backspace" | |
| ], | |
| "selector": "[data-jp-code-runner]" | |
| }, | |
| { |
| import logging | |
| import time | |
| from pprint import pformat | |
| # pretty print logs: https://stackoverflow.com/a/11093247/5628238 | |
| # pformat indent: https://stackoverflow.com/a/29469358/5628238 | |
| # (even needed when using %s string format): do not evaluate complex pformat when log level not printed: https://docs.python.org/3/library/logging.html#logging.Logger.isEnabledFor | |
| # (wrong: complex variable string takes time nevertheless): https://reinout.vanrees.org/weblog/2015/06/05/logging-formatting.html | |
| # https://stackoverflow.com/questions/13131400/logging-variable-data-with-new-format-string | |
| # main script or module |
install dotenv package:
npm install --save dotenvfile: quasar.conf.js
build: {wsl --set-default-version 2Add-AppxPackage .\app_name.appx (choose ubuntu.appx file)wsl -l -v => wsl --setdefault <DistributionName>repo: https://github.com/kynan/nbstripout
install in wsl:
sudo apt update
sudo apt install python3-pip
pip3 install --upgrade nbstripout
check user and group of host user: https://kb.iu.edu/d/adwf
id -u <username>
id -g <username>
# (most times both 1000)
# show all just used id commandid
| // example .devcontainer/devcontainer.json | |
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | |
| // https://github.com/microsoft/vscode-dev-containers/tree/v0.231.6/containers/go | |
| { | |
| "name": "Go", | |
| "build": { | |
| "dockerfile": "Dockerfile", | |
| "args": { | |
| // Update the VARIANT arg to pick a version of Go: 1, 1.18, 1.17 | |
| // Append -bullseye or -buster to pin to an OS version. |
| [MASTER] | |
| # A comma-separated list of package or module names from where C extensions may | |
| # be loaded. Extensions are loading into the active Python interpreter and may | |
| # run arbitrary code. | |
| extension-pkg-allow-list= | |
| # A comma-separated list of package or module names from where C extensions may | |
| # be loaded. Extensions are loading into the active Python interpreter and may | |
| # run arbitrary code. (This is an alternative name to extension-pkg-allow-list |