Skip to content

Instantly share code, notes, and snippets.

View seanhoughton's full-sized avatar

Sean Houghton seanhoughton

View GitHub Profile
@seanhoughton
seanhoughton / jagertest.go
Created December 21, 2018 00:34
Reproduction of no spans being sent
package main
import (
"fmt"
"io"
"log"
"time"
opentracing "github.com/opentracing/opentracing-go"
jaegercfg "github.com/uber/jaeger-client-go/config"
C1250: Unable to load plug-in.
C1251: Unable to load models.
C1252: 'Circular or missing dependency between plugins: requires GUID'
C1253: Unable to load model file.
C1254: 'Plugin version mismatch : version doesn''t match the version of the PREfast driver'
C1255: PCH data for plugin has incorrect length.
C1256: PCH must be both written and read.
C1257: Plugin Initialization Failure.
C26100: Race condition. Variable <var> should be protected by lock <lock>.
C26101: Failing to use interlocked operation properly for variable <var>.
@seanhoughton
seanhoughton / kstars_deps.sh
Last active September 11, 2016 16:58
kstars build on OSX
# http://indilib.org/forum/general/210-howto-building-latest-libindi-ekos.html
brew install qt5 --with-dbus
brew tap homebrew/science
brew install cfitsio \
cmake \
eigen \
gettext \
astrometry-net
@seanhoughton
seanhoughton / Dockerfile-indylib
Created August 17, 2016 16:42
indilib docker container
FROM ubuntu:latest
MAINTAINER Sean Houghton <sean.houghton@gmail.com>
RUN apt-get update && apt-get install -y software-properties-common
RUN apt-add-repository ppa:mutlaqja/ppa && apt-get update && apt-get install -y libindi1 indi-full
EXPOSE 7624
CMD indiserver -v $INDY_DRIVERS
@seanhoughton
seanhoughton / kde.env
Last active September 15, 2016 03:45
Building kstars on OSX
#
# ~/.kde/kde.env
# activate with 'source ~/.kde/kde.env'
#
export KF5=~/.kde
export KDEDIR=~/.kde
export KDE_SESSION_VERSION=5
export XDG_DATA_DIRS=$KF5/share
@seanhoughton
seanhoughton / SConstruct
Last active December 26, 2015 12:09
SCons script that demonstrates the problem with batch building. After creating two dummy file they are correctly built together in one batch. If another build is initiated scons properly detects that no inputs have changed and doesn't build anything (but note that the output is missing mention of two.txt). The bug happens when you change only on…
env = Environment()
single_builder = Builder(action='echo Hello from $SOURCE > $TARGET', batch_key=True)
def build_batch(target, source, env):
print "There are %d targets" % len(target)
for s in zip(source, target):
env.Execute(env.subst('echo Hello from $SOURCE > $TARGET', source=s[0], target=s[1]))
batched_builder = Builder(action=Action(build_batch, batch_key=True, targets='$CHANGED_TARGETS'))
env.Append(BUILDERS={'Batched': batched_builder})