View beep.cpp
#include <AL/alut.h> // OpenAl
#include <cmath>
#include <iostream>
#include <thread>
using namespace std;
void init_al() {
const char* defname = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
ALCdevice* dev = alcOpenDevice(defname);
View bepp.cpp
#include <cmath>
#include <iostream>
#include <thread>
using namespace std;
#include <AL/alut.h> // OpenAl
void init_al()
{
View eh-receiver.js
const EventHubClient = require('azure-event-hubs').Client;
const Promise = require('bluebird');
const connectionString = '__OBFUSCATED__';
const eventHubPath = 'foo';
const client = EventHubClient.fromConnectionString(connectionString, eventHubPath);
var printError = function(err) {
console.error(err.message);
View test-utf8-length.js
(new TextEncoder('utf-8').encode('è'))
View u-boot-usb.txt
env set bootcmd_usb "run findfdt; usb start; if run loadimage_usb; then run usbboot; fi"
env set loadfdt_usb "fatload usb ${usbdev}:${usbpart} ${fdt_addr} ${fdt_file}"
env set loadimage_usb "fatload usb ${usbdev}:${usbpart} ${loadaddr} ${image}"
env set usbargs "setenv bootargs console=${console},${baudrate} root=${usbroot}"
env set usbboot "echo Booting from usb ...; run usbargs; if run loadfdt_usb; then bootz ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi"
env set usbdev 0
env set usbpart 1
env set usbroot "/dev/sda2 rootwait rw"
run bootcmd_usb
View post-commit
#!/bin/bash
FILE="$( cd "${GIT_DIR}" && cd .. && pwd )/.gitversion.h"
echo '#ifndef GIT_VERSION' > "${FILE}"
echo -n '#define GIT_VERSION "' >> "${FILE}"
git rev-parse HEAD | tr -d '\n' >> "${FILE}"
echo '"' >> "${FILE}"
echo '#endif' >> "${FILE}"
View qt5-rpi3.md
./configure -v -opengl es2 -tslib -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/  -opensource -confirm-license -reduce-exports -release -qt-pcre -make libs -no-use-gold-linker -prefix /opt/Qt -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtwinextras -skip qtx11extras -ssl -no-cups -no-gtk -qt-libjpeg -qt-libpng
make -j3
View android-mosquitto-cmake.sh
cmake -DANDROID_NDK=/opt/android-ndk/android-ndk-r10e -DANDROID_ABI="armeabi" -DANDROID_NDK_HOST_X64="YES" -DANDROID_TOOLCHAIN_NAME="arm-linux-androideabi-4.9" -DCMAKE_TOOLCHAIN_FILE="/opt/android-ndk/build/cmake/android.toolchain.cmake" -DWITH_TLS=OFF -DWITH_THREADING=OFF ..
View Services.cpp
#include "Services.hpp"
#include "../common/log.hpp"
#include <typeinfo>
#include "../modules/pluggit/Pluggit.hpp"
#include "../modules/openmotics/OpenMotics.hpp"
namespace myhome {
View modbus_pluggit.md