Skip to content

Instantly share code, notes, and snippets.

@PiAir
PiAir / .env
Created Jun 7, 2020
Redash docker install Synology
View .env
PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
# generate a password at https://www.pwdgen.org/
# use a different one for each of the next 3 lines
POSTGRES_PASSWORD=xxxxxx
REDASH_COOKIE_SECRET=-yyyyyy
REDASH_SECRET_KEY=-zzzzz
# replace the xxxxxx with the password generated for line 6
REDASH_DATABASE_URL=postgresql://postgres:xxxxxx@postgres/postgres
@PiAir
PiAir / view.php
Created Jun 3, 2020
Moodle H5P xAPI connection
View view.php
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
View microbit_eddystone_2.js
eddyStoneData = [
0x03, // Length of Service List
0x03, // Param: Service List
0xAA, 0xFE, // Eddystone ID
0x13, // Length of Service Data
0x16, // Service Data
0xAA, 0xFE, // Eddystone ID
0x10, // Frame type: URL
0xF8, // Power
0x03, // https://
View microbit_eddystone.js
NRF.setAdvertising([0x03, // Length of Service List
0x03, // Param: Service List
0xAA, 0xFE, // Eddystone ID
0x13, // Length of Service Data
0x16, // Service Data
0xAA, 0xFE, // Eddystone ID
0x10, // Frame type: URL
0xF8, // Power
0x03, // https://
'g','o','o','.','g','l','/','Q','F','l','7','l','9'],
View Onename
Verifying that +pierregorissen is my blockchain ID. https://onename.com/pierregorissen