Skip to content

Instantly share code, notes, and snippets.

@zezuladp
zezuladp / influx_tag_grafana_time.py
Created February 14, 2017 22:08
a script that updates the templated variables to be the ones that I wanted within a specified timeframe
from influxdb import InfluxDBClient
import json
import requests
INFLUX_UN
INFLUX_PW
INFLUX_DB
INFLUX_PORT
INFLUX_HOST
INFLUX_MEASUREMENT
@thpham
thpham / mongoStatsToGraphite.py
Created February 17, 2014 22:04
python script to send mongodb stats to graphite
import commands
import time
import sys
from socket import socket
import argparse
import os
import pymongo
from pymongo import Connection
import yaml
@rabidpraxis
rabidpraxis / s3_mass_bucket_delete.rb
Created April 2, 2013 16:53
Delete s3 bucket with minimal api calls
require 'fog'
bucket = 'bucket-name'
credentials = {
:provider => 'AWS',
:aws_access_key_id => 'access_key_id',
:aws_secret_access_key => 'secret_key',
}
fog = Fog::Storage.new(credentials)