Skip to content

Instantly share code, notes, and snippets.

@BtbN
BtbN / configuration.xml
Created June 13, 2018 18:26
Office 2016 Professional Plus Retail No-Bullshit Config for deployment tool
<Configuration>
<Add OfficeClientEdition="64" Channel="Monthly" Branch="Current">
<Product ID="ProPlusRetail">
<Language ID="de-de" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="Outlook" />
<ExcludeApp ID="InfoPath" />
<ExcludeApp ID="Groove" />
#!/usr/bin/env python3
import os
import sys
import time
import signal
from twitch import TwitchClient
os.chdir(os.path.dirname(os.path.abspath(__file__)))
class AlarmException(Exception):
@BtbN
BtbN / Makefile
Created December 15, 2017 20:23
Makefile
PREFIX = /usr/local
LIBDIR = lib
INSTALL = install
SED = sed
all:
$(SED) 's#@@PREFIX@@#$(PREFIX)#' ffnvcodec.pc.in > ffnvcodec.pc
install: all
$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
@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