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 longest | |
func longestPrefix(words []string) string { | |
if len(words) == 0 { | |
return "" | |
} | |
common := make([]rune, 0, len(words[0])) | |
for i, letter := range words[0] { | |
for _, word := range words[0:] { |
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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "client-767ccfc8f9-7t6zr-client-sidecar-proxy", | |
"cluster": "client", | |
"metadata": { | |
"partition": "default", |
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
client-767ccfc8f9-4wb5w Proxy Configuration | |
Clusters | |
Name FQDN Endpoint Type Last Updated | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |
server server.default.dc1.internal.2133e92c-c542-8fde-d388-5817ab6f149f.consul EDS 2022-05-01T03:11:50.231Z | |
local_agent 192.168.44.239:8502 Static 2022-04-26T16:59:42.572Z | |
local_app 127.0.0.1:0 Static 2022-04-26T16:59:42.623Z | |
original-destination Original DST |
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
consul-ingress-gateway-6fb5544485-7jfjw Proxy Configuration | |
Listeners | |
Name Address:Port Direction Filter Chain Match Destination Cluster Last Updated | |
---------------------------------------------------------------------------------------------------------------------------------------------------- | |
envoy_ready_listener 192.168.47.235:21000 Inbound 2022-04-26T16:58:50.568Z | |
http:0.0.0.0:8080 0.0.0.0:8080 Outbound server 2022-04-26T16:59:46.751Z | |
Secrets | |
Name Type Status Valid Valid from Valid to |
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
Namespace: All Namespaces | |
Namespace Name Type | |
consul consul-ingress-gateway-6fb5544485-br6fl Ingress Gateway | |
consul consul-ingress-gateway-6fb5544485-m54sp Ingress Gateway | |
default backend-658b679b45-d5xlb Sidecar | |
default client-767ccfc8f9-6f6gx Sidecar | |
default client-767ccfc8f9-f8nsn Sidecar | |
default client-767ccfc8f9-ggrtx Sidecar | |
default frontend-676564547c-v2mfq Sidecar |
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" | |
"os" | |
"strconv" | |
) | |
func main() { | |
if len(os.Args) == 1 { |
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" | |
"os" | |
"strings" | |
) | |
func main() { | |
in := os.Args[1] |
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
keybinds clear-defaults=true { | |
locked { | |
bind "Ctrl g" { SwitchToMode "Normal"; } | |
} | |
resize { | |
bind "Ctrl n" { SwitchToMode "Normal"; } | |
bind "h" "Left" { Resize "Increase Left"; } | |
bind "j" "Down" { Resize "Increase Down"; } | |
bind "k" "Up" { Resize "Increase Up"; } | |
bind "l" "Right" { Resize "Increase Right"; } |