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
/* | |
* Copyright 2017 Mohsen Mesgarpour | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
// Modified from http://pipetree.com/qmacro/blog/2011/10/automated-email-to-task-mechanism-with-google-apps-script/ | |
// Globals, constants | |
var LABEL_PENDING = "pending"; | |
var LABEL_DONE = "done"; | |
// processPending(sheet) | |
// Process any pending emails and then move them to done | |
function processPending_(sheet) { | |
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
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
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
######################################################################## | |
# MEDIA PLAYER ACTIVITY TRIGGERS LIGHTS | |
# | |
# when tv is playing from kodi or chromecast light will turn on | |
# behind tv and set to an appropriate colour for the time of day | |
# when devices turn off, light turns off | |
# | |
# Monitors for: | |
# - Kodi activity | |
# - Chromecast TV activity |
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
blueprint: | |
name: HA start Notify Telegram | |
description: Notify telegram that Home Assistant has successfully started | |
domain: automation | |
source_url: https://gist.github.com/sawyyz/791394aa2d1d28862aa2a51444ef623f | |
input: | |
notification_title: | |
name: Notification title (Optional) | |
description: 'Default: "My Home Assistant"' | |
default: My Home Assistant |
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
blueprint: | |
name: HA Restart Notify app & telegram | |
description: Notify mobile HA user & telegram that Home Assistant has successfully restarted | |
domain: automation | |
source_url: https://gist.github.com/nikosthanos/0af8b2b484694ede4250ef5817bb4da4 | |
input: | |
notification_title: | |
name: Notification title (Optional) | |
description: 'Default: "Home Assistant"' | |
default: Home Assistant |
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/ash | |
echo "Updating package list..." | |
opkg update > /dev/null | |
if [ `opkg list-upgradable | cut -d " " -f1 | wc -l` -gt 0 ]; then | |
echo "Available updates:" | |
opkg list-upgradable | |
echo "" |
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# iTerm2 (OSX) | |
# Terminal replacement | |
https://www.iterm2.com/downloads.html | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # | |
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
What is Netdata? | |
Get control of your Linux servers | |
Simple. Effective. Awesome. | |
Unparalleled insights, in real-time, of everything happening on your Linux systems and applications, with stunning, | |
interactive web dashboards and powerful performance and health alarms. | |
official site > https://my-netdata.io |
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
## | |
## | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost |