Skip to content

Instantly share code, notes, and snippets.

@m-p-3
m-p-3 / ifttt_ipaddr.md
Last active February 26, 2020 14:46
Send hostname and IP address of a system through IFTTT as a notification when the system is up (Debian/Ubuntu/Raspbian)

Instructions

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: **

@m-p-3
m-p-3 / reddit2discord_ifttt.json
Created August 30, 2019 17:33
Reddit to Discord Webhook in IFTTT
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":
@m-p-3
m-p-3 / reset_wifi.ps1
Created October 11, 2018 02:43
Reset WiFi adapter is disconnected (can fix some driver issues where the adapter can't reconnect to a network)
$DisconnectedWiFi = Get-NetAdapter | where {$_.Name -eq "WiFi"} |where {$_.Status -eq "Disconnected"} | select -ExpandProperty Name
if ($DisconnectedWiFi -notlike "Disconnected")
{Restart-NetAdapter -Name $DisconnectedWiFi}
@m-p-3
m-p-3 / TKGRAPHICSSETTINGS.MXML
Last active July 27, 2018 21:21
No Man's Sky 1.5 Graphics Settings, Optimized for AMD FX-8350 (CPU) and AMD RX 480 8GB (GPU), and 16GB of RAM
<?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" />
@m-p-3
m-p-3 / TKGRAPHICSSETTINGS.MXML
Created July 27, 2018 20:44
No Man's Sky 1.5 Graphics Settings (Default/Factory settings)
<?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" />
@m-p-3
m-p-3 / deluge_add.sh
Last active June 4, 2019 16:19
IFTTT Maker Webhook for Deluge notifications when a new torrent is created
#!/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
@m-p-3
m-p-3 / digital_clock.ps1
Last active April 26, 2021 10:16
Simple Digital Clock in Powershell (HH:mm:ss:ff)
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'