Skip to content

Instantly share code, notes, and snippets.

@kasparsd
kasparsd / app_upgrade.sh
Last active July 12, 2022 23:34
Zemismart Zigbee Gateway TYZS4, see https://paulbanks.org/projects/lidl-zigbee/
#!/bin/sh
#########################################
#Function: update tuya_gateway app
#Usage: ./app_upgrade.sh
#Author: hxh
#Company: tuya
#Version: 3.0
#########################################
ENG_MODE_FILE=/tmp/eng_mode
@logchan
logchan / Remove-Move-To-OneDrive.ps1
Created February 24, 2019 16:41
Remove the "Move to OneDrive" context menu item permanently by clearing the values of the registry keys and denying access.
#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
@urza
urza / GrinPro.io-Args
Last active February 21, 2019 23:39
command line arguments
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
@joerodgers
joerodgers / Add-CodeDomAuthorizedType.ps1
Last active January 4, 2023 13:36
Adds the necessary authorizedType elements in the WEB.CONFIG and OWSTIMER.EXE.CONFIG on SharePoint servers
<#
This Sample Code is provided for the purpose of illustration only and is not intended to be used in a production environment.
THIS SAMPLE CODE AND ANY RELATED INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
We grant you a nonexclusive, royalty-free right to use and modify the sample code and to reproduce and distribute the object
code form of the Sample Code, provided that you agree:
(i) to not use our name, logo, or trademarks to market your software product in which the sample code is embedded;
(ii) to include a valid copyright notice on your software product in which the sample code is embedded; and
(iii) to indemnify, hold harmless, and defend us and our suppliers from and against any claims or lawsuits, including
@Superkikim
Superkikim / maxsmart.py
Last active April 4, 2023 10:48
home assistant MaxSmart / Revogi
"""
Support for a MaxSmart Power Switch.
"""
import logging
import requests
import voluptuous as vol
from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA)
@Betree
Betree / countries.txt
Created October 17, 2016 01:48
Run internet speed tests on multiple countries using speedtest.net
Abkhazia
Abkhaziya
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Antigua and Barbuda
Argentina
@cvium
cvium / flexget-on-openelec.md
Last active August 1, 2018 12:51
Flexget on OpenELEC on Raspberry Pi

Instructions

Credit to danielfm

Compile from Source

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: