Skip to content

Instantly share code, notes, and snippets.

View mnutt's full-sized avatar

Michael Nutt mnutt

View GitHub Profile
@mnutt
mnutt / qtwebkit_segfault.txt
Created July 17, 2016 13:44
QtWebkit segfault
#0 0x00007ffff69d4720 in WebCore::ImageBuffer::context() const () from /usr/local/lib/libQt5WebKit.so.5
#1 0x00007ffff6f3d2b2 in WebCore::ShadowBlur::beginShadowLayer(WebCore::GraphicsContext&, WebCore::FloatRect const&) ()
from /usr/local/lib/libQt5WebKit.so.5
#2 0x00007ffff69c975d in WebCore::drawQtGlyphRun(WebCore::GraphicsContext&, QGlyphRun const&, QPointF const&, double) ()
from /usr/local/lib/libQt5WebKit.so.5
#3 0x00007ffff69ca897 in WebCore::FontCascade::drawGlyphs(WebCore::GraphicsContext&, WebCore::Font const&, WebCore::GlyphBuffer const&, int, int, WebCore::FloatPoint const&, WebCore::FontSmoothingMode) () from /usr/local/lib/libQt5WebKit.so.5
#4 0x00007ffff688e341 in WebCore::FontCascade::drawGlyphBuffer(WebCore::GraphicsContext&, WebCore::TextRun const&, WebCore::GlyphBuffer const&, WebCore::FloatPoint&) const () from /usr/local/lib/libQt5WebKit.so.5
#5 0x00007ffff688e6d5 in WebCore::FontCascade::drawText(WebCore::GraphicsContext&, WebCore::TextRun const&, WebCore::FloatPoint const&,
error: Backend hasn't responded in 30 seconds! Reconnecting.
capnp.js: before makeRemotePromise: ping { a: undefined, b: undefined, e: [] }
capnp.js: after makeRemotePromise: ping { a: undefined, b: undefined, e: [], cancel: [Function] }
capnp.js: outer promise: { a: undefined, b: undefined, e: [] }
capnp.js: before makeRemotePromise: get { a: undefined, b: undefined, e: [] }
capnp.js: after makeRemotePromise: get { a: undefined,
b: undefined,
e: [],
cachePolicy: {},
cancel: [Function] }
@mnutt
mnutt / gist:9fdebec76bcc71304f19
Created January 10, 2016 22:35
capnp segfault
#0 0x00007ffff6e1f107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007ffff6e204e8 in __GI_abort () at abort.c:89
#2 0x00007ffff7927b3d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff7925bb6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff7924ca9 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff792540b in __gxx_personality_v0 () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff73bfff3 in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#7 0x00007ffff73c0517 in _Unwind_Resume () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#8 0x000000000043fb6e in kj::(anonymous namespace)::crashHandler(int, siginfo_t*, void*) ()
#9 <signal handler called>

Keybase proof

I hereby claim:

  • I am mnutt on github.
  • I am mnutt (https://keybase.io/mnutt) on keybase.
  • I have a public key whose fingerprint is 211B F6A1 E4CD 72C9 57B7 05FA 8EE8 B925 0C80 3854

To claim this, I am signing this object:

Imagine a crossroads where four competing auto dealerships are situated. One of them (Microsoft) is much, much bigger than the others. It started out years ago selling three-speed bicycles (MS-DOS); these were not perfect, but they worked, and when they broke you could easily fix them.

There was a competing bicycle dealership next door (Apple) that one day began selling motorized vehicles--expensive but attractively styled cars with their innards hermetically sealed, so that how they worked was something of a mystery.

The big dealership responded by rushing a moped upgrade kit (the original Windows) onto the market. This was a Rube Goldberg contraption that, when bolted onto a three-speed bicycle, enabled it to keep up, just barely, with Apple-cars. The users had to wear goggles and were always picking bugs out of their teeth while Apple owners sped along in hermetically sealed comfort, sneering out the windows. But the Micro-mopeds were cheap, and easy to fix compared with the Apple-cars, and their market

#!/bin/bash
# By default, this script does nothing. You'll have to modify it as
# appropriate for your application.
cd /opt/app
echo "LAUNCHER STARTING"
PORT=8000 node app.js

Keybase proof

I hereby claim:

  • I am mnutt on github.
  • I am mnutt (https://keybase.io/mnutt) on keybase.
  • I have a public key whose fingerprint is AEB2 CD41 DA20 9610 BF3F 6A4C 6B66 44DA 9001 BF6B

To claim this, I am signing this object:

use unix zoneinfo files
features:
* list all of the currently applicable timezones (excluding ones that are DST when they're not currently in DST)
* convert times between your timezone, UTC, and other available timezones
TaggedInputComponent = ValidatingInputComponent.extend
didInsertElement: ->
Em.run.schedule "afterRender", @, ->
tags = (@get("value") || "").split(",")
@$('input').select2
tags: tags
tokenSeparators: [","]
maximumSelectionSize: 3
selectOnBlur: true
width: "resolve"
Index: tgz2dmg.sh
===================================================================
--- tgz2dmg.sh (revision 264)
+++ tgz2dmg.sh (working copy)
@@ -115,8 +115,12 @@
elif [[ "$next" = "rsrc" ]]; then
cp "$1" "$TMPDIR/resources"
elif [[ "$next" = "rsrcdir" ]]; then
- [[ -f "$1" ]] && cp "$1" "$TMPDIR/resources"
- [[ -d "$1" ]] && cp -R "$1" "$TMPDIR/resources"