Skip to content

Instantly share code, notes, and snippets.

View huslage's full-sized avatar
🐈
Meow

Aaron Huslage huslage

🐈
Meow
View GitHub Profile
Invoking: ARM GCC C++ Linker
arm-none-eabi-g++ -g3 -gdwarf-2 -Os -mcpu=cortex-m3 -mthumb -I../inc -I../../core-common-lib/CMSIS/Include -I../../core-common-lib/CMSIS/Device/ST/STM32F10x/Include -I../../core-common-lib/STM32F10x_StdPeriph_Driver/inc -I../../core-common-lib/STM32_USB-FS-Device_Driver/inc -I../../core-common-lib/CC3000_Host_Driver -I../../core-common-lib/SPARK_Firmware_Driver/inc -I../../core-communication-lib/lib/tropicssl/include -I../../core-communication-lib/src -I. -ffunction-sections -Wall -fmessage-length=0 -MD -MP -MF core-firmware.elf.d -DUSE_STDPERIPH_DRIVER -DSTM32F10X_MD -DDFU_BUILD_ENABLE -DRELEASE_BUILD obj/src/application.o obj/src/main.o obj/src/newlib_stubs.o obj/src/spark_utilities.o obj/src/spark_wiring.o obj/src/spark_wiring_i2c.o obj/src/spark_wiring_interrupts.o obj/src/spark_wiring_ipaddress.o obj/src/spark_wiring_network.o obj/src/spark_wiring_print.o obj/src/spark_wiring_servo.o obj/src/spark_wiring_spi.o obj/src/spark_wiring_stream.o obj/src/spark_wiring_string.o obj/
#!env python
import json
import requests
from sseclient import SSEClient
def toStars(rating):
b = ""
for i in range(0,rating):
b += "*"
// This #include statement was automatically added by the Spark IDE.
//#include "jsmnSpark.h"
/* ================== .h ================*/
//#ifndef LiquidCrystal_h
//#define LiquidCrystal_h
#include <inttypes.h>
//#include "Print.h"
@huslage
huslage / gist:2229135
Created March 28, 2012 18:29
Build Failed for cairo
➜ Tethr brew install -vd --use-llvm cairo
Warning: Formula will not build with LLVM, trying Clang
==> Downloading http://www.cairographics.org/releases/cairo-1.10.2.tar.gz
Already downloaded: /Users/huslage/Library/Caches/Homebrew/cairo-1.10.2.tar.gz
/usr/bin/tar xf /Users/huslage/Library/Caches/Homebrew/cairo-1.10.2.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cairo/1.10.2 --with-x --enable-xcb
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/cairo/1.10.2 --with-x --enable-xcb
checking for gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
2011-08-24 00:46:31.311 DEBUG [udp/0.0.0.0/6061-t-4] #SIP#: (i)[INVITE sip:tropo_voicememo.rb@50.16.198.185:6061 SIP/2.0\r\nTo: <sip:tropo_voicememo.rb@50.16.198.185:6061>\r\nContent-Type: application/sdp\r\nVia: SIP/2.0/UDP 172.19.131.148:1024;rport;branch=z9hG4bKac138394000000174e5449eb173522e900000001\r\nCSeq: 1 INVITE\r\nContent-Length: 368\r\nCall-ID: 84EE0C9A-1DD2-11B2-A30B-A1814BC77F4D@172.19.131.148\r\nUser-Agent: SJphone/1.60.299a/L (SJ Labs)\r\nMax-Forwards: 70\r\nFrom: "unknown"<sip:12.130.124.10>;tag=41817704561257438920\r\nContact: <sip:12.130.124.10:1024>\r\n\r\nv=0\r\no=- 3523135595 3523135595 IN IP4 12.130.124.10\r\ns=SJphone\r\nc=IN IP4 12.130.124.10\r\nt=0 0\r\na=direction:active\r\nm=audio 49152 RTP/AVP 3 97 98 110 8 0 101\r\na=rtpmap:3 GSM/8000\r\na=rtpmap:97 iLBC/8000\r\na=rtpmap:98 iLBC/8000\r\na=fmtp:98 mode=20\r\na=rtpmap:110 speex/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:101 telephone-event/8000\r\na=fmtp:101 0-11,16\r\n] #[N/A][N/A][84EE0C9A-1DD2-11B2-A30B-A18
2011-08-23 23:51:42.496 DEBUG [Tropo-Thread-5c2d3adda85001848b7d3b582e3b7a4e] #CONTAINER#@T: com.voxeo.tropo.FatalException: java.lang.IllegalStateException: Send error reponse for the canceled request.\n at com.voxeo.tropo.core.SimpleCall.handleException(SimpleCall.java:2296)\n at com.voxeo.tropo.core.SimpleCall.hangup(SimpleCall.java:477)\n at com.voxeo.tropo.core.SimpleCall.hangup(SimpleCall.java:487)\n at com.voxeo.tropo.SessionMonitor.attributeRemoved(SessionMonitor.java:41)\n at com.micromethod.sipmethod.server.container.impl.ApplicationSupport.handleEvent(ApplicationSupport.java:223)\n at com.micromethod.sipmethod.server.container.impl.ApplicationImpl.handleEvent(ApplicationImpl.java:585)\n at com.micromethod.sipmethod.server.sip.session.SipSessionImpl.removeAttributeInternal(SipSessionImpl.java:924)\n at com.micromethod.sipmethod.server.sip.session.SipSessionImpl.invalidate(SipSessionImpl.java:352)\n at com.micromethod.sipmethod.server.sip.session.SipSessionImpl.processInvalidationWhenReady(SipSession
@huslage
huslage / gist:1001483
Created May 31, 2011 23:21
Safecast DNS records
➜ ~ dig +noauthority @ns-760.awsdns-31.net blog.safecast.org @ns-29.awsdns-03.com blog.safecast.org @ns-1428.awsdns-50.org blog.safecast.org @ns-1801.awsdns-33.co.uk blog.safecast.org
; <<>> DiG 9.6.0-APPLE-P2 <<>> +noauthority @ns-760.awsdns-31.net blog.safecast.org @ns-29.awsdns-03.com blog.safecast.org @ns-1428.awsdns-50.org blog.safecast.org @ns-1801.awsdns-33.co.uk blog.safecast.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16848
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0
;; WARNING: recursion requested but not available
@huslage
huslage / newbz
Created April 25, 2011 03:39
Annoying Error
➜ Safecast curl -vvv --request PUT --header "X-PachubeApiKey: 7dKrbzxeRr8fOS_720XzWCeFlhdyB1iPqAqA8h-FMc4" --data \@test.json "http://api.pachube.com/v2/feeds/24200.json"
* About to connect() to api.pachube.com port 80 (#0)
* Trying 173.203.98.29... connected
* Connected to api.pachube.com (173.203.98.29) port 80 (#0)
> PUT /v2/feeds/24200.json HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
> Host: api.pachube.com
> Accept: */*
> X-PachubeApiKey: 7dKrbzxeRr8fOS_720XzWCeFlhdyB1iPqAqA8h-FMc4