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: Send a camera snapshot when doorbell was activated | |
description: 'This automation blueprint creates a camera snapshot when the doorbell was activated and | |
sends a notification to your phone with the picture. | |
' | |
domain: automation | |
input: | |
binary_sensor: | |
name: Push button |
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
<?xml version="1.0" encoding="utf-8"?> | |
<service> | |
<short>UniFi Controller</short> | |
<description>The UniFi Controller application allows you to manage all your UniFi networking devices from a single console.</description> | |
<port protocol="tcp" port="8443"/><port protocol="tcp" port="8080"/><!-- HTTP and HTTPS Interface (required)> --> | |
<port protocol="tcp" port="8880"/><port protocol="tcp" port="8843"/><!--HTTP and HTTPS Guest Portals --> | |
<port protocol="udp" port="10001"/><!-- AP Discovery --> | |
<port protocol="udp" port="3478"/><!-- STUN port --> | |
<port protocol="udp" port="1900"/><!-- L2 Discovery --> | |
<port protocol="tcp" port="6789"/><!-- Mobile speed test --> |
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
#!/usr/bin/python3 | |
#uyd archive scraper | |
from htmldom import htmldom | |
import urllib | |
links = "" | |
epcount = 2 | |
try: |
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
[ | |
// Bot 2 (advanced options): | |
{ | |
"nickname": "test", | |
"server": "irc.bottest.org", | |
"discordEmail": "[email protected]", | |
"discordPassword": "letmein123", | |
"autoSendCommands": [ // Commands that will be sent on connect | |
["PRIVMSG", "NickServ", "IDENTIFY password"], | |
["MODE", "test", "+x"], |
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
#! /usr/bin/env python | |
# | |
# Example program using irc.bot. | |
# | |
# Joel Rosdahl <[email protected]> | |
"""A simple example bot. | |
This is an example bot that uses the SingleServerIRCBot class from | |
irc.bot. The bot enters a channel and listens for commands in | |
private messages and channel traffic. Commands in channel messages |
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 | |
# OS X Screenshot Automation | |
# github.com/uvclay/osx-ss | |
# Alpha whatever it works so who cares | |
# Requires: fswatch, terminal-notifier | |
# TODO: Installer | |
# TODO: Notification area icon | |
# TODO: launchctl daemon | |
# TODO: Rewrite awful bash loop in Python |
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
<?php | |
$dir = getcwd(); | |
$tvr = array("banner.jpg", "clearart.png", "logo.png", "fanart.jpg", "tvshow.nfo"); | |
$mvr = array("fanart.jpg", "poster.jpg", "movie.nfo"); | |
$tvd = array("/anime", "/tv"); | |
$mvd = array("/movies"); | |
foreach ($mvd as $wd){ | |
$newdir = $dir.$wd; |
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
__author__ = 'Clay' | |
import os, shutil | |
path = '/home/gungame/csgo/csgo/maps/workshop' | |
new = '/home/gungame/csgo/csgo/maps' | |
for dirname, dirnames, filenames in os.walk(path): | |
for filename in filenames: | |
fname_path = os.path.join(dirname, filename) | |
fext = os.path.splitext(fname_path)[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
# /etc/init.d/synctube | |
### BEGIN INIT INFO | |
# Provides: synctube | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog | |
# Should-Start: $named $time | |
# Should-Stop: $named $time | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start the synctube process |