- Open powershell with admin and run
wsl --install
- Enable virtualization in the BIOS if needed
- Open the windows store and install
Ubuntu 24
- Run Ubuntu, create your user + password
- Run
mkdir dev
- Run
explorer.exe .
to open an explorer window, create a shortcut of thedev
folder and place it in My Documents - Install Windows Terminal
- Run Windows Terminal, go to
Settings
and change theDefault profile
toUbuntu 24
, change the
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
APPIMAGE_URL="https://github.com/OpenShot/openshot-qt/releases/download/v3.2.1/OpenShot-v3.2.1-x86_64.AppImage" | |
APPIMAGE_NAME="OpenShot-v3.2.1-x86_64.AppImage" | |
ICON_SOURCE="squashfs-root/usr/share/icons/hicolor/scalable/apps/openshot-qt.svg" |
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
{ | |
"profiles": { | |
"__Default_Settings__": { | |
"removeHiddenElements": true, | |
"removeUnusedStyles": true, | |
"removeUnusedFonts": true, | |
"removeFrames": false, | |
"blockScripts": true, | |
"blockVideos": true, | |
"blockAudios": true, |
If you have this error using python3.12
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/lib/python3/dist-packages/pip/__main__.py", line 16, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
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
sudo apt-get install -y --no-recommends thunar | |
xdg-mime default thunar.desktop inode/directory application/x-gnome-saved-search |
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
pip list --disable-pip-version-check --outdated --format=columns | tail -n +3 | awk '{print $1}' | xargs -n1 pip install -U || true | |
# explanations : | |
# pip list --disable-pip-version-check --outdated --format=columns : print as a column format only the outdated dependencies, and suppress the warning if pip is outdated as it messes up the output | |
# tail -n +3 : keep only the lines after the first two | |
# awk '{print $1}' : keep only the first column | |
# xargs -n1 pip install -U || true : install each dependency, never fails via the || true (to use in a CI or script env) |
Keywords : flask, gunicorn, apache2, send_file, werkzeug, requests, httpx, curl
curl: (18) transfer closed with 9895632 bytes remaining to read
urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(206700544 bytes read, 789007589 more expected)', IncompleteRead(206700544 bytes read, 789007589 more expected))
httpcore.RemoteProtocolError: peer closed connection without sending complete message body (received 290521088 bytes, expected 995708133)
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
if [ -d "${HOME}/.mozilla/firefox" ]; then | |
FIREFOX_PROFILES="${HOME}/.mozilla/firefox" | |
elif [ -d "${HOME}/snap/firefox/common/.mozilla/firefox" ]; then | |
FIREFOX_PROFILES="${HOME}/snap/firefox/common/.mozilla/firefox" |
NewerOlder