Skip to content

Instantly share code, notes, and snippets.

View connesy's full-sized avatar

Stefan Mejlgaard connesy

View GitHub Profile
@connesy
connesy / cuda_11.8_installation_on_Ubuntu_22.04
Created October 19, 2023 07:32 — forked from agentcoops/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on (wsl) Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@connesy
connesy / toggle_notebook_warnings.py
Created September 20, 2022 13:10
Toggle warnings in VSCode notebook
from IPython.display import HTML
script = """
<script>
var code_show_err = false;
var code_toggle_err = function(){
var stderrNodes = document.querySelectorAll('[output-mime-type="application/vnd.code.notebook.stderr"]')
var stderr = Array.from(stderrNodes)
if (code_show_err) {
stderr.forEach(ele => ele.style.display = 'block');

Keybase proof

I hereby claim:

  • I am connesy on github.
  • I am connesy (https://keybase.io/connesy) on keybase.
  • I have a public key ASBiUS7veKIrT4FaBteow5T3wZi9LyaqNLID117i9Jv6hAo

To claim this, I am signing this object: