Skip to content

Instantly share code, notes, and snippets.

@3dsf
3dsf / processVideo.py
Created June 26, 2021 04:46
ffmpeg-python tensorflow implementation --- go to processFrame()
#!/usr/bin/python3
#modified ffmpeg-python tensorflow implentation from https://github.com/kkroening/ffmpeg-python/blob/master/examples/tensorflow_stream.py
### pip install ffmpeg-python numpy
import os
import subprocess # required for ffmpeg-python
import logging as logger # you could clean out the logger if you like
import ffmpeg # ffmpeg-python
import numpy as np # required for ffmpeg-python
@3dsf
3dsf / F36_nvcc_Install.sh
Last active April 2, 2023 14:16
F36 install nvidia-driver/cuda with nvcc and matching gcc
#!/bin/sh
# Install Nvidia drivers with nvcc and build GCC 11 for nvcc
# Uses nvidia fedora repo 35 as the fedora 36 does not have a compatible gcc
# This should not hinder the install, until nvidia fedora repo is no longer supported EOL F35?
# This script is written for fresh installs
work_dir=/tmp/gcc/build
install_dir=/opt/gcc-11
@3dsf
3dsf / F36_nvidiaWayland_grubFile
Created June 17, 2022 06:44
Fedora 36 nvidia grub file with wayland enalbled
echo 'GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet rd.driver.blacklist=nouveau nvidia-drm.modeset=1"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true' | sudo tee /etc/default/grub
@3dsf
3dsf / sGram.py
Last active April 9, 2023 05:21
A python stereogram generator
#!/usr/bin/env python3
'''
u/3dsf
d88P Y88b
888 888
.d8888b 888 888d888 8888b. 88888b.d88b.
88K 888 88888 888P" "88b 888 "888 "88b
"Y8888b. 888 888 888 .d888888 888 888 888
X88 Y88b d88P 888 888 888 888 888 888