This is my learning towards how to generate Time Based OTP using SHA-512 algorithm.
This file contains hidden or 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
| package main_test | |
| import ( | |
| "fmt" | |
| "reflect" | |
| "testing" | |
| ) | |
| type AnimalName string |
ssh -L localhost:port:remote_ip:remote_port username@<IP that have access to remote_ip>- Ensure that you can SSH
ssh username@<IP that have access to remote_ip>(public key already added in the instance) - Ensure that your SSH instance can access remote target, it can be db, http or etc
This file contains hidden or 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
| // Parsing arbitrary JSON using interfaces in Go | |
| // Demonstrates how to parse JSON with abritrary key names | |
| // See https://blog.golang.org/json-and-go for more info on generic JSON parsing | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log/slog" | |
| "os" | |
| "os/signal" | |
| "sync" | |
| "sync/atomic" |
OlderNewer