Skip to content

Instantly share code, notes, and snippets.

View peterleif's full-sized avatar

Etsushi Nozaki peterleif

  • sigboost, Inc.
  • Tokyo, Japan
View GitHub Profile
@peterleif
peterleif / yocto-setup.sh
Created April 13, 2017 08:32
Yoctoビルド環境セットアップスクリプト (for Ubuntu 16.04)
#!/bin/bash
# Locale settings to support UTF-8
locale-gen en_US.UTF-8
echo 'export LANG=en_US.UTF-8' >> .bashrc
echo 'export LANGUAGE=en_US:en' >> .bashrc
echo 'export LC_ALL=en_US.UTF-8' >> .bashrc
# Add the 32-bit arch for compat libraries
dpkg --add-architecture i386
@peterleif
peterleif / bblayers.conf
Last active May 5, 2017 12:18
bblayers.confとlocal.conf
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
${HOME}/build/poky/meta \
${HOME}/build/poky/meta-poky \
@peterleif
peterleif / audio_test.py
Last active November 2, 2017 06:34
Python audio test
# -*- coding: utf-8 -*-
import numpy as np
import wave
chunk = 1024
fname = 'audio_sample.wav'
foname = 'audio_sample_out.wav'
@peterleif
peterleif / Dockerfile
Created August 5, 2019 05:17
Yocto build dockerfile based on Ubuntu 16.04
# To build:
# docker build --no-cache --build-arg "host_uid=$(id -u)" --build-arg "host_gid=$(id -g)" --tag "yocto:latest" .
# GID and UID are needed to obtain access permission to mounted shared directory
FROM ubuntu:16.04
ENV DEBIAN_FRONTENV noninteractive
# Add the 32-bit arch for compat libraries
RUN dpkg --add-architecture i386
@peterleif
peterleif / sysex.node
Last active April 25, 2020 12:36
改変版sysex.node
<Comment>
Copyright (c) 2018-2020, sigboost, inc., All Rights Reserved.
This file is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license.
<I/O>
input Int : Trigger output
output MidiSysEx : Output
<Description>
Construct MIDI System Exclusive Message.