This gist contains a set of MacroDroid macros exported to .mdr format.
The macros are designed to send notifications about calls, SMS, and Wi-Fi events directly to a Telegram chat using the Telegram Bot API.
- Outgoing call notifications
This gist contains a set of MacroDroid macros exported to .mdr format.
The macros are designed to send notifications about calls, SMS, and Wi-Fi events directly to a Telegram chat using the Telegram Bot API.
| <# | |
| .SYNOPSIS | |
| Copies a file to multiple destinations matching a wildcard path pattern. | |
| .DESCRIPTION | |
| This script copies a specified source file to multiple target directories defined | |
| by a wildcard-based destination pattern. Use '*' in any folder segment to match | |
| any directory name. Existing files are not overwritten unless you use -Force. | |
| .PARAMETER SourcePath |
This gist resolves newline symbol missing in Macrodroid HTTP GET searchParams.
This is a template created for dedicated purpose - to copy them raw and paste without modifications to Macrodroid HTTP GET searchParams modal window. By pasting as raw without any modification, you will get a message with newlines, preserved for HTTP GET method.
This is a simple URL proxy script that forwards requests to a target URL specified by the url query parameter. If no URL is provided or if the URL is invalid, the script returns a 400 error.
Let's assume I do not like to set and maintain MongoDB GPG keys and their repsitory lists in my Ubuntu host. I just need to download binaries and they should work.
This script only download a .tgz archive that contains requested binaries, to directory this script was run from.
| #!/bin/bash | |
| # This script downloads specific asset that may be not included in the latest release | |
| # but could be found in some other tag (version). | |
| # You can set DEBUG=true ./download_asset.sh comnmand to enable debug messages. | |
| # Requires curl, jq and head installed. | |
| # You can set GitHub Personal Access token in $GITHUB_TOKEN to avoid API rate limiting. Look below. | |
| # Constants (replace with your repo details) | |
| OWNER="repo-owner-account" # GitHub username or organization |
| # Requires ImageMagick to be installed: winget install -e --id ImageMagick.ImageMagick --source winget --accept-source-agreements --accept-package-agreements | |
| # Ask the user for the input file path | |
| $imagePath = Read-Host "Enter the path to the image file" | |
| # Ask the user for the number of horizontal splits | |
| $numParts = [int](Read-Host "Enter the number of horizontal parts to split the image into") | |
| # Validate inputs | |
| if (!(Test-Path $imagePath)) { | |
| Write-Host "The file does not exist. Exiting." -ForegroundColor Red |
| // Helper function to check if all characters in a string are the same | |
| function allSame(str) { | |
| return str.split('').every(char => char === str[0]); | |
| } | |
| // Helper function to check if a string is a palindrome | |
| function isPalindrome(str) { | |
| return str === str.split('').reverse().join(''); | |
| } |