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 ruby | |
| require "fileutils" | |
| require 'digest' | |
| require 'optparse' | |
| require 'xcodeproject' | |
| # Constants | |
| COMPILER_VER = /(?<=\()(.*)(?= )/.match(`xcrun swift -version`)[0] | |
| CARTHAGE_RESOLVED_FILE="Cartfile.resolved" |
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
| TODO_PROJECT_NAME="YourProject" | |
| if [ $CONFIGURATION = "Release" ]; then | |
| TAGS="FIXME" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ error: \$1/" | |
| TAGS="TODO" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
| else | |
| TAGS="FIXME|TODO" | |
| find "${SRCROOT}/${TODO_PROJECT_NAME}" \( -name "*.swift" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($TAGS).*\$" | perl -p -e "s/($TAGS)/ warning: \$1/" | |
| fi |
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
| # RouterOS script to forward all incoming sms messages to Slack | |
| # Run this script as a scheduled task e.g. every 10 minutes | |
| # Author: Dominik Hadl | |
| # Date: 2024-12-01 | |
| # Version: 1.0 | |
| # Platform: RouterOS 7.15.3 (Mikrotik Chateau LTE6) | |
| # setting variables | |
| :local slackHookUrl "REPLACE_YOUR_SLACK_HOOK_URL"; | |
| :local cHeader "Content-Type: application/json"; |
OlderNewer