Skip to content

Instantly share code, notes, and snippets.

@sn99
sn99 / main.py
Created May 25, 2022 05:10
major
from math import log10, sqrt
import cv2
import numpy as np
from skimage.metrics import structural_similarity
from piqa import ssim
from PIL import Image
from tqdm import tqdm
from pytorch_msssim import ssim, ms_ssim, SSIM, MS_SSIM
import torchvision
from brisque import BRISQUE
@sn99
sn99 / .vimrc
Created February 6, 2021 09:31
My vim settings
set nu
set tabstop=8
set mouse=a
set autoindent
set smartindent
set cindent
set spell
hi clear SpellBad
hi SpellBad cterm=underline
hi SpellBad gui=undercurl
watch -n1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""
soldier_0.20201210.0
soldier_0.20201210.0/files
soldier_0.20201210.0/files/.ref
soldier_0.20201210.0/files/bin
soldier_0.20201210.0/files/bin/X11
soldier_0.20201210.0/files/bin/[
soldier_0.20201210.0/files/bin/addpart
soldier_0.20201210.0/files/bin/arch
soldier_0.20201210.0/files/bin/awk
soldier_0.20201210.0/files/bin/b2sum
soldier_0.20201210.0
soldier_0.20201210.0/files
soldier_0.20201210.0/files/.ref
soldier_0.20201210.0/files/bin
soldier_0.20201210.0/files/bin/X11
soldier_0.20201210.0/files/bin/[
soldier_0.20201210.0/files/bin/addpart
soldier_0.20201210.0/files/bin/arch
soldier_0.20201210.0/files/bin/awk
soldier_0.20201210.0/files/bin/b2sum
pressure-vessel-wrap[4835]: Original argv:
pressure-vessel-wrap[4835]: 0: '/home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-wrap'
pressure-vessel-wrap[4835]: 1: '--env-if-host=PATH=/home/sn99/.cargo/bin:/usr/bin/haswell:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/3rd-party/bin'
pressure-vessel-wrap[4835]: 2: '--'
pressure-vessel-wrap[4835]: 3: 'steam-runtime-system-info'
pressure-vessel-wrap[4835]: 4: '--verbose'
pressure-vessel-wrap[4835]: Current working directory:
pressure-vessel-wrap[4835]: Physical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[4835]: Logical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[4835]: Environment variables:
@sn99
sn99 / container.log
Created January 3, 2021 12:45
steam-soldier-container-log
pressure-vessel-wrap[36311]: Original argv:
pressure-vessel-wrap[36311]: 0: '/home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier/pressure-vessel/bin/pressure-vessel-wrap'
pressure-vessel-wrap[36311]: 1: '--env-if-host=PATH=/home/sn99/.cargo/bin:/usr/bin/haswell:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/3rd-party/bin'
pressure-vessel-wrap[36311]: 2: '--'
pressure-vessel-wrap[36311]: 3: 'steam-runtime-system-info'
pressure-vessel-wrap[36311]: 4: '--verbose'
pressure-vessel-wrap[36311]: Current working directory:
pressure-vessel-wrap[36311]: Physical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[36311]: Logical: /home/sn99/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier
pressure-vessel-wrap[36311]: Environment variables:
@sn99
sn99 / steam
Created January 3, 2021 10:30
steam-system-info
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 4800H with Radeon Graphics
CPU Family: 0x17
DRI_PRIME=1 sudo ryzen-controller --no-sandbox
update-desktop-database ~/.local/share/applications/
sudo gtk-update-icon-cache -f /usr/share/icons/hicolor/