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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: (well there is k9s, but this is highly customizable as you wish; like I did :D) | |
# * current AWS profile configured (really helpful if you are switching AWS accounts frequently) | |
# * current context of Kubernetes(K8S) cluster ( also helpful to see which cluster you are working on | |
# * the active virtualenv | |
# * the branch/status of the current git repository | |
# * the return value of the previous command |
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
package main | |
import ( | |
"fmt" | |
"io" | |
"net" | |
) | |
func main() { | |
ln, err := net.Listen("tcp", ":8080") |