Skip to content

Instantly share code, notes, and snippets.

View romen's full-sized avatar

Nicola Tuveri romen

View GitHub Profile
@romen
romen / Makefile
Created June 16, 2017 15:36
NaCl sign test clients
LIBSODIUM_PREFIX=/opt/libsodium-debug
LIBSODIUM_INC=$(LIBSODIUM_PREFIX)/include
LIBSODIUM_LIB=$(LIBSODIUM_PREFIX)/lib
LIBSODIUM_LFLAGS=-L$(LIBSODIUM_LIB) -lsodium
LIBSODIUM_RPATH=-Wl,-rpath=$(LIBSODIUM_LIB)
LIBHACL_ROOT=$(HOME)/repos/hacl-star
LIBHACL_PREFIX=$(LIBHACL_ROOT)/snapshots/hacl-c
LIBHACL_INC=$(LIBHACL_PREFIX)
LIBHACL_LIB=$(LIBHACL_PREFIX)
@romen
romen / pioneers.rb
Created December 18, 2013 02:25
tentative pioneers 15.1 homebrew formula, still having problems with icons
require 'formula'
class Pioneers < Formula
url 'https://downloads.sourceforge.net/project/pio/Source/pioneers-15.1.tar.gz'
homepage 'http://pio.sourceforge.net/'
sha1 'cea94cd77edef31b3f9e601077dff9b199dfeaf4'
fails_with :clang do
build 318
cause "'#line directive requires a positive integer' argument in generated file"
@romen
romen / nowaveformatextensible.patch
Created September 14, 2012 01:17
Patch libav to avoid waveformatextensible header in AVI with >2 channels audio streams
--- a/libavformat/riffenc.c 2014-02-23 22:59:10.000000000 +0100
+++ b/libavformat/riffenc.c 2014-03-26 15:12:11.000000000 +0100
@@ -70,7 +70,10 @@
if (!frame_size)
frame_size = enc->frame_size;
- waveformatextensible = (enc->channels > 2 && enc->channel_layout) ||
+ /* Patched libav to avoid waveformatextensible header in AVI with
+ * >2 channels audio streams to improve compatibility as per
+ * http://ffmpeg-users.933282.n4.nabble.com/AC3-encoding-problem-wrong-audio-tag-tp4651779p4651810.html */