Skip to content

Instantly share code, notes, and snippets.

@BtbN
BtbN / stdin
Created November 13, 2017 22:34
stdin
configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/configure b/configure
index 4418352d30..c8ca51e4e5 100755
--- a/configure
+++ b/configure
@@ -6485,6 +6485,7 @@ flatten_extralibs(){
list_name=$1
eval list=\$${1}
@BtbN
BtbN / stdin
Created November 10, 2017 20:56
stdin
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 679929cfc4..d7431bea32 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -2782,11 +2782,12 @@ fail:
av_freep(&avc);
}
-static const HWAccel *get_hwaccel(enum AVPixelFormat pix_fmt)
+static const HWAccel *get_hwaccel(enum AVPixelFormat pix_fmt, HWAccelID active_hwaccel_id)
@BtbN
BtbN / nameCommand.js
Created September 12, 2017 15:49
nameCommand.js
/*
* nameCommand.js
*
* This module returns a random name that was active in the last 10 minutes
*/
(function() {
var ACTIVITY_DELAY_TIME_MS = 10 * 60 * 1000;
$.bind('ircChannelMessage', function(event) {
var sender = event.getSender().toLowerCase();
@BtbN
BtbN / nameCommand.js
Created September 12, 2017 15:35
nameCommand.js
/*
* nameCommand.js
*
* This module returns a random name that was active in the last 10 minutes
*/
(function() {
var ACTIVITY_DELAY_TIME_MS = 10 * 60 * 1000;
$.bind('ircChannelMessage', function(event) {
var sender = event.getSender().toLowerCase();
@BtbN
BtbN / GetTwitchFollowers.gs
Created August 19, 2017 10:55
GetTwitchFollowers for Google App Script
function GetTwitchFollowers(channelName) {
var twitchApiOptions = {
'headers': {
'Accept': 'application/vnd.twitchtv.v5+json',
'Client-ID': 'ayb2n4px2z8t5iinjyvf1snlnw1sdw'
}
};
var idx = channelName.lastIndexOf('/');
if(idx !== -1)
channelName = channelName.substring(idx + 1);
// ==UserScript==
// @name ShutUpSearchEngines
// @namespace http://www.btbn.de
// @description Stops Chrome from adding random sites as search engines
// @include http://*/*
// @include https://*/*
// @version 1.0
// @downloadURL https://gist.githubusercontent.com/BtbN/98aeeb03b20bbd9fc68bac9310b4c6c5/raw
// @updateURL https://gist.githubusercontent.com/BtbN/98aeeb03b20bbd9fc68bac9310b4c6c5/raw
// ==/UserScript==
@BtbN
BtbN / main.c
Created May 10, 2017 12:30
main.c
#include <assert.h>
#include <stdint.h>
#include <smmintrin.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#define CACHED_BUFFER_SIZE 8192
@BtbN
BtbN / stdin
Created May 2, 2017 23:18
stdin
./usr/lib/libappindicator.so.1
./usr/lib/libvpx.so.1
./usr/lib/libappindicator.so.1.0.0
./usr/lib/libindicator.so.7
./usr/lib/libnm-util.so.2.3.0
./usr/lib/libnm-glib.so.4
./usr/lib/i386-linux-gnu/libSM.so.6
./usr/lib/i386-linux-gnu/libvulkan.so.1
./usr/lib/i386-linux-gnu/libssl3.so
./usr/lib/i386-linux-gnu/libgstapp-0.10.so.0
@BtbN
BtbN / log.txt
Created February 10, 2017 14:20
log.txt
ffmpeg version N-83470-gd6fb4135db Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.9.4 (Gentoo 4.9.4 p1.0, pie-0.6.4)
configuration: --enable-cuda --enable-cuvid --enable-libnpp --disable-doc --enable-nonfree --enable-gpl --enable-libx264 --extra-cflags=-I/opt/cuda/include --extra-ldflags=-L/opt/cuda/lib64 --enable-openal
libavutil 55. 46.100 / 55. 46.100
libavcodec 57. 77.100 / 57. 77.100
libavformat 57. 66.101 / 57. 66.101
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 73.100 / 6. 73.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
@BtbN
BtbN / compatcudadynlink_loader.h
Created October 7, 2016 17:45
compat/cuda/dynlink_loader.h