Skip to content

Instantly share code, notes, and snippets.

View Everlag's full-sized avatar
🎥
Stream@ Cloudflare

Kyle Boutette Everlag

🎥
Stream@ Cloudflare
View GitHub Profile
@Everlag
Everlag / exporter.js
Last active January 22, 2022 04:30
mtgtop8 xmage exporter
// Download an mtgtop8 decklist in a format compabible with xmage
//
// paste this into the dev console when viewing the .mwDeck
//
// Revision 2: includes a sideboard
sbindex = undefined; list = document.body.textContent.split('\n').filter((l)=> !l.includes('//')).map((l)=> l.replace(/\[.*\]\s/g, '').trim()); sbindex = list.findIndex(v => v.includes('SB')); list.splice(sbindex, 0, ''); list = list.map(v => v.replace(/SB:/, '').trim()); list = list.join('\n'); copy(list)
@Brainiarc7
Brainiarc7 / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Last active December 31, 2023 02:19
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools