Trigger: Webhooks, Receive a web request
Event Name: ip_addr
Action: Notifications, Send a rich notification from the IFTTT app
Title: {{Value1}}
Message: {{Value2}}
Link URL:
Image URL: **
function Initialize-Directory { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[ValidateNotNullOrEmpty()] | |
[string]$path | |
) | |
try { | |
if (-not (Test-Path $path -PathType Container)) { |
This: Reddit | |
Trigger: Any new post in subreddit | |
That: Webhooks | |
Action: Make a web request | |
URL: (your Discord webhook URL, DO NOT SHARE) | |
Method: POST | |
Content Type: application/json | |
Body: | |
{ "embeds": |
$DisconnectedWiFi = Get-NetAdapter | where {$_.Name -eq "WiFi"} |where {$_.Status -eq "Disconnected"} | select -ExpandProperty Name | |
if ($DisconnectedWiFi -notlike "Disconnected") | |
{Restart-NetAdapter -Name $DisconnectedWiFi} |
<?xml version="1.0" encoding="utf-8"?> | |
<Data template="TkGraphicsSettings"> | |
<Property name="Version" value="2" /> | |
<Property name="FullScreen" value="true" /> | |
<Property name="Borderless" value="true" /> | |
<Property name="Monitor" value="0" /> | |
<Property name="MonitorNames"> | |
<Property name="MonitorNames_00" value="0|Radeon (TM) RX 480 Graphics|Dell P2312H (Digital)" /> | |
</Property> | |
<Property name="UseScreenResolution" value="true" /> |
<?xml version="1.0" encoding="utf-8"?> | |
<Data template="TkGraphicsSettings"> | |
<Property name="Version" value="2" /> | |
<Property name="FullScreen" value="true" /> | |
<Property name="Borderless" value="false" /> | |
<Property name="Monitor" value="0" /> | |
<Property name="MonitorNames"> | |
<Property name="MonitorNames_00" value="0|Radeon (TM) RX 480 Graphics|Dell P2312H (Digital)" /> | |
</Property> | |
<Property name="UseScreenResolution" value="true" /> |
#!/bin/bash | |
IFTTT_KEY="#####" | |
IFTTT_TRIGGER="deluge_add" | |
TORRENT_ID="$1" | |
TORRENT_NAME="$2" | |
TORRENT_PATH="$3" | |
/usr/bin/curl -X POST -H "Content-Type: application/json" -d '{"value1":"'"${TORRENT_ID}"'","value2":"'"$TORRENT_NAME"'","value3":"'"$TORRENT_PATH"'"}' https://maker.ifttt.com/trigger/$IFTTT_TRIGGER/with/key/$IFTTT_KEY |
Add-Type -AssemblyName System.Windows.Forms | |
$Form = New-Object 'System.Windows.Forms.Form' | |
$Form.Text = "Digital Clock" | |
$Form.BackColor = "#000000" | |
$Form.TopMost = $True | |
$Form.Width = 235 | |
$Form.Height = 72 | |
$Form.MaximizeBox = $False | |
$Form.FormBorderStyle = 'Fixed3D' |