Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
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() | |
} |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/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 |