/mouse enable
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
import { | |
LitElement, html | |
} from 'https://unpkg.com/@polymer/lit-element@^0.5.2/lit-element.js?module'; | |
class MappingCard extends LitElement { | |
static get properties() { | |
return { | |
hass: Object, | |
config: Object, | |
} |
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
set service dns forwarding name-server 1.1.1.1 | |
set service dns forwarding name-server 1.0.0.1 | |
set service dns forwarding name-server '2606:4700:4700::1111' | |
set service dns forwarding name-server '2606:4700:4700::1001' | |
set service dns forwarding options dnssec | |
set service dns forwarding options trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5 | |
set service dns forwarding options trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D | |
set service dns forwarding options dnssec-check-unsigned | |
set service dns forwarding options dnssec-timestamp=/config/dnsmasq/dnsmasq.time |
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
# Just an example how to check and upgrade the sonoff-tasmota from the Home Assistant: configuration.yaml | |
# One click upgrade all Sonoff-Tasmota devices, check the current installed and latest available version of firmware. | |
# Twitter link: https://goo.gl/e3y7pa | |
# | |
# 1. Open your sonoff webinterface and add in the "Firmware Upgrade" menu following OTA Url, save! Example: https://goo.gl/6ZMjzA | |
# OTA Url: http://sonoff.maddox.co.uk/tasmota/sonoff.bin | |
# | |
# 2. Below the Home Assistant configuration: | |
script: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<!-- Home: Manual --> | |
<dict> | |
<key>UserDefinedName</key> |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# | |
# Description: Sync Plex playlists to shared users. | |
# Author: /u/SwiftPanda16 | |
# Requires: plexapi | |
from plexapi.exceptions import NotFound | |
from plexapi.server import PlexServer |
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
<?php | |
function processMessage($message) { | |
$groupchat = '-XXXX'; // Group chat id | |
// process incoming message | |
$message_id = $message["message_id"]; | |
$chat_id = $message["chat"]["id"]; | |
$response = array("chat_id" => $chat_id); | |
$plextoken = "YYYY"; // Plex token | |
$plexbaseurl = "https://ASFASFASF.plex.direct:32400"; // PLEX DIRECT URL |
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
// | |
// Smooth scroll-to inspired by: | |
// http://stackoverflow.com/a/24559613/728480 | |
// | |
module.exports = function (scrollTo, scrollDuration) { | |
// | |
// Set a default for where we're scrolling to | |
// |
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
# | |
# -- WeeChat theme -- | |
# $name: _backup.theme | |
# $date: 2016-10-20 | |
# $weechat: 1.6 | |
# $script: theme.py 0.1-dev | |
# | |
aspell.color.misspelled = "lightred" | |
aspell.color.suggestions = "default" | |
irc.color.input_nick = "lightcyan" |