This file contains hidden or 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/bash | |
| # | |
| # Copyright 2011, Tim Branyen @tbranyen <[email protected]> | |
| # Dual licensed under the MIT and GPL licenses. | |
| # | |
| # Automatically clone single or multiple repos into a folder, | |
| # great for setting up a git projects folder. | |
| # | |
| # Install: curl https://gist.github.com/raw/902154/github.sh > /usr/local/bin/gh | |
| # chmod +x /usr/local/bin/gh |
This file contains hidden or 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/bash | |
| # Author: Erik Kristensen | |
| # Email: [email protected] | |
| # License: MIT | |
| # Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
| # Usage: ./check_docker_container.sh _container_id_ | |
| # | |
| # Edited by: Paulo José de Oliveira Salgado | |
| # Email: [email protected] |
This file contains hidden or 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 hidden or 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 hidden or 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 [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| <!-- General Settings --> | |
| <advancedsettings> | |
| <loglevel hide="true">-1</loglevel> <!-- Comment: Disables logging --> | |
| <playcountminimumpercent>95</playcountminimumpercent> | |
| <skiploopfilter>0</skiploopfilter> <!-- Comment: For RPi or similar use 16 or higher (low CPU usage) --> | |
| <nodvdrom>true</nodvdrom> | |
| <!-- Streaming Optimization --> | |
| <network> | |
| <buffermode>1</buffermode> <!-- Comment: Default is 1 --> |
This file contains hidden or 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
| # Tested on OSX Yosemite 10.10.4 | |
| # XXX TODO | |
| # should I disable com.google.Keystone.Agent ?? | |
| # http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
| # Stop DS_Store file creation on network connections | |
| # restart Finder afterwards | |
| defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
NewerOlder