- Navigate to the main feed page of Strava in a web browser:
https://www.strava.com/dashboard?num_entries=100
- Replace the "100" in the above URL with whatever number of activities you wish to give kudos to
- Open Developer Tools in your web browser and navigate to the console
- Paste the script below into the console and press enter:
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
import Foundation | |
import Vapor | |
/// Request+AsyncRetry | |
/// Asyncrhonously retries a piece of work with an eventual successful outcome | |
/// | |
/// - Parameters: | |
/// - retryCount: the total number of retries before giving up | |
/// - usDelayTimeout: number of microseconds to delay between each failed attempt | |
/// - job: async function to perform the work |
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
/* | |
Setup a cloudwatch trigger to call this at an interval slightly less than AWS's timeout for making your lambdas cold. | |
*/ | |
const https = require('https'); | |
// add new lambda endpoints here | |
const lambdaHttpEndpoints = [ | |
// add endpoints here | |
// e.g. "http://example.com", | |
]; |