Skip to content

Instantly share code, notes, and snippets.

Romain Cambier cambierr

Block or report user

Report or block cambierr

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 clean-stack.sh
docker node ls --format '{{.ID}}' | xargs docker node inspect --format '{{.Status.Addr}}' | while read node; do
echo "Processing node $node"
ssh -n $node "docker ps -a --filter 'is-task=true' --format '{{.ID}} {{.Label \"com.docker.stack.namespace\"}}'" | while read container; do
id=$(echo $container | cut -d ' ' -f1)
stack=$(echo $container | cut -d ' ' -f2)
found=$(docker stack ls | grep $stack | wc -l)
View ra_tsaas_export
#!/bin/bash
ra_id=""
ra_key=""
ra_api="https://opentsdb.iot.runabove.io/api"
# check if jq is present:
if [ -f jq-linux64 ]; then
(>&2 echo "jq found !")
else
(>&2 echo "jq not found. Downloading...")
@cambierr
cambierr / gist:330af815f18860ad9a9af8c3ed0ad0c1
Created Sep 14, 2016
The Things Network java protobuf extractor
View gist:330af815f18860ad9a9af8c3ed0ad0c1
#!/bin/bash
root=$(pwd)
workdir="$root/src/main/proto"
javaPackageName='com.example.foo.bar'
branch='refactor'
echo "##############################"
echo "Cleaning workspace...";
echo "##############################"
rm -rf "$workdir/github.com/TheThingsNetwork/ttn"
View keybase.md

Keybase proof

I hereby claim:

  • I am cambierr on github.
  • I am cambierr (https://keybase.io/cambierr) on keybase.
  • I have a public key whose fingerprint is C128 6261 C510 7CF9 FCED C7F1 51F3 DE17 AE67 93AB

To claim this, I am signing this object:

You can’t perform that action at this time.