Skip to content

Instantly share code, notes, and snippets.

View sander's full-sized avatar

Sander Dijkhuis sander

View GitHub Profile
@sander
sander / howto.md
Created May 31, 2015 08:40
Overtone on Edison

How to install Overtone on Edison

Steps are similar to Sam Aaron’s tutorial. I can’t remember every step so update this if you find additional steps. I’m using an external USB sound card.

Installating Jack and ALSA

  1. Set up AlexT’s package repo if you haven’t done so.
  2. opkg install jack-server alsa-lib (not sure which ALSA pkg was needed?).

Installing Clojure

HCI sniffer - Bluetooth packet analyzer ver 5.30
device: hci0 snap_len: 1500 filter: 0xffffffff
< HCI Command: Read Local Supported Features (0x04|0x0003) plen 0
> HCI Event: Command Complete (0x0e) plen 12
Read Local Supported Features (0x04|0x0003) ncmd 1
status 0x00
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
< HCI Command: Read Local Version Information (0x04|0x0001) plen 0
> HCI Event: Command Complete (0x0e) plen 12
Read Local Version Information (0x04|0x0001) ncmd 1
HCI sniffer - Bluetooth packet analyzer ver 5.30
device: hci0 snap_len: 1500 filter: 0xffffffff
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
value 0x00 (scanning disabled)
filter duplicates 0x00 (disabled)
> HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Enable (0x08|0x000c) ncmd 1
status 0x0c
Error: Command Disallowed
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
@sander
sander / hcidump
Created May 18, 2015 10:53
node-ancs issue
HCI sniffer - Bluetooth packet analyzer ver 5.24
device: hci0 snap_len: 1500 filter: 0xffffffff
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7
type 0x01 (active)
interval 10.000ms window 10.000ms
own address: 0x00 (Public) policy: All
> HCI Event: Command Complete (0x0e) plen 4
LE Set Scan Parameters (0x08|0x000b) ncmd 1
status 0x00
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2
# DEBUG=* node test.js > ~/debugf
hci-ble hciBle = /home/root/fmp/node_modules/ancs/node_modules/noble/lib/linux/../../build/Release/hci-ble +0ms
hci-ble buffer = "adapterState poweredOn\n" +100ms
hci-ble line = adapterState poweredOn +2ms
hci-ble adapterState = poweredOn +2ms
noble stateChange poweredOn +0ms
noble scanStart +4ms
hci-ble buffer = "event 70:56:81:DA:26:11,public,02011a0bff4c000906" +64ms
hci-ble buffer = "event 70:56:81:DA:26:11,public,02011a0bff4c0009060203c0a8000b,-81\n" +2ms
hci-ble line = event 70:56:81:DA:26:11,public,02011a0bff4c0009060203c0a8000b,-81 +0ms
@sander
sander / devices
Last active August 29, 2015 14:21
Edison Arduino issue
# ls /dev/tty*
/dev/tty /dev/tty2 /dev/tty31 /dev/tty43 /dev/tty55 /dev/ttyACM0
/dev/tty0 /dev/tty20 /dev/tty32 /dev/tty44 /dev/tty56 /dev/ttyGS0
/dev/tty1 /dev/tty21 /dev/tty33 /dev/tty45 /dev/tty57 /dev/ttyMFD0
/dev/tty10 /dev/tty22 /dev/tty34 /dev/tty46 /dev/tty58 /dev/ttyMFD1
/dev/tty11 /dev/tty23 /dev/tty35 /dev/tty47 /dev/tty59 /dev/ttyMFD2
/dev/tty12 /dev/tty24 /dev/tty36 /dev/tty48 /dev/tty6 /dev/ttyPTI0
/dev/tty13 /dev/tty25 /dev/tty37 /dev/tty49 /dev/tty60 /dev/ttyPTI1
/dev/tty14 /dev/tty26 /dev/tty38 /dev/tty5 /dev/tty61 /dev/ttymcu0
/dev/tty15 /dev/tty27 /dev/tty39 /dev/tty50 /dev/tty62 /dev/ttymcu1
@sander
sander / log
Created May 16, 2015 20:12
CMake error in iotkit-lib-c
ERROR: Function failed: do_configure (log file is located at /home/sander/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-lib-c/1.4.8-r0/temp/log.do_configure.14194)
ERROR: Logfile of failure stored in: /home/sander/edison/edison-src/build/tmp/work/core2-32-poky-linux/iotkit-lib-c/1.4.8-r0/temp/log.do_configure.14194
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: SITE files ['endian-little', 'bit-32', 'ix86-common', 'common-linux', 'common-glibc', 'i586-linux', 'common']
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
@sander
sander / NOTE.md
Created March 18, 2015 09:07
Experimenting with ClojureScript on a local server

If you are hosting index.html with a different server than the repl server (e.g. to serve images), load the main js file from localhost:9000. Otherwise reloading your ns won't work.

@sander
sander / gist:3099c6a26cf547e0b19d
Created January 20, 2015 07:38
Lein Sassc error
$ lein repl
nREPL server started on port 49956 on host 127.0.0.1 - nrepl://127.0.0.1:49956
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
Java HotSpot(TM) 64-Bit Server VM 1.7.0_45-b18
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
@sander
sander / Dockerfile
Created January 9, 2015 21:55
WordPress image with imagick, ssmtp, gd, freetype
FROM wordpress
RUN apt-get update && apt-get install -y libmagickwand-6.q16-dev --no-install-recommends \
&& ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config /usr/bin \
&& pecl install imagick \
&& echo "extension=imagick.so" > /usr/local/etc/php/conf.d/ext-imagick.ini
RUN apt-get update && apt-get install -y ssmtp --no-install-recommends \
&& echo 'sendmail_path=/usr/sbin/sendmail -t -i\nsendmail_from=FROM_MAIL_ADDRESS' > /usr/local/etc/php/conf.d/set-sendmail.ini