Execute the following commands in the terminal:
/usr/bin/defaults write /tmp/com.microsoft.Edge.plist HubsSidebarEnabled -bool false
sudo mkdir /Library/Managed\ Preferences
sudo mv /tmp/com.microsoft.Edge.plist /Library/Managed\ Preferences/
# StackOverflow: http://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo | |
# Source: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-with-nvm-node-version-manager-on-a-vps | |
# The below command seems to fix the problem | |
n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local | |
# The above command is a bit complicated, but all it's doing is copying whatever version of node | |
# you have active via nvm into the /usr/local/ directory (where user installed global files should | |
# live on a linux VPS) and setting the permissions so that all users can access them. |
export default function inlineWorker() { | |
let recLength = 0, | |
recBuffers = [], | |
sampleRate, | |
numChannels; | |
this.onmessage = function(e){ | |
switch(e.data.command){ | |
case 'init': | |
init(e.data.config); |
const HomeKitDevice = require('../HomeKitDevice') | |
class GledoptoLedController extends HomeKitDevice { | |
static get description() { | |
return { | |
model: [ | |
'GLEDOPTO', | |
], | |
manufacturer: 'GLEDOPTO', | |
name: 'GLEDOPTO Led Controller', |
#EXTM3U | |
#EXTINF:0,Первый канал | |
#EXTGRP:другие | |
http://6557675f.ottclub.mobi/iptv/WXR5KQQTP3GSPP/127/index.m3u8 | |
#EXTINF:0,Россия 1 | |
#EXTGRP:другие | |
http://6557675f.ottclub.mobi/iptv/WXR5KQQTP3GSPP/504/index.m3u8 | |
#EXTINF:0,НТВ | |
#EXTGRP:другие | |
http://6557675f.ottclub.mobi/iptv/WXR5KQQTP3GSPP/501/index.m3u8 |
const HomeKitDevice = require('../HomeKitDevice') | |
class AqaraTunableWhiteBulb extends HomeKitDevice { | |
static get description() { | |
return { | |
model: 'lumi.light.aqcn02', | |
manufacturer: 'LUMI', | |
name: 'Aqara Bulb', | |
} | |
} |
const HomeKitDevice = require('../HomeKitDevice') | |
class IkeaTradfriDimmableBulb extends HomeKitDevice { | |
static get description() { | |
return { | |
model: [ | |
'TRADFRI bulb E27 opal 1000lm', | |
'TRADFRI bulb E27 W opal 1000lm', | |
], | |
manufacturer: 'IKEA of Sweden', |
const XIAOMI_STRUCT_ATTR = { id: 65281, type: 'charStr' } | |
const XIAOMI_STRUCT_OLD_ATTR = { id: 65282, type: 'charStr' } | |
const XIAOMI_MULTICLICK_ATTR = { id: 32768, type: 'boolean' } | |
const XIAOMI_PRESSURE_ATTR = { id: 16, type: 'int16' } | |
function parseXiaomiStruct(rawData) { | |
const buffer = new Buffer(rawData, 'ascii') | |
const data = {} | |
let index = 0 | |
while (index < buffer.length) { |
// This example shows the difference | |
// between classNames, classNames/bind and classnames-loader | |
// submit-button.css | |
/* | |
:local .className { | |
color: green; | |
background: red; | |
} |