Skip to content

Instantly share code, notes, and snippets.

View crabhi's full-sized avatar

Filip Sedlák crabhi

  • 13:44 (UTC +02:00)
View GitHub Profile

Install PyTorch 2.0.1 on Ubuntu 22.04

...from wheel

Install CUDA repo from Nvidia

(Ubuntu has CUDA 11.5, PyTorch wheels need 11.7)

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-ubuntu2204.pin
@crabhi
crabhi / pg-test.py
Created August 9, 2022 11:26
Quick and dirty check that Postgres database didn't lose acknowledged data
#!/usr/bin/env python3
"""
CREATE TABLE t1 (id SERIAL PRIMARY KEY, val INT, date TIMESTAMPTZ DEFAULT NOW());
CREATE INDEX t1_val ON t1 (val);
"""
import logging
import sys
import time

Keybase proof

I hereby claim:

  • I am crabhi on github.
  • I am sedlakf (https://keybase.io/sedlakf) on keybase.
  • I have a public key ASD9FhLjZN-RTBsOyfrf6mX1jECCiXWQkjrVjjk_jRYz2Qo

To claim this, I am signing this object: