Skip to content

Instantly share code, notes, and snippets.

View fdiasr's full-sized avatar

Fernando Dias fdiasr

View GitHub Profile
@fdiasr
fdiasr / curl.md
Created October 10, 2017 03:03 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

global
log 127.0.0.1 local1
maxconn 4096
#chroot /usr/share/haproxy
uid 99
gid 99
#debug
#quiet
defaults
docker stop upstream1
docker stop upstream2
docker rm upstream1
docker rm upstream2
docker run -d -p 5673:5672 -p 8081:15672 -h upstream1 --name upstream1 -e RABBITMQ_ERLANG_COOKIE='SJBDYCLARUGZFQFCDQQZ' rabbitmq:3-management
docker run -d -p 5674:5672 -p 8082:15672 -h upstream2 --name upstream2 -e RABBITMQ_ERLANG_COOKIE='SJBDYCLARUGZFQFCDQQZ' rabbitmq:3-management
docker exec upstream2 rabbitmqctl stop_app
docker exec upstream2 rabbitmqctl join_cluster rabbit@upstream1
@fdiasr
fdiasr / bobp-python.md
Last active September 9, 2015 18:25 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

The gist