Skip to content

Instantly share code, notes, and snippets.

View trishmapow's full-sized avatar
🐍
__import__('ctypes').string_at(0)

Christopher Malau trishmapow

🐍
__import__('ctypes').string_at(0)
View GitHub Profile
@trishmapow
trishmapow / obs-hwaccel.sh
Last active May 12, 2023 06:10 — forked from feedsbrain/ffmpeg-qsv.sh
Compiling FFMpeg with Intel Quick Sync in Ubuntu 20.04
#!/bin/bash
# Taken from: https://red-full-moon.com/make-hevc-qsv-env-first-half/
sudo apt update
sudo apt dist-upgrade
sudo apt install cmake make autoconf automake libtool g++ bison libpcre3-dev pkg-config libtool libdrm-dev xorg xorg-dev openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev libpciaccess-dev libfdk-aac-dev libvorbis-dev libvpx-dev libx264-dev libx265-dev ocl-icd-opencl-dev pkg-config yasm libx11-xcb-dev libxcb-dri3-dev libxcb-present-dev libva-dev libmfx-dev intel-media-va-driver-non-free opencl-clhpp-headers
mkdir ~/git && cd ~/git
git clone https://github.com/intel/libva
cd libva
@trishmapow
trishmapow / ubuntu-vnc-activate-remote.sh
Created December 15, 2022 02:06 — forked from samba/ubuntu-vnc-activate-remote.sh
Activate VNC support in Ubuntu, from command-line (for active sessions)
#!/bin/sh
# This assumes you have access to the system via SSH already, and need
# remote VNC access as the same user, and you want only the primary display.
export DISPLAY=:0
# Encoded password with http://www.motobit.com/util/base64-decoder-encoder.asp
export VNC_PASSWORD="dm5jX3Bhc3N3b3JkNzE=" # vnc_password71
export VNC_PASSWORD="dm5jX3Bhc3M=" # vnc_password (a character limit is enforced?)
# Sadly many common VNC clients don't support encryption.