I hereby claim:
- I am techjanitor on github.
- I am oscillons (https://keybase.io/oscillons) on keybase.
- I have a public key whose fingerprint is 38E0 8372 B3F6 6F58 40FA 6CD9 F1E5 E965 0091 5078
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # creates a mysql backup | |
| # | |
| # CREATE USER 'backups'@'localhost' IDENTIFIED BY 'password'; | |
| # GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON *.* TO 'backups'@'localhost'; | |
| # FLUSH PRIVILEGES; | |
| # | |
| # restore: innobackupex --copy-back /data/backups/whatever | |
| # timestamp |
| package main | |
| import ( | |
| "bufio" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "os/exec" | |
| "strings" |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "golang.org/x/oauth2" | |
| "golang.org/x/oauth2/jwt" | |
| storage "google.golang.org/api/storage/v1" | |
| "os" | |
| ) |
| package main | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "time" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| ext := ".WEBM" |
| func contains(s []string, e string) bool { | |
| for _, a := range s { | |
| if strings.EqualFold(a, e) { | |
| return true | |
| } | |
| } | |
| return false | |
| } |
| package main | |
| import ( | |
| "encoding/json" | |
| "errors" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| ) |
| package main | |
| import ( | |
| "bufio" | |
| "encoding/xml" | |
| "fmt" | |
| "os" | |
| ) | |
| func main() { |
| func Scrape(address string) (b *bytes.Buffer) { | |
| // Create a new goquery document from the address | |
| doc, err := goquery.NewDocument(address) | |
| if err != nil { | |
| log.Fatal(err) | |
| } | |
| // A buffer for the CSV writer | |
| b := &bytes.Buffer{} |