Skip to content

Instantly share code, notes, and snippets.

@regtm
regtm / dloag_ipython_quick_fix
Created September 18, 2022 19:48
Dload ipython quick fix
"""
dload - Download Library
A python library to simplify your download tasks.
~~~~~~~~~~~~~~~~~~~~~
"""
import os, sys, time
import re
from contextlib import closing
CREATE TABLE user_roles (
uid UUID PRIMARY KEY,
role TEXT
);
-- this helper function returns the current claims set by the db_pre_request function
CREATE OR REPLACE FUNCTION req()
RETURNS "jsonb"
LANGUAGE "sql"
STABLE
@regtm
regtm / gist:1e2e82874df342443fccb7b86f8c24c2
Created June 30, 2024 16:54
[drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout
[23150.766441] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[23150.780938] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[23150.795110] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
[25392.494050] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=1705490, emitted seq=1705492
[25392.494227] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process gnome-shell pid 2666 thread gnome-shel:cs0 pid 2705
[25392.494364] amdgpu 0000:14:00.0: amdgpu: GPU reset begin!
[25392.620891] amdgpu 0000:14:00.0: amdgpu: MODE2 reset
[25392.627851] amdgpu 0000:14:00.0: amdgpu: GPU reset succeeded, trying to resume
[25392.627995] [drm] PCIE GART of 1024M enabled (table at 0x000000F41FC00000).
[25392.628053] amdgpu 0000:14:00.0: amdgpu: PSP is resuming...
Here is a simple flow chart:
```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```