Skip to content

Instantly share code, notes, and snippets.

# 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:
@cmeury
cmeury / gist:96e2cfc9b1ecbe86ba8912cefc925b31
Created May 10, 2016 16:16
Service n12 shows up in catalog, but not in agent HTTP end-point
# 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":[]}

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 / mengenrabatt.user.js
Last active February 10, 2021 13:36
Greasemonkey User Script to hide Mengenrabatt label on digitec.ch
// ==UserScript==
// @name Remove Mengenrabatt
// @description Removes the red Mengenrabatt label from product lists
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @include http://www.digitec.ch/*
// @include http://www.galaxus.ch/*
// ==/UserScript==