Skip to content

Instantly share code, notes, and snippets.

View romen's full-sized avatar

Nicola Tuveri romen

View GitHub Profile
@romen
romen / GnuPG-2.2.md
Last active April 1, 2021 13:00 — forked from vt0r/GnuPG-2.2.md
Build/install instructions for GnuPG 2.2.x on Ubuntu and similar distros (formerly for 2.1.x)

GnuPG 2.2.1 Build Instructions

Below are my build instructions for GnuPG 2.2.1, released on September 19th, 2017. These instructions are built for a Ubuntu 16.04 LTS.

If you prefer, you may use the below install script to install GnuPG 2.2.1 by running the following commands:

curl -OL "https://gist.github.com/romen/b7bac24d679d91acabb27bfcdabbee01/raw/b93b7b00910db67c2c3332606792679802abbb32/install-gnupg22.sh" && bash ./install-gnupg22.sh

Install the needed dependencies

@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 */