Skip to content

Instantly share code, notes, and snippets.

View awilfox's full-sized avatar
🦊
Mostly doing FOSS on weekends

A. Wilcox awilfox

🦊
Mostly doing FOSS on weekends
View GitHub Profile
@awilfox
awilfox / README.md
Last active October 2, 2015 00:33
greenlet 0.4.9 PowerPC issue

greenlet PPC issue

This gist contians the following files:

  • greenlet.broken.s - The broken output, compiled with: CFLAGS="-save-temps" python3.4 setup.py build Output of python3.4 setup.py test: test_exception_disables_tracing (tests.test_tracing.TracingTests) ... Segmentation fault
  • greenlet.s - The correct output, compiled with: CFLAGS="-save-temps -O1" python3.4 setup.py build Output of python3.4 setup.py test: Ran 63 tests in 1.893s: OK
@awilfox
awilfox / vision.md
Created November 12, 2014 09:58
SoundScape

Vision and Scope Document for

SoundScape

This document contains preliminary information about a forthcoming software product from Wilcox Technologies. The information contained within may not reflect the final product, and could change rapidly during the development process. Always ensure that you have the latest copy of all documents before raising any concerns you may have.

As this project is licensed under an Open Source (NCSA) license, this document may be redistributed under the terms of that license. A copy of this license is included at the end of this document.

Revision history

| Name | Date | Summary | Version |

@awilfox
awilfox / gist:6003919
Created July 15, 2013 22:04
Mozilla build error on Mac OS X redux
0:06.62 There are no private exports.
0:07.09 cd include; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.14 cd src; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.15 cd builtins; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.16 mkdir: /Users/awilcox/Code/moz/mozilla-central/obj-ff-dbg/security/nss/lib/freebl: File exists
0:07.20 cd mangle; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.27 cd legacydb; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.67 duplicate symbol ___sputc in:
0:07.67 host_nsinstall.o
0:07.67 host_pathsub.o
@awilfox
awilfox / gist:6003830
Created July 15, 2013 21:52
Mozilla build error on Mac OS X
0:02.74 /Users/awilcox/Code/moz/mozilla-central/obj-ff-dbg/mozglue/build/tmpsLK3Ew.l
0:02.74 ../../memory/build/jemalloc_config.o
0:02.74 ../../memory/build/mozmemory_wrap.o
0:02.74 ../../memory/mozjemalloc/jemalloc.o
0:02.74 ../../mfbt/bignum-dtoa.o
0:02.74 ../../mfbt/bignum.o
0:02.74 ../../mfbt/cached-powers.o
0:02.75 ../../mfbt/diy-fp.o
0:02.75 ../../mfbt/double-conversion.o
0:02.75 ../../mfbt/fast-dtoa.o
awilcox on ind-wkst040 mozilla-central: ./mach bootstrap [s005 Mon 15 6:22]
Looks like you have Homebrew installed. We will install all required packages via Homebrew.
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
@awilfox
awilfox / _form.html.erb
Created February 13, 2013 13:55
how bad am I at life?
<script type="text/javascript">
var address_count = <%= @patron.addresses.count %>;
function buildField(name)
{
return $('<div class="field"><label for="patron_addresses_attributes_'+address_count+'_'+name+'">'+name+'</label><br /><input type="text" id="patron_addresses_attributes_'+address_count+'_'+name+'" name="patron[addresses_attributes]['+address_count+']['+name+']"></div>');
}
function buildTypeSelect()
{
var $field = $('<div class="field"><label for="patron_addresses_attributes_'+address_count+'_address_type>Address type</label></div>');
@awilfox
awilfox / gist:4002717
Created November 2, 2012 17:01
I lol'd
12:53 < awilcox> some of the regulars here might remember me as WolfKit
12:53 < draig> I saw that name before I think
12:53 < JeremieDeNoob> been here for about 1 yr and a half... coming many times almost everyweekl
12:54 < JeremieDeNoob> wolfKit? didnt u have an issue woith one of the other members?
12:54 < Rolken> it's irc, we all have issues with each other
12:54 < Rolken> (you asshole!)
12:54 < awilcox> JeremieDeNoob, I don't recall ever having beef with anyone on #iphonedev
12:54 < JeremieDeNoob> lol Rolken
12:55 < awilcox> someone else hated on me because I was trying to keep people on-topic when someone was asking about a table view and they were too busy talking about the new world order to help
12:55 < awilcox> and said I was just terrified of the new world order, and that's why I wanted them to shut up, or something
@awilfox
awilfox / Makefile
Created October 7, 2012 01:02 — forked from duckinator/test.c
file=".tmp-`date +'%s'`.c"
test.c: a.out run
a.out:
@tail -n +2 test.c > ${file}
@gcc -std=c99 -ggdb -I. -DDEBUG ${REST} ${file}
@rm ${file}
run: a.out
@awilfox
awilfox / build-for-iPhone.sh
Created March 19, 2012 19:46
I hate shell scripting :)
#!/bin/sh
echo "**** STARTING BUILD OF eScape for iPhone AT `date` ****"
echo
echo
# Clean anything that happened before.
make clean || echo "Okay, we're starting fresh"
@awilfox
awilfox / hello.m
Created February 28, 2012 10:26
Hello, World!
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Hello world!");
[pool drain];
return 0;