Skip to content

Instantly share code, notes, and snippets.

View wrl's full-sized avatar

william light wrl

View GitHub Profile
class LameError < RuntimeError
end
ShibeTest::Suite.new('ShibeTest') do
should_pass 'assert true' do |assert|
assert.true { true }
end
should_fail 'fail assert true' do |assert|
assert.true { false }
use std::env;
use std::path::Path;
extern crate nix;
use nix::fcntl::{O_RDWR, O_NONBLOCK};
use nix::{fcntl,sys};
extern crate mio;
use mio::{TryRead, TryWrite};
#!/bin/dash
path=$(readlink -f "$(which "$0")")
prefix=${path%-*}-
program=${0##*-}
default_cflags="-isysroot /path/to/MacOSX10.<whatever>.sdk"
$program -target x86_64-apple-darwin -B "$prefix" $default_cflags $*
#!/bin/dash
path=$(readlink -f "$(which "$0")")
prefix=${path%-*}-
program=${0##*-}
default_cflags="-isysroot /home/will/macosx_sdks/SDKs/MacOSX10.8.sdk"
$program -target x86_64-apple-darwin -B "$prefix" $default_cflags $*
{
"version": 20150319,
"exported": {
"from": "0.3.1-a18ae86",
"on": "2015-07-08T00:54:31+0200"
},
"programs": [
{
"level": -6.0,
"note_logic": "poly",
==10629== Invalid read of size 4
==10629== at 0x54880E3: __pthread_mutex_unlock_usercnt (in /usr/lib/libpthread-2.22.so)
==10629== by 0x242BD8B6: __gthread_mutex_unlock (gthr-default.h:778)
==10629== by 0x242BD8B6: __gthread_recursive_mutex_unlock (gthr-default.h:831)
==10629== by 0x242BD8B6: unlock (mutex:194)
==10629== by 0x242BD8B6: ~lock_guard (mutex:392)
==10629== by 0x242BD8B6: Airwave::Plugin::dispatchProc(AEffect*, int, int, long, void*, float) (plugin.cpp:734)
==10629== by 0xA9CCD8: ??? (in /usr/bin/renoise-3.1.0)
==10629== by 0xAA5CBA: ??? (in /usr/bin/renoise-3.1.0)
==10629== by 0xA63A7B: ??? (in /usr/bin/renoise-3.1.0)
@wrl
wrl / keybase.md
Created April 7, 2016 14:06
keybase.md

Keybase proof

I hereby claim:

  • I am wrl on github.
  • I am wrl (https://keybase.io/wrl) on keybase.
  • I have a public key ASAMsNic-9W2ZXx47icCplV_6GU0O6HTIWfAXR_zUH1KYgo

To claim this, I am signing this object:

#!/bin/dash
path=$(readlink -f "$(which "$0")")
prefix=${path%-*}-
program=${0##*-}
default_cflags="-isysroot /home/will/macosx_sdks/SDKs/MacOSX10.8.sdk"
$program -target x86_64-apple-darwin -B "$prefix" $default_cflags "$@"
{
"version": 20150319,
"exported": {
"from": "0.3.1-b9a585a",
"on": "2016-06-10T20:43:46+0200"
},
"programs": [
{
"level": -6.0,
"note_logic": "poly",
@wrl
wrl / cross_compile.py
Created July 6, 2016 22:52
waf cross compilation tool
#!/usr/bin/env python
def override_find_program(prefix):
from waflib.Configure import find_program as orig_find
from waflib.Configure import conf
if prefix[-1] != '-':
prefix += '-'
@conf