Florine W. Dekker
Also fixes a bug with checking token validity dates, reorders some methods for clarity, and ensures that the login menu is not shown in the password reset screen.
|2 days ago|
|src||2 days ago|
|.editorconfig||4 months ago|
|.gitattributes||4 months ago|
|.gitignore||3 months ago|
|Gruntfile.js||4 days ago|
|LICENSE||4 months ago|
|README.md||4 days ago|
|composer.json||4 days ago|
|composer.lock||4 days ago|
|package-lock.json||4 days ago|
|package.json||2 days ago|
|phpstan.neon||4 months ago|
|tsconfig.json||4 months ago|
Get notified when a famous person dies.
Wikipedia's editors are known for updating pages as soon as someone has died. Why not turn that into a service? This tool regularly checks if people are still alive according to Wikipedia, and emails you as soon as that changes.
- PHP 8.1+ (i.e.
apt install php php-cgi)
- composer (make sure
composer.pharis on your path)
# Install dependencies (only needed once) $> composer.phar install $> npm ci
# Build the tool in `dist/` for development $> npm run dev # Same as above, but automatically rerun it whenever files are changed $> npm run dev:server # Build the tool in `dist/` for deployment $> npm run deploy
# Update lock files $> composer.phar update $> npm install
# Run static analysis $> npm run analyze # Run tests $> npm run test # Run static analysis and tests $> npm run check
Build the software and move it to the right directory.
$> npm run deploy # Build $> mv dist/ /var/www/death-notifier/ # Move to public directory
Then, add the following lines to your crontab using
sudo -u www crontab -e:
* * * * * cd /var/www/death-notifier && php /var/www/death-notifier/api.php process-email-queue secret_password */5 * * * * cd /var/www/death-notifier && php /var/www/death-notifier/api.php update-all-trackings secret_password