Skip to content

Instantly share code, notes, and snippets.

@pote
Last active April 1, 2019 22:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pote/de75d62e4ba6e88dc47992b7a0dbec94 to your computer and use it in GitHub Desktop.
Save pote/de75d62e4ba6e88dc47992b7a0dbec94 to your computer and use it in GitHub Desktop.

En tu .bashrc

alias movie="curl https://movieprodwebapi.azurewebsites.net/api/shows/content/weekly/list?showType=cinema | jq '.[].name'"

alias endgame="movie | grep -E 'Avengers|Vengadores' && say 'WHATEVER IT TAKES'"

Prerequisito: tener instalado jq

Ejecutar movie devuelve todas las películas disponibles en el sitio de movie en Uruguay.

Ejecutrar endgame usa say para decir "whatever it takes" SI ya están las entradas a la venta, y no hace nada en otro caso.

El cron todavía no me andaba porque no me hacía source de los alias, pero cuando lo arregle aviso :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment