fixing X11/extensions/XTest.h No such file or directory in ubuntu
If you get the error: X11/extensions/XTest.h: No such file or directory, install:
elixir [error] backend port not found :inotifywait in ubuntu
If you get this error: [error] backend port not found: :inotifywait, then you need to install inotify-tools, like this:
elixir in ubuntu 15.10
Been receiving this message when trying to install esl-erlang:
So, I went to Erlang Solutions Page, and I downloaded the deb for my platform (64bit), and installed it. Afterwards, I followed the steps shown on elixir’s page:
Followed by a sudo make install, and I got elixir running on my pc.
adding a bin/console to your gem
In case you prefer pry as a console, you could replace the irb lines with this:
using the openresty's lua interpreter from the command line
If you’re using openresty, you can make use of the lua interpreter from the command line if you need to test some code that will be ran in nginx. On my pc, I can access the interpreter ( REPL mode ) like this:
And if you need to execute a file, do:
openresty deny request with access_by_lua
Example config:
This way, if some_condition is not true, nginx will return a 403 and not do the proxy pass.
inspecting objects with node util inspect
Default depth for util.inspect is 2, to make it infinite: