Skip to content

Instantly share code, notes, and snippets.

@mattli001
mattli001 / qdk2_list.txt
Created March 16, 2017 01:42
qdk2 file list
dpkg -L qdk2
/.
/etc
/etc/bash_completion.d
/etc/bash_completion.d/qdk2
/usr
/usr/bin
/usr/bin/qpkg_encrypt
/usr/bin/qdk2
/usr/share
@mattli001
mattli001 / provider.hlsjs.js
Created March 15, 2017 06:24
provider.hlsjs.js
webpackJsonpjwplayer([1], {
13: function(e, t, r) {
var i, a;
i = [r(1), r(14), r(2), r(19), r(18)], a = function(e, t, r, i, a) {
function n(t) {
if (this._currentTextTrackIndex = -1, t) {
if (this._textTracks ? (this._textTracks = e.reject(this._textTracks, function(e) {
if (this.renderNatively && "nativecaptions" === e._id) return delete this._tracksById[e._id], !0
}, this), delete this._tracksById.nativemetadata) : this._initTextTracks(), t.length) {
var i = 0,
@mattli001
mattli001 / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Created September 10, 2016 00:24 — forked from Brainiarc7/VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

@mattli001
mattli001 / git_find_largefiles.sh
Created August 30, 2016 03:41
find large files in this git.
#!/bin/bash
#set -x
# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see https://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output
@mattli001
mattli001 / client.html
Created April 13, 2016 03:41 — forked from ericremoreynolds/client.html
Flask-socket.io emit to specific clients
<html>
<body>
<h1>I feel lonely</h1>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/socket.io.min.js"></script>
<script type="text/javascript" charset="utf-8">
var socket = io.connect('http://' + document.domain + ':' + location.port);
socket.on('connect', function() {
socket.emit('connected');