Skip to content

Instantly share code, notes, and snippets.

Avatar
📱
LOAD "*",8,1

Tanner Stokes twstokes

📱
LOAD "*",8,1
View GitHub Profile
View SunMoon.swift
//
// ContentView.swift
// Moon
//
// Created by Tanner W. Stokes on 8/9/20.
//
import SwiftUI
struct ContentView: View {
@twstokes
twstokes / influx_backup.sh
Last active Apr 18, 2017
InfluxDB Docker backups
View influx_backup.sh
#!/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