Skip to content

Instantly share code, notes, and snippets.

View yobome's full-sized avatar
Focusing

BebopFox🦊 yobome

Focusing
View GitHub Profile
@awesomebytes
awesomebytes / nvidia_cuda_fail_workaround.md
Last active May 16, 2023 09:21
Nvidia CUDA driver not working after suspend or hibernation workaround

How to reset the GPU to use CUDA after suspend or hibernation

I needed to do:

sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm

From the nvidia forums.

I also got the following error fixed (docker-nvidia related) with these commands:

@buptczq
buptczq / detect.py
Last active January 30, 2022 06:39
QQ URL detect
import hashlib
import struct
import sqlite3
def md5hash(buf):
return hashlib.md5(buf.encode("utf-16")[2:]).digest()
def md5cmp(buf, postfix, a1, a2, a3, a4):
if len(buf) < postfix:
return False