Skip to content

Instantly share code, notes, and snippets.

View nijikon's full-sized avatar

Tomasz Pajor nijikon

  • Cracow, Poland
  • 01:42 (UTC +01:00)
View GitHub Profile
@nijikon
nijikon / Gemfile
Created July 10, 2017 16:08
bundler-private-repository
# frozen_string_literal: true
source 'https://rubygems.org'
ruby '2.4.1'
gem 'private_gem', git: '[email protected]:servercrunch/private-gem.git'
@nijikon
nijikon / # percona-toolkit - 2017-01-24_13-27-15.txt
Created January 24, 2017 12:27
percona-toolkit on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for percona-toolkit on macOS 10.11.6
Build date: 2017-01-24 13:27:15
@nijikon
nijikon / # hashcat - 2017-01-24_12-30-51.txt
Created January 24, 2017 11:31
hashcat on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for hashcat on macOS 10.11.6
Build date: 2017-01-24 12:30:51
@nijikon
nijikon / # redsocks - 2017-01-08_12-56-23.txt
Created January 8, 2017 11:56
redsocks on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for redsocks on macOS 10.11.6
Build date: 2017-01-08 12:56:23
@nijikon
nijikon / # redsocks - 2017-01-08_09-54-24.txt
Created January 8, 2017 08:55
redsocks on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for redsocks on macOS 10.11.6
Build date: 2017-01-08 09:54:24
@nijikon
nijikon / # ipv6calc - 2016-12-31_14-12-32.txt
Created December 31, 2016 13:15
ipv6calc on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for ipv6calc on macOS 10.11.6
Build date: 2016-12-31 14:12:32
diff -aur a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am 2016-06-13 16:06:28.000000000 +0200
+++ b/src/Makefile.am 2016-06-13 16:06:41.000000000 +0200
@@ -7,7 +7,7 @@
EXTRA_DIST = $(pkgdata_SCRIPTS) $(bin_SCRIPTS) $(noinst_SCRIPTS)
-lftp_SOURCES = lftp.cc complete.h complete.cc lftp_rl.c lftp_rl.h attach.cc attach.h
+lftp_SOURCES = lftp.cc complete.h complete.cc lftp_rl.cc lftp_rl.h attach.cc attach.h
diff -aur a/src/Makefile.am b/src/Makefile.am
--- a/src/Makefile.am 2016-06-13 16:06:28.000000000 +0200
+++ b/src/Makefile.am 2016-06-13 16:06:41.000000000 +0200
@@ -7,7 +7,7 @@
EXTRA_DIST = $(pkgdata_SCRIPTS) $(bin_SCRIPTS) $(noinst_SCRIPTS)
-lftp_SOURCES = lftp.cc complete.h complete.cc lftp_rl.c lftp_rl.h attach.cc attach.h
+lftp_SOURCES = lftp.cc complete.h complete.cc lftp_rl.cc lftp_rl.h attach.cc attach.h
@nijikon
nijikon / src_libjasper_jpc_jpc_dec.c.patch
Last active December 27, 2015 21:02
an assertion fails when Jasper is fed certain JPEG-2000 files with an alpha channel. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
--- a/src/libjasper/jpc/jpc_dec.c.orig 2015-12-27 21:58:46.000000000 +0100
+++ a/src/libjasper/jpc/jpc_dec.c 2015-12-27 22:01:41.000000000 +0100
@@ -1069,12 +1069,18 @@
/* Apply an inverse intercomponent transform if necessary. */
switch (tile->cp->mctid) {
case JPC_MCT_RCT:
- assert(dec->numcomps == 3);
+ if (dec->numcomps != 3 && dec->numcomps != 4) {
+ jas_eprintf("bad number of components (%d)\n", dec->numcomps);
+ return -1;
@nijikon
nijikon / src_libjasper_base_jas_icc_c.patch
Last active December 27, 2015 21:06
jasper-security-fixes
--- a/src/libjasper/base/jas_icc.c.orig Fri Jan 19 13:43:05 2007
+++ a/src/libjasper/base/jas_icc.c Thu Oct 29 22:03:25 2015
@@ -373,7 +373,7 @@ int jas_iccprof_save(jas_iccprof_t *prof, jas_stream_t
jas_icctagtab_t *tagtab;
tagtab = &prof->tagtab;
- if (!(tagtab->ents = jas_malloc(prof->attrtab->numattrs *
+ if (!(tagtab->ents = jas_alloc2(prof->attrtab->numattrs,
sizeof(jas_icctagtabent_t))))
goto error;