Skip to content

Instantly share code, notes, and snippets.

import requests
url = 'https://github.com/roundcube/roundcubemail/releases/latest'
r = requests.get(url)
version = r.url.split('/')[-1]
print(version)
@ackbyte
ackbyte / grafana-dashboard-exporter
Created January 13, 2020 12:39 — forked from kosuke-/grafana-dashboard-exporter
Command to export all grafana 2 dashboard to JSON using curl
#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
KEY=$(<~/.grafanakey)
HOST="https://mdmdev.cloudtrust.rocks"
if [ ! -d $SCRIPT_DIR/dashboards ] ; then
mkdir -p $SCRIPT_DIR/dashboards
fi