Skip to content

Instantly share code, notes, and snippets.

View twstokes's full-sized avatar
📱
LOAD "*",8,1

Tanner Stokes twstokes

📱
LOAD "*",8,1
View GitHub Profile
//
// ContentView.swift
// Moon
//
// Created by Tanner W. Stokes on 8/9/20.
//
import SwiftUI
struct ContentView: View {
@twstokes
twstokes / influx_backup.sh
Last active April 18, 2017 13:47
InfluxDB Docker backups
#!/bin/bash
mkdir ./backups
dbs=( "_internal" "telegraf" "health" "nodemcu" "sensors" )
for db in "${dbs[@]}"
do
docker run --rm -v $PWD/backups:/backups influxdb influxd backup -database $db -host influx-hostname:8088 /backups/$db
done