Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Eric Han artishan

🎯
Focusing
View GitHub Profile
@artishan
artishan / ionCheckRadio.js
Created Aug 2, 2015
Simple ion-check-radio directive
View ionCheckRadio.js
/**
* @ngdoc directive
* @name ionCheckRadio
* @module ionic.checkRadio
* @restrict E
* @description
* Ionic checkbox style directive.
*
* @usage
* ```html
@artishan
artishan / gist:e6ca8dd7f9668ed939a4
Created Apr 20, 2015
Grafana - infulxdb dahsboad data backup & restore
View gist:e6ca8dd7f9668ed939a4
#!/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)