Skip to content

Instantly share code, notes, and snippets.

@jeanlouisferey
jeanlouisferey / gist:54e17e26551859afecc7b94d1945210b
Last active April 30, 2018 09:32
How to install Shade, required by Ansible to manage Openstack, on Ubuntu
1- Install some dependencies:
apt-get install build-essential libssl-dev libffi-dev python-dev
2- Install pip:
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
3- Install shade
pip install shade
@crisidev
crisidev / grafana-dashboard-exporter
Created October 7, 2015 20:35
Command to export all grafana 2 dashboard to JSON using curl
KEY=XXXXXXXXXXXX
HOST="https://metrics.crisidev.org"
mkdir -p dashboards && for dash in $(curl -k -H "Authorization: Bearer $KEY" $HOST/api/search\?query\=\& |tr ']' '\n' |cut -d "," -f 5 |grep slug |cut -d\" -f 4); do
curl -k -H "Authorization: Bearer $KEY" $HOST/api/dashboards/db/$dash > dashboards/$dash.json
done