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
# automations.yaml | |
alias: "Update Doorbell with Day-Specific Message at 4:10am" | |
trigger: | |
- platform: time | |
at: "00:04:10" # Run daily at midnight | |
action: | |
- choose: | |
- conditions: | |
- condition: or |
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
# automations.yaml | |
# Update Unifi Doorbell with Day-Specific Message in Home Asssistant | |
# pulling data from build in calendar and "home calendar" that has custom events listed in it. | |
# This only works if you have alreadys set these messages in the doorbell as a custom message. | |
alias: "Update Doorbell with Day-Specific Message" | |
trigger: | |
- platform: time | |
at: "00:00:00" # Run daily at midnight | |
action: |
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 | |
import os | |
import pickle | |
import requests | |
import google.auth.transport.requests | |
from google.oauth2.credentials import Credentials | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from googleapiclient.discovery import build | |
from datetime import datetime, timedelta |
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
$currentUser = Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty UserName | |
$username = $currentUser.Split('\')[1] | |
$userPrincipalName = $username + "@domain.net" | |
$TenantId = "xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx" | |
$AppId = "xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx" | |
$AppSecret = "xx-xx~xxxxxxx~xxxxxxxx.~xxxxxxx" | |
$GroupTag = "Pre-Provision" | |
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Confirm:$false -Force:$true | |
Install-Script get-windowsautopilotinfo -Confirm:$false -Force:$true |
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
# Get the current logged in user's username | |
$currentUser = Get-WmiObject -Class Win32_ComputerSystem | Select-Object -ExpandProperty UserName | |
$username = $currentUser.Split('\')[1] | |
# Build the UserPrincipalName | |
$userPrincipalName = $username + "@domain.net" | |
# Install the Upload-WindowsAutopilotDeviceInfo script | |
Install-Script -Name Upload-WindowsAutopilotDeviceInfo -Force -Confirm:$False |
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 | |
/* | |
Plugin Name: Plugin Title Truncator | |
Plugin URI: https://yourwebsite.com/plugin-title-truncator | |
Description: This plugin truncates plugin titles in the WordPress plugin directory to a maximum of 4 words. | |
Version: 1.0 | |
Author: Your Name | |
Author URI: https://yourwebsite.com | |
License: GPLv2 or later | |
Text Domain: plugin-title-truncator |
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"?> | |
<opml version="1.0"> | |
<head> | |
<title>Jason's Overcast Podcast Subscriptions</title> | |
</head> | |
<body> | |
<outline type="rss" text="Griddlecakes Radio" title="Griddlecakes Radio" xmlUrl="https://www.griddlecakes.com/griddlecakes.xml" htmlUrl="http://www.griddlecakes.com/"/> | |
<outline type="rss" text="Cortex" title="Cortex" xmlUrl="https://www.relay.fm/cortex/feed" htmlUrl="https://www.relay.fm/cortex"/> | |
<outline type="rss" text="Upgrade" title="Upgrade" xmlUrl="https://www.relay.fm/upgrade/feed" htmlUrl="https://www.relay.fm/upgrade"/> | |
<outline type="rss" text="Switched on Pop" title="Switched on Pop" xmlUrl="https://feeds.megaphone.fm/switchedonpop" htmlUrl="http://www.switchedonpop.com/"/> |
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
-- determine if path to '~/Pictures/Screenshots' exists, if not, create it | |
set homeFolderPath to POSIX path of (path to home folder as string) | |
set screenshotStoragePath to homeFolderPath & "Pictures/Screenshots/" | |
tell application "System Events" | |
if (not (exists folder screenshotStoragePath)) then | |
tell application "Finder" | |
make new folder at (path to home folder as string) & "Pictures" with properties {name:"Screenshots"} | |
end tell | |
end if | |
end tell |
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
#topbanner a{ color: black;} | |
#topbanner a:hover{ color: white;} | |
#footer a{ color: black;} | |
#footer a[href^="tel:"] { | |
font-weight: bold; | |
color: #68a648; | |
} |
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 _win to false | |
tell application "Google Chrome" | |
set {idList, urlList} to {id, URL} of every tab of every window | |
end tell | |
set AppleScript's text item delimiters to linefeed | |
if (urlList as text) contains "https://meet.google.com/" = true then | |
set theWin to 1 |
NewerOlder