Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
| function getKeys(obj, prefix = '') { | |
| if (typeof obj === 'undefined' || obj === null) return []; | |
| return [ | |
| ...Object.keys(obj).map(key => `${prefix}${key}`), | |
| ...Object.entries(obj).reduce((acc, [key, value]) => { | |
| if (typeof value === 'object') return [...acc, ...getKeys(value, `${prefix}${key}.`)]; | |
| return acc; | |
| }, []), | |
| ]; | |
| } |
| const functions = require('firebase-functions'); | |
| const gcs = require('@google-cloud/storage')(); | |
| const sharp = require('sharp') | |
| const _ = require('lodash'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| exports.generateThumbnail = functions.storage.object('uploads/{imageId}').onChange(event => { | |
| const object = event.data; // The Storage object. |