Skip to content

Instantly share code, notes, and snippets.

View jasom's full-sized avatar

Jason Miller jasom

  • Santa Barbara, CA
View GitHub Profile
@jasom
jasom / critbit.rs
Created January 30, 2014 11:50
ICE unreduced testcase
use std::util::swap;
use std::fmt;
use std::io;
use std::rand;
use std::os;
use std::hashmap;
use std::num;
use std::util;
use std::default::Default;
use std::uint;
@jasom
jasom / gdb.txt
Created January 30, 2014 11:53
ICE backtrace
#0 0x00007ffff775c8f0 in rust_fail () from /home/aidenn/gh/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-966edb7e-0.10-pre.so
#1 0x00007ffff775c8c5 in rt::unwind::Unwinder::begin_unwind::h8a487afa8004419eW6aF::v0.10.pre ()
from /home/aidenn/gh/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-966edb7e-0.10-pre.so
#2 0x00007ffff76c030b in rt::unwind::begin_unwind_inner::hfdf867942a6daf50ae::v0.10.pre ()
from /home/aidenn/gh/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/libstd-966edb7e-0.10-pre.so
#3 0x00007ffff3edac6e in rt::unwind::begin_unwind::hddf3f60874868bf2a9::v0.10.pre ()
from /home/aidenn/gh/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-0d83f02f-0.10-pre.so
#4 0x00007ffff3f70597 in middle::trans::common::find_vtable::h59edb7c25cecc4ccaK::v0.10.pre ()
from /home/aidenn/gh/rust/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-0d83f02f-0.10-pre.so
#5 0x00007ffff3f6fd71 in middle::trans::common::resolve_vtable_under_param_substs::hb8431f0f60dd5f43at::v0.10.p
@jasom
jasom / trie.rs
Created February 5, 2014 16:40
std::trie with improved insert performance (~3x on ordered inserts, ~1.3x on random inserts) and generic keys
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
@jasom
jasom / config.log
Created April 29, 2014 19:30
config.log from failed emerge
This file has been truncated, but you can view the full file.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU CLISP configure 2.49+ (2010-07-17), which was
generated by GNU Autoconf 2.67. Invocation command line was
$ ../src/configure --disable-option-checking --prefix=/usr --libdir=/usr/lib64 --with-readline --with-unicode --with-ffcall --with-dynamic-modules --cache-file=config.cache
## --------- ##
## Platform. ##
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>[]</title>
<style type="text/css">
.clearfix{*zoom:1;}.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}
.clearfix:after{clear:both;}
.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0;}
.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasom
jasom / minimal.c
Created July 10, 2014 21:39
non-working geany plugin
#include <geany/geanyplugin.h>
GeanyPlugin *geany_plugin;
GeanyData *geany_data;
GeanyFunctions *geany_functions;
PLUGIN_VERSION_CHECK(211)
PLUGIN_SET_INFO("HelloWorld", "Just another tool to say hello world",
"1.0", "John Doe <john.doe@example.org>");
static GtkWidget *main_menu_item = NULL;
@jasom
jasom / gist:c7cc7cc34c85e73769c2
Created July 14, 2014 21:43
config file example
test_directory = Dir(base='tests/',
index_file='index.html',
default_ctype='text/plain')
# a sample proxy route
web_app_proxy = Proxy(addr='127.0.0.1', port=8080)
chat_demo_dir = Dir(base='examples/chat/static/',
index_file='index.html',
[1146763.382]
X.Org X Server 1.15.0
Release Date: 2013-12-27
[1146763.382] X Protocol Version 11, Revision 0
[1146763.382] Build Operating System: Linux 3.10.25-gentoo x86_64 Gentoo
[1146763.382] Current Operating System: Linux clarabell 3.12.13-gentoo #3 SMP Wed Jul 2 17:39:55 PDT 2014 x86_64
[1146763.382] Kernel command line: BOOT_IMAGE=/kernel-version root=UUID=d2973307-9743-4bb0-acf7-1e3fdd28bc54 ro rootflags=device=PARTUUID=0067756e-3bd5-47f9-ba60-dc71d3f83ff9,device=PARTUUID=3605406d-54e1-4cd2-8bfc-d3f22fdeadee real_rootflags=device=PARTUUID=0067756e-3bd5-47f9-ba60-dc71d3f83ff9,device=PARTUUID=3605406d-54e1-4cd2-8bfc-d3f22fdeadee real_root=PARTUUID=0067756e-3bd5-47f9-ba60-dc71d3f83ff9
[1146763.382] Build Date: 23 April 2014 05:24:58PM
[1146763.382]
[1146763.382] Current version of pixman: 0.32.4
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or
# later
# $Header: /var/cvsroot/gentoo-x86/net-im/bitlbee/files/bitlbee.initd,v 1.4 2013/01/08 14:25:21 cedk Exp $
DAEMON=/usr/sbin/bitlbee
PIDFILE=/var/run/bitlbee/bitlbee.pid
depend() {