Skip to content

Instantly share code, notes, and snippets.

View artishan's full-sized avatar
🎯
Focusing

Eric Han artishan

🎯
Focusing
View GitHub Profile
@artishan
artishan / ionCheckRadio.js
Created August 2, 2015 11:48
Simple ion-check-radio directive
/**
* @ngdoc directive
* @name ionCheckRadio
* @module ionic.checkRadio
* @restrict E
* @description
* Ionic checkbox style directive.
*
* @usage
* ```html
@artishan
artishan / gist:e6ca8dd7f9668ed939a4
Created April 20, 2015 03:25
Grafana - infulxdb dahsboad data backup & restore
#!/bin/bash
# Grafana infulxdb dahsboad data backup & restore
# example usages >> ./grafana_backup.sh dump grafana -u backup -p pasword -h 127.0.0.1:8086
function parse_options {
function usage() {
echo -e >&2 "Usage: $0 dump DATABASE [options...]
\t-u USERNAME\t(default: backup)
\t-p PASSWORD\t(default: pasword)
\t-h HOST\t\t(default: localhost:8086)