diff options
| author | alex <alex@pdp7.net> | 2023-10-13 16:11:25 +0200 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-10-13 16:11:25 +0200 |
| commit | 250201b433c0a99f6cabcb2596bfe43f1a5a3968 (patch) | |
| tree | 8dc5de16ed4315b3ab4fcc001b7dbd74d475c4b3 /blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi | |
| parent | 1a80ac63854ba4ea28f81194ad15314771e979d5 (diff) | |
Moving to prod!
Diffstat (limited to 'blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi')
| -rw-r--r-- | blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi b/blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi new file mode 100644 index 00000000..b0d205fe --- /dev/null +++ b/blog/content/2020/12/un-dios-griego-el-servicio-postal-una-frambuesa-y-un-elemento-de-una-imagen.gmi @@ -0,0 +1,18 @@ +# Un dios griego, el servicio postal, una frambuesa y un elemento de una imagen +2020-12-25 + +``` +$ cat check_pixel +#!/bin/bash + +set -ue + +curl -s https://store.google.com/config/pixel_4a?hl=es >/tmp/pixel +grep Agotado /tmp/pixel >/dev/null || mail yo@example.com -s "pixel disponible" </dev/null + +$ crontab -l +# m h dom mon dow command +16 * * * * /home/alex/check_pixel +``` + +Actualización: parece ser que el script no funciona correctamente (acabo de comprobar que ya hay Pixels y no he recibido email). Me da un poco igual porque ya he comprado uno en la FNAC de Francia, como 40€ más barato, que ha llegado hoy.
\ No newline at end of file |
