Skip to content

Instantly share code, notes, and snippets.

@rojnwa
rojnwa / fix_codium.py
Created August 2, 2020 00:50
Reverts to the old marketplace in VSCodium
import json
file_path = "/usr/share/vscodium-bin/resources/app/product.json"
with open(file_path, "r") as f:
config = json.load(f)
config["extensionsGallery"]["serviceUrl"] = "https://marketplace.visualstudio.com/_apis/public/gallery"
config["extensionsGallery"]["cacheUrl"] = "https://vscode.blob.core.windows.net/gallery/index"
config["extensionsGallery"]["itemUrl"] = "https://marketplace.visualstudio.com/items"
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active February 20, 2025 20:55
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local