Skip to content

Instantly share code, notes, and snippets.

View mauodias's full-sized avatar
🔥
Let's see what happens

Maurício Dias mauodias

🔥
Let's see what happens
View GitHub Profile
@mauodias
mauodias / curl.sh
Last active October 28, 2019 00:52
This gist should emulate (until proved wrong) the sample POST sent by Mailgun to set a route that sends messages to APIs: https://app.mailgun.com/app/receiving/routes
#!/usr/bin/env bash
curl -X POST \
http://127.0.0.1:5000 \
-H 'accept: */*' \
-H 'accept-encoding: gzip' \
-H 'cache-control: no-cache' \
-H 'connection: close' \
-H 'host: webhook.site' \
-H 'user-agent: mailgun/treq-16.12.0' \
@mauodias
mauodias / cj
Created June 17, 2017 20:30
Quick and dirty tool to pretty print colored json from the web on the command line
#!/bin/bash
# Quick and dirty tool to pretty print colored json from the web on the command line
# Requires Pygments (http://pygments.org/)
# Save it somewhere like /usr/local/bin and give execution permission:
# $ sudo chmod +x /usr/local/bin/cj
# Usage:
if [ "$#" -ne 1 ]; then

Keybase proof

I hereby claim:

  • I am mauodias on github.
  • I am mauodias (https://keybase.io/mauodias) on keybase.
  • I have a public key whose fingerprint is C2F1 8B47 E29D CA98 AFAD DB96 5B63 6F78 43ED 9998

To claim this, I am signing this object: