Skip to content

Instantly share code, notes, and snippets.

@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
@BtbN
BtbN / stdin
Created October 7, 2016 11:14
stdin
diff --git a/libavfilter/vf_hwupload_cuda.c b/libavfilter/vf_hwupload_cuda.c
index 94cfe97..8e15c7b 100644
--- a/libavfilter/vf_hwupload_cuda.c
+++ b/libavfilter/vf_hwupload_cuda.c
@@ -16,11 +16,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <cuda.h>
-
@BtbN
BtbN / etcapache2modules.d75_letsencrypt.conf
Created September 29, 2016 13:27
/etc/apache2/modules.d/75_letsencrypt.conf
Alias /.well-known/acme-challenge /home/letsencrypt/www-root/.well-known/acme-challenge
ProxyPassMatch ^/\.well-known/acme-challenge !
<Directory /home/letsencrypt/www-root/.well-known/acme-challenge>
<RequireAny>
Require all granted
</RequireAny>
</Directory>
<Location /.well-known/acme-challenge>
@BtbN
BtbN / hook.sh
Created September 26, 2016 15:53
hook.sh
#!/bin/bash
function deploy_challenge {
# This hook is called once for every domain that needs to be
# validated, including any alternative names you may have listed.
#
# Parameters:
# - DOMAIN
# The domain name (CN or subject alternative name) being
# validated.
@BtbN
BtbN / log.txt
Created September 18, 2016 20:06
log.txt
ffmpeg version N-81700-g85725c7 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.3 (Gentoo 4.9.3 p1.5, 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
libavutil 55. 29.100 / 55. 29.100
libavcodec 57. 57.100 / 57. 57.100
libavformat 57. 49.100 / 57. 49.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 62.100 / 6. 62.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
@BtbN
BtbN / slevermann.de.zone
Created September 16, 2016 14:01
slevermann.de.zone
$ORIGIN .
$TTL 86400 ; 1 day
slevermann.de IN SOA ns1.btbn.de. hostmaster.slevermann.de. (
2016000100 ; serial
10800 ; refresh (3 hours)
1800 ; retry (30 minutes)
1209600 ; expire (2 weeks)
86400 ; minimum (1 day)
)
NS ns1.btbn.de.
@BtbN
BtbN / stdin
Created September 6, 2016 19:56
stdin
BEGIN /tmp/ffconf.jKgmZhG6.c
1 extern int cuvidCreateDecoder();
2 int main(void){ cuvidCreateDecoder(); }
END /tmp/ffconf.jKgmZhG6.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I/opt/cuda/include -std=c99 -fomit-frame-pointer -pthread -c -o /tmp/ffconf.JcCrD4XB.o /tmp/ffconf.jKgmZhG6.c
gcc -L/opt/cuda/lib64 -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.CD0ECKK7 /tmp/ffconf.JcCrD4XB.o -lcuda -lcuda -lm -llzma -lbz2 -lz -pthread
/tmp/ffconf.JcCrD4XB.o: In function `main':
ffconf.jKgmZhG6.c:(.text+0xa): undefined reference to `cuvidCreateDecoder'
collect2: error: ld returned 1 exit status
ERROR: CUVID not found
@BtbN
BtbN / stdin
Created August 31, 2016 09:07
stdin
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 8153fde..20c85ce 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -251,7 +251,8 @@ void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4
#define EXPAND(compn) \
if (desc->comp[compn].depth > 8) \
color->comp[desc->comp[compn].plane].u16[desc->comp[compn].offset] = \
- color->comp[desc->comp[compn].plane].u8[desc->comp[compn].offset] << (draw->desc->comp[compn].depth - 8)
+ color->comp[desc->comp[compn].plane].u8[desc->comp[compn].offset] << \