Skip to content

Instantly share code, notes, and snippets.

@sharl
Created March 21, 2023 10:27
Show Gist options
  • Save sharl/945868742ae21d25d331fdd2e84f8759 to your computer and use it in GitHub Desktop.
Save sharl/945868742ae21d25d331fdd2e84f8759 to your computer and use it in GitHub Desktop.
update-cuda-repo-wsl-ubuntu.sh
#!/bin/bash
# -*- coding: utf-8 -*-
echo 'rm -f ./*.deb'
curl -s https://developer.nvidia.com/cuda-downloads | pup | \
sed -e 's/.*jQuery.extend(Drupal.settings,\(.*\));/\1/p;d' | \
jq -r '.cuda_download_pages.releases["Linux/x86_64/WSL-Ubuntu/2.0/deb_local"].details' | \
pup '.cudaBashBlock text{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment