Skip to content

Instantly share code, notes, and snippets.

View cambierr's full-sized avatar

Romain Cambier cambierr

View GitHub Profile
@cambierr
cambierr / keybase.md
Created August 10, 2016 07:44
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:

@cambierr
cambierr / gist:330af815f18860ad9a9af8c3ed0ad0c1
Created September 14, 2016 13:13
The Things Network java protobuf extractor
#!/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"
#!/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 / clean-stack.sh
Created February 23, 2018 20:26
This scripts is a temporary workaround for https://github.com/moby/moby/issues/32620
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)
@cambierr
cambierr / ec
Last active December 28, 2023 21:15
ssh_key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINC/N1lTSNsPZ3OR6nWKoi7uVqsNf+DJSM4H0LQ/8g7w me@romaincambier.be