This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Written by: Robin Gierse - info@thorian93.de - on 20191016 | |
# | |
# Purpose: | |
# This script backs up influx databases | |
# | |
# Version: 0.1 on 20191016 | |
# Version: 0.2 on 20191017 | |
# Version: 0.3 on 20191022 - Add cleanup routine and switch compression to bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func toBase64(data string) string { | |
var buf bytes.Buffer | |
encoder := base64.NewEncoder(base64.StdEncoding, &buf) | |
defer encoder.Close() | |
encoder.Write([]byte(data)) | |
return buf.String() | |
} |