diff options
author | Franck Cuny <fcuny@twitter.com> | 2019-01-19 10:39:46 -0800 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2019-01-19 10:39:46 -0800 |
commit | 9353c33abad9a486c67ea8bc82e06b37d3b36a92 (patch) | |
tree | b27ff6c5259e7cd983b55153d1fe1438cc75cd6b /scripts | |
parent | [bash] go back to simple prompt. (diff) | |
download | emacs.d-9353c33abad9a486c67ea8bc82e06b37d3b36a92.tar.gz |
clean up.
Removed scripts and some configs, they will be in their own repo.
Diffstat (limited to '')
-rwxr-xr-x | scripts/bastion | 3 | ||||
-rwxr-xr-x | scripts/cqlmetrics | 11 | ||||
-rwxr-xr-x | scripts/cqlq | 17 | ||||
-rwxr-xr-x | scripts/ipmi | 3 |
4 files changed, 0 insertions, 34 deletions
diff --git a/scripts/bastion b/scripts/bastion deleted file mode 100755 index 1ae0629..0000000 --- a/scripts/bastion +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -ssh nest.smfc.twitter.com diff --git a/scripts/cqlmetrics b/scripts/cqlmetrics deleted file mode 100755 index db3db6a..0000000 --- a/scripts/cqlmetrics +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -service=$1 - -if [ -z "${service}" ]; then - exit 1 -fi - -zone="${2:-smf1}" - -echo $(cql -z "${zone}" k "${service}" "sd.${service}" | fzf) diff --git a/scripts/cqlq b/scripts/cqlq deleted file mode 100755 index bf47c50..0000000 --- a/scripts/cqlq +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -service=$1 -if [ -z "${service}" ]; then - exit 1 -fi - -zone="${2:-smf1}" - -metric=$(cqlmetrics "${service}" "${zone}") - -query="zone(${zone}, ts(${service}, members(sd.${service}), ${metric}))" - -short_id=$(curl -s --negotiate -u : -X POST https://monitoring.twitter.biz/api/2/url/shortener --data "{\"longUrl\":\"/query?&queries=%5B%7B%22id%22%3A%22query-1%22%2C%22name%22%3A%22Query%201%22%2C%22query%22%3A%22$query%22%2C%22settings%22%3A%7B%22visible%22%3Atrue%7D%7D%5D\"}" | jq '.id') - -echo "http://monitoring.twitter.biz/tiny/${short_id}" -open "http://monitoring.twitter.biz/tiny/${short_id}" diff --git a/scripts/ipmi b/scripts/ipmi deleted file mode 100755 index b5bec84..0000000 --- a/scripts/ipmi +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -ssh conman-server.smf1.twitter.com |