Skip to content

Instantly share code, notes, and snippets.

Homebrew build logs for fontconfig on Ubuntu 14.04.1 LTS
Build date: 2016-10-10 14:26:53
vault size 928G -
vault capacity 53% -
vault altroot - default
vault health ONLINE -
vault guid 10615357772173364317 default
vault version - default
vault bootfs - default
vault delegation on default
vault autoreplace off default
vault cachefile - default
@aktau
aktau / gist:6e79ecca968a641eb60f
Created December 6, 2015 00:27
zfs.stack.snip.trace
Dec 06 00:46:40 kdi kernel: perf interrupt took too long (5048 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
Dec 06 00:47:43 kdi kernel: VERIFY3((arc_stats.arcstat_c.value.ui64) >= 2ULL << 24) failed (33550891 >= 33554432)
Dec 06 00:47:43 kdi kernel: PANIC at arc.c:3760:arc_adapt()
Dec 06 00:47:43 kdi kernel: Showing stack for process 898
Dec 06 00:47:43 kdi kernel: CPU: 1 PID: 898 Comm: transmission-da Tainted: P O 4.2.0-1-amd64 #1 Debian 4.2.6-1
Dec 06 00:47:43 kdi kernel: Hardware name: GIADA ChiefRiver Platform/Emerald Lake 2, BIOS W6561014 02/05/2013
Dec 06 00:47:43 kdi kernel: 0000000000000000 0000000000000eb0 ffffffff8154e2f6 ffffffffa0966f23
Dec 06 00:47:43 kdi kernel: ffffffffa080480c ffff8800551885d8 ffff88006bf2aa78 0000000000000030
Dec 06 00:47:43 kdi kernel: ffff88006b1cbb58 ffff88006b1cbaf8 2833594649524556 6174735f63726128
Dec 06 00:47:43 kdi kernel: Call Trace:
@aktau
aktau / dkms.conf.sh
Created November 13, 2015 11:48
/var/lib/dkms/zfs/0.6.5.2/build/dkms.conf
BUILD_DEPENDS[0]="spl"
AUTOINSTALL="yes"
PACKAGE_NAME="zfs"
PACKAGE_VERSION="0.6.5.2"
PRE_BUILD="configure
--prefix=/usr
--with-config=kernel
--with-linux=$(moddir=`echo ${kernel_source_dir/%build/.}`;
if [ -e $moddir/source/include/linux/input ]; then
echo $moddir/source
@aktau
aktau / homebrew-llvm351-error.log
Created January 24, 2015 11:28
Failing homebrew/versions/llvm35 (3.5.1) build
llvm[6]: ======= Finished Linking Release+Asserts Unit test ClangApplyReplacementsTests (without symbols)
llvm[6]: Compiling UniqueHeaderNameTest.cpp for Release+Asserts build
if clang++ -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../../../include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../../../include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../clang-modernize -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../../clang-apply-replacements/include -I/private/tmp/llvm35-g2huGt/llvm-3.5.1.src/tools/clang/tools/extra/unittests/clang-modernize/../include -I/private/tmp
@aktau
aktau / vim_strchr_test.c
Last active August 29, 2015 14:09
neovim: strchr() test
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include <time.h>
#include <stdbool.h>
/* test if Vim was right when it implemented strchr() again as vim_strbyte() */
@aktau
aktau / bench.sh
Last active October 24, 2018 19:47
Benchmark which method plays best with pg_dump for rsyncability
#!/bin/bash
# look out for the speedup factors reported, my
# tests indicate that `pigz --rsyncable` wins for
# the compressed format, but that the raw uncompressed
# format is the best if you want optimal rsyncability.
#
# This makes sense of course, but for many of us it's
# not feasible to keep uncompressed copies around, as the
# database can be huge and full of compressible data.
@aktau
aktau / hello64.s
Last active August 29, 2015 14:07
Hello world and printing numbers a few times
; also see an alternative: http://lpaste.net/111802
; rdi = the number (integer) to print
; prints a number as hex (basically the easy way out)
printnum:
push r13
push r14
push r15
; save the argument because we're going to use it to pass an argument to
@aktau
aktau / fs-read-method-bench.cpp
Created September 18, 2014 04:53
benchmark fread/read/mmap/std::streams
// @aktau: this is not my file, I tried to find the original article this was from but couldn't, I'm pasting it here for posterity
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/uio.h>
@aktau
aktau / cntchr.c
Created September 4, 2014 15:32
cntchr function
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
size_t cntchr(const char *str, char value) {
size_t count = 0;
while ((str = strchr(str, value)) != NULL) {
++str;
++count;
}