Ask HN: How can I run a program for 1 month against my will?
I wrote a program that does various things around my smart home at various times. I want this program to run for exactly 1 month, even against my will if I change my mind. What's an interesting way to try and achieve this?
Perhaps something along the lines of: starting the program in admin mode, having the password changed to something I don't know, having the password somehow revealed to me at the end of the month. That way, hopefully, the only way to stop the program is by reformatting or some other similar annoying barrier. Just a random idea.
20 comments
[ 0.26 ms ] story [ 55.6 ms ] threadSo the real question is what kind of disincentive can you bake in that will be stronger than your future self's desire to turn off this mysterious program.
If you like money, you could have the program generate a crypto wallet but don't save the private key to disk. Program it to refund any coins sent to it after 30 days, and now you have a financial incentive to keep that process running, since if it ever loses power or otherwise terminates, your money disappears.
Why do you want to run for one month even if you change your mind?
https://psychcentral.com/blog/3-more-obstacles-in-therapy-an...
However, if it's just for you, maybe you could make the smart home keee $CONDITION until a particular smart contract on the Etherium blockchain changes state, and have the contract keep some money in escrow until one month has elapsed, at which time it is sent back to your wallet. If you cancel early, then the money goes into, say, the pi-hole donation address.
Rent a vps. Prepay for a month. Start your program. Write code to change the vps provider account's password (and 2FA?) and ssh password to lock you out. Have the code change passwords back after a month.
On second thought - don't have the code change passwords. Just have the code generate a long random password that you paste into the change password fields. Then the code emails you the password after the month is up. That way you don't have to try to automate the VPS provider's change password system.
- program just runs 1 month, put a raspberry in epoxy
- generate a long password (long enough so it doesn't matter you saw it a few times), find some reminder service or ask a friend to mail it back in a month, delete all local evidence of the password
- generally sealing all relevant equipment with a lock could work. Key has to go to someone else.