Create a basic GitLab CI config:
$ cat .gitlab-ci.yml
image: node
before_script:
- npm install
#------------------------------------------------------------------------------------# | |
# PIN Schematics # | |
# # | |
# GPIO-00 MCU-BOOT # | |
# GPIO-01 Speaker Mute-Status # | |
# GPIO-02 I2S MCLK # | |
# GPIO-03 Touch-Screen TT21100 Interrupt Pin # | |
# GPIO-04 ILI92xxx Display DC-Pin (SPI: CLK-Pin) # | |
# GPIO-05 ILI92xxx Display CS-Pin (SPI: MOSI-Pin) # | |
# GPIO-06 ILI92xxx Display SDA # |
substitutions: | |
name: korvo-1 | |
friendly_name: "Korvo 1" | |
ip_address: 192.168.1.101 | |
wifi_ssid: iot | |
power_save: high | |
esphome: | |
name: ${name} | |
platformio_options: |
const { Client } = require("undici"); | |
const qs = require("qs"); | |
exports.ServiceProxy = class ServiceProxy { | |
constructor(options) { | |
if (!options.remote) throw new Error("Options expect `remote`"); | |
try { | |
this.client = new Client(options.remote, { | |
connections: options.connections || 100, |
Install raspbian stretch lite
Config stuff like wifi, ssh...
There is a new method to install ReSpeaker check here
/** | |
* INSTALL: | |
* ---- | |
* > yarn add express request | |
* | |
* RUN: | |
* ---- | |
* > node ./audio-proxy-server | |
*/ | |
const os = require('os'); |
<?php | |
// This code is to explain why current API is not good for user defined serializer. | |
// https://wiki.php.net/rfc/user_defined_session_serializer | |
ob_start(); | |
ini_set('session.serialize_handler', 'php_serialize'); | |
ini_set('session.save_handler', 'files'); | |
ini_set('session.save_path', '/tmp'); | |
ini_set('session.use_strict_mode', 0); |
var express = require('express'), | |
app = express(), | |
cookieParser = require('cookie-parser'), | |
session = require('express-session'), | |
RedisStore = require('connect-redis')(session); | |
app.use(express.static(__dirname + '/public')); | |
app.use(function(req, res, next) { | |
if (~req.url.indexOf('favicon')) | |
return res.send(404); |
function transformer(row){ | |
var log = java.util.logging.Logger.getLogger("transformer"); | |
var LEVEL = java.util.logging.Level.INFO; | |
log.log(LEVEL, "hello world") | |
} |