Skip to content

Instantly share code, notes, and snippets.

Cedric Meury cmeury

Block or report user

Report or block cmeury

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am cmeury on github.
  • I am cedricmeury (https://keybase.io/cedricmeury) on keybase.
  • I have a public key ASDB2-6VjS3qMFpSeWsvbRGX1ndQ0vEoae7vCIPgJ8yZnQo

To claim this, I am signing this object:

@cmeury
cmeury / gist:96e2cfc9b1ecbe86ba8912cefc925b31
Created May 10, 2016
Service n12 shows up in catalog, but not in agent HTTP end-point
View gist:96e2cfc9b1ecbe86ba8912cefc925b31
# curl -s http://localhost:8500/v1/agent/services | grep n12
# curl -s http://localhost:8500/v1/catalog/services | grep n12
{"consul":[],"n12":["dev"],"test-web":[]}
View splice.py
# Data:
list = [-1, 1, 2, 3, -1, 4, 5, 6, -1]
# == Determine bondaries ===
minus = []
# iterate over list
for l in range(len(list)):
if list[l] == -1:
You can’t perform that action at this time.