This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
######################################### | |
#Function: update tuya_gateway app | |
#Usage: ./app_upgrade.sh | |
#Author: hxh | |
#Company: tuya | |
#Version: 3.0 | |
######################################### | |
ENG_MODE_FILE=/tmp/eng_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -RunAsAdministrator | |
New-PSDrive -Name HKCR_RMTO -PSProvider Registry -Root 'HKEY_CLASSES_ROOT' | |
pushd HKCR_RMTO: | |
$keys = '*\shellex\ContextMenuHandlers\ FileSyncEx', 'Directory\Background\shellex\ContextMenuHandlers\ FileSyncEx', 'Directory\shellex\ContextMenuHandlers\ FileSyncEx', 'IE.AssocFile.URL\shellex\ContextMenuHandlers\ FileSyncEx', 'lnkfile\shellex\ContextMenuHandlers\ FileSyncEx' | |
$rights = 'ChangePermissions', 'CreateSubKey', 'Delete', 'FullControl', 'SetValue', 'TakeOwnership', 'WriteKey' | |
foreach ($key in $keys) { | |
REG DELETE "HKEY_CLASSES_ROOT\$key" /ve /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Command line arguments for GrinPro.io miner. | |
General format is: arg1=value1 arg2=value2 etc. | |
Example: | |
Linux: ./GrinProMiner configpath=/absolute/path/to/directory api-port=3333 | |
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory api-port=3333 | |
"configpath" Defines directory where to save or load config.xml file from. | |
Example: | |
Linux: ./GrinProMiner configpath=/absolute/path/to/directory | |
Windows: GrinProMiner.exe configpath=C:\absolute\path\to\directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for a MaxSmart Power Switch. | |
""" | |
import logging | |
import requests | |
import voluptuous as vol | |
from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abkhazia | |
Abkhaziya | |
Afghanistan | |
Albania | |
Algeria | |
American Samoa | |
Andorra | |
Angola | |
Antigua and Barbuda | |
Argentina |
Credit to danielfm
First you need to download the source code and change the package build for the Python package. Replace X
with the version you wish to install:
$ git clone -b openelec-X.0 https://github.com/openelec/openelec.tv
$ cd openelec.tv
$ vim packages/lang/Python/package.mk
Change vim
with whatever text editor you prefer. Then find the following line: