Prerequisites: a Twitter account, moderate command line and Google Cloud experience.
Time to complete: a couple of hours.
Alternatively you might consider GitLab hosting.
Google Cloud hosting
Create the smallest (and cheapest) Linux instance on Google Cloud.
Connect to your instance and install the essentials.
sudo apt update && \ sudo apt install rubygems --yes && \ sudo gem install twurl
Authenticate your instance with the two keys you saved earlier. There’s quite a cool PIN exchange with Twitter too.
twurl authorize --consumer-key xxxxxxxx --consumer-secret xxxxxxxx
This will write your authentication details into ~/.twurl which you can copy to another machine and use without reauthenticating.
Connect to your instance and edit your cron tab to make your job run every minute (note the explicit path to twurl).
See cron tab guru for the syntax.
* * * * * /usr/local/bin/twurl -X POST -H api.twitter.com "/1.1/statuses/update.json?status=$(date)"
See what cron is up to.
tail -f /var/log/syslog