As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & |
| #source ./export_env_file.sh ./.env | |
| set -o allexport | |
| . $1 | |
| set +o allexport |
| # Install GeoServer on cloud server | |
| ________________ | |
| ## 1. Install Java JDK | |
| apt install openjdk-11-jdk | |
| You can check the installation using `$ java -version`. Now you can see something like this: | |
| openjdk version "11.0.7" 2020-04-14 |
| import requests | |
| import json | |
| REQ_TEMPLATE = '''<?xml version="1.0" encoding="UTF-8"?> | |
| <GeoServerLayer> | |
| <enabled>true</enabled> | |
| <inMemoryCached>true</inMemoryCached> | |
| <name>{}</name> | |
| <metaWidthHeight> | |
| <int>2</int> |
A debugpy version inspired by this gist: https://gist.github.com/NicolaiMogensen/acfd8723720c4761aefef3cdfc2aa55a
NOTE: I'm using VS Code Python extension version 2022.20.2, which has PyLance as language server.
The most recent versions of the extension use debugpy debugger.
For simplicity I start VS Code directly from the plugin folder.
A generic version built on top of https://gist.github.com/giohappy/8a30f14678aa7e446f9b694c632d7089
NOTE: I'm using VS Code Python Debugger extension version v2024.10.0 (ms-python.debugpy), which uses debugpy.
For simplicity I start VS Code directly from the plugin folder. We could symlink to avoid polluting the folder with out configurations...
My setup uses Ubuntu 22.04 running on Windows WSL2, which suppots executing GUI applications.
NOTE: I'm using VS Code Python Debugger extension version v2024.12.0 (ms-python.debugpy), which uses debugpy.
In my setup I'm running QGIS built from source, following the official instructions.
My build is under /home/giohappy/dev/qgis/QGIS/build.