Skip to content

Instantly share code, notes, and snippets.

View edgurgel's full-sized avatar

Eduardo Gurgel edgurgel

View GitHub Profile
@edgurgel
edgurgel / example.ex
Created October 10, 2014 22:39
Overriding HTTPoison.Base.request/5
defmodule Example do
use HTTPoison.Base
def request(method, url, body \\ "", headers \\ [], options \\ []) do
IO.inspect [method, url, body, headers, options]
super(method, url, body, headers, options)
end
end
@edgurgel
edgurgel / nginx-custom-build.sh
Created March 25, 2016 21:59
Build Ubuntu or Debian packages for nginx with custom patches, configs, and name suffixes in one command
#!/bin/bash
# Author: Alexander Rodin <[email protected]>
# License: MIT
BUILD_DIR=build
while getopts "hp:s:r:b:o:c:n" opt; do
case $opt in
h)
echo "Usage: $0 [options]"

Keybase proof

I hereby claim:

  • I am edgurgel on github.
  • I am edgurgel (https://keybase.io/edgurgel) on keybase.
  • I have a public key ASCFFdznd_xIcmqTNu9r9OB470iWR9qAaJi0dOKjeSfpPQo

To claim this, I am signing this object: