Skip to content

Instantly share code, notes, and snippets.

@kellydunn
kellydunn / gist:7995024
Created December 16, 2013 21:48
bundle exec berks install
$ bundle exec berks install
Using smaug (0.0.1) from metadata
Ridley::Client crashed!
Ridley::Errors::ClientKeyFileNotFoundOrInvalid: client key is invalid or not found at: '/etc/chef/client.pem'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/ridley-1.5.3/lib/ridley/client.rb:156:in `initialize'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `public_send'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `dispatch'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/celluloid-0.14.1/lib/celluloid/calls.rb:67:in `dispatch'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/celluloid-0.14.1/lib/celluloid/actor.rb:326:in `block in handle_message'
/home/kelly/.rvm/gems/ruby-1.9.3-p448/gems/celluloid-0.14.1/lib/celluloid/tasks.rb:42:in `block in initialize'
# Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "default"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.synced_folder ".", "/vagrant_data"
config.vm.provision :chef_solo do |chef|
@kellydunn
kellydunn / gist:7630766
Last active December 29, 2015 06:39
Attempts to cross compile libsndfile for teensy3
// Configure step
$ CC=arm-none-eabi-gcc ./configure --host=arm-none-eabi
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-none-eabi
checking target system type... arm-none-eabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-none-eabi-strip... arm-none-eabi-strip
// 1) I configure the libsndfile library like so:
cd /home/kelly/Downloads/libsndfile-1.0.25
./configure --target=arm-none-eabi
// 2) I run make
make
// 3) I change directories back to my teensy project and attempt to build:
/home/kelly/Downloads/libsndfile-1.0.25/src/.libs/libsndfile.a: could not read symbols: File format not recognized
@kellydunn
kellydunn / gist:7569849
Created November 20, 2013 19:50
apex error trace
BUILD FAILED
/home/kelly/work/simplymeasured/diesel-validator/build.xml:7:
*********** DEPLOYMENT FAILED ***********
Request ID: 09SL0000000TcflMAC
Code Coverage Failures:
1. Class: leadBeforeUpdate -- Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
2. Class: opportunityAfterUpdate -- Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required
3. Average test coverage across all Apex Classes and Triggers is 0%, at least 75% test coverage is required.
*********** DEPLOYMENT FAILED ***********
@kellydunn
kellydunn / gist:7405196
Last active December 27, 2015 23:19
basan compiler error
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions -fno-rtti -Wall -g -Os -mcpu=cortex-m4 -nostdlib -mthumb -MMD -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -D__MK20DX128__ -DARDUIO=104 -I. -I/home/kelly/work/arduino-1.0.5/hardware/teensy/cores/teensy3/ -I/home/kelly/work/arduino-1.0.5/libraries -I/home/kelly/work/arduino-1.0.5/libraries/SD/ -I/home/kelly/work/arduino-1.0.5/libraries/SD/utility/ -Ilib/ -c -o src/basan.o src/basan.cpp
src/basan.cpp: In function 'int main()':
src/basan.cpp:22:12: warning: unused variable 'sd' [-Wunused-variable]
src/basan.cpp:23:12: warning: unused variable 'current_phrase' [-Wunused-variable]
src/basan.cpp:24:12: warning: unused variable 'current_sample' [-Wunused-variable]
src/basan.cpp:27:10: warning: variable 'x' set but not used [-Wunused-but-set-variable]
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-g++ -std=gnu++0x -felide-constructors -fno-exceptions
@kellydunn
kellydunn / gist:7219236
Created October 29, 2013 17:39
sm app bootup
== CreatePlanLists: migrating - =============================================
-- create_table(:plan_lists)
-> 0.0242s
rake aborted!
An error has occurred, all later migrations canceled:
RSolr::Error::Http - 400 Bad Request
Error: {'responseHeader'=>{'status'=>400,'QTime'=>26},'error'=>{'msg'=>'ERROR: [doc=PlanList 1] unknown field \'type\'','code'=>400}}
@kellydunn
kellydunn / gist:7090808
Created October 21, 2013 20:53
Teensy arm-none-eabi-gcc toolchain
$ which arm-none-eabi-gcc
/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/arm-none-eabi-gcc
$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/home/kelly/work/arduino-1.0.5/hardware/tools/arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/4.7.2/lto-wrapper
Target: arm-none-eabi
Configured with: /home/paul/teensy/arm64/workdir/gcc-4.7-2012.09/configure --prefix=/usr/local --target=arm-none-eabi --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --with-specs='%{save-temps: -fverbose-asm} %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --disable-shared --enable-lto --with-newlib --with-pkgversion='PJRC Build of GNU Toolchain from CodeSourcery' --with-bugurl=http://forum.pjrc.com/ --disable-
@kellydunn
kellydunn / gist:7074830
Last active December 26, 2015 01:59
Makefile for teensy 3.0 hello world in C
TARGET = main
OPTIONS = -DF_CPU=48000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH
OPTIONS += -D__MK20DX128__ -DARDUIO=104
# path location for Teensy Loader, teensy_post_compile and teensy_reboot
ARDUINO_PATH= $(HOME)/work/arduino
TOOLSPATH= $(ARDUINO_PATH)/hardware/tools
MCU_LINKER_SCRIPT = $(ARDUINO_PATH)/hardware/teensy/cores/teensy3/mk20dx128.ld
@kellydunn
kellydunn / gist:7074811
Created October 20, 2013 20:22
teensy 3.0 hello world in C
#include "core_pins.h"
int main(void) {
pinMode(13, OUTPUT);
while(1) {
digitalWriteFast(13, HIGH);
delay(100);
digitalWriteFast(13, LOW);
delay(100);