Skip to content

Instantly share code, notes, and snippets.

@AnuragRamdasan
AnuragRamdasan / swiggy-artoo.js
Created March 11, 2018 09:07
Scripts to automate invoice downloads
;(function($, undefined) {
var scraper = {
iterator: '._3xMk0',
data: {
date: { sel: '._2fkm7 span', method: 'text' },
restaurant: {sel: '._3h4gz', method: 'text'},
id: {sel: '._2uT6l', method: 'text'},
price: {sel: '._3Hghg', method: 'text'}
},
20:28:04.489 request_id=YKBV9h8rPqSKmuGDpZGs [debug] Processing by Chat.PageController.chat/2
Parameters: %{"format" => "html"}
20:28:04.503 request_id=YKBV9h8rPqSKmuGDpZGs [debug] Processing by Phoenix.Controller.ErrorController.error_debug/2
Parameters: %{"format" => "html"}
20:28:04.512 request_id=YKBV9h8rPqSKmuGDpZGs [error] **(Protocol.UndefinedError) protocol Enumerable not implemented for nil
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:140: Enumerable.count/1
(elixir) lib/enum.ex:434: Enum.count/1
(chat) web/views/page_view.ex:2: Chat.PageView.render/2
(phoenix) lib/phoenix/view.ex:247: Phoenix.View.render_within/3
@AnuragRamdasan
AnuragRamdasan / gist:2b0ac072842100858aeb
Created July 8, 2014 19:08
removing all docker data
# remove stopped docker containers
sudo docker rm -f $(sudo docker ps -a -q)
# remove all docker images
sudo docker rmi $(sudo docker images -q)