Skip to content

Instantly share code, notes, and snippets.



  • São Paulo, Brazil
Block or report user

Report or block udhos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
udhos / kubernetes
Last active Aug 12, 2019
View kubernetes
Docker Desktop for Windows:
Demo for Cloud Native Devops
Service address (DNS): SERVICE.NAMESPACE.svc.cluster.local
udhos / aws-parameter-store
Created Jun 27, 2019
View aws-parameter-store
env_is_prod() {
local instance_id=$(ec2-metadata -i | cut -d ' ' -f2)
local tag=$(aws ec2 describe-tags --region sa-east-1 --filter "resource-type=instance" --filter "Name=resource-id,Values=$instance_id" | jq -
r '.Tags[] | select(.Key=="env" and .Value=="prod")')
[ -n "$tag" ]
if env_is_prod; then
View twofer
Hi! Welcome!
Please consider some hints:
1. You should remove all stub comments.
2. Write your own godoc-style comments for package and function. Comments should be full sentences ending at period '.':
// Package foo does bla.
package foo
udhos / hamming distance
Last active Aug 14, 2019
hamming distance
View hamming distance
s1: "aaa",
s2: "aÃa",
want: 1,
expectError: false,
s1: "aáa",
s2: "aãa",
want: 1,
udhos / kubernetes secret
Created Jun 13, 2019
kubernetes secret
View kubernetes secret
kubectl create secret generic slack-token --from-file=./slack-token
View jq cloudtrail
find . -type f | xargs zcat | jq -r '.Records[] | select(.eventSource=="" and .eventName=="RunInstances") | .userIdentity.principalId + " " + .responseElements.instancesSet.items[].instanceId'
View 8bit computer
udhos / golang_empty_struct
Created Apr 29, 2019
View golang_empty_struct
// the empty struct consumes zero bytes
// see:
// see:
package main
import (
udhos / learning_kubernetes_basics
Last active Apr 18, 2019
View learning_kubernetes_basics
+ 01 Bootcamp:
+ 02 Services:
+ 03 Best Practices:
/ 04 Concepts:
You can’t perform that action at this time.