• Life

    Life is so short (thought after watching Top Gun 2).

    The original Top Gun released in 1986 when I was 6. The second sequel Top Gun maverick released in 2021 when I was 41. It was 35 years! Another 35 years I will be 76 year old. Tom Cruise was born in 1962 and he will be 95 yeah old if we have the third sequel with the same cadency.. It just makes me feel so unreal that life is just so short

  • Linux,  工具,  技术

    Mac command line cheat sheet

    Behavior Command Comment go to the beginning of the line ctrl+a go to the end of the line ctrl+e Save a output of a command to a env variable principle_arn=$(aws –profile perAdmin sts get-caller-identity –query Arn –output text) use a env variable ${principle_arn} replace character sed -e “s|PRINCIPAL_ARN|${principle_arn}|g” \assume-role-policy-template.json > assume-role-policy.json The delimiter of choice is a forward slash (/), which is the most commonly used delimiter. However, sed can use any character as a delimiter. In fact, it will automatically use the character following the s as a delimiter-e means you can use the followed scripts multiple times.https://unix.stackexchange.com/questions/33157/what-is-the-purpose-of-e-in-sed-command

  • 工具,  技术

    Kibana Query cheatsheet

    Example Query Result DSL message:”a test” 1 match phase message: a test 1, 2 match message.keyword: “a test” none match phase message.keyword: “this is a test” 2 match phase KQL got converted to DSL before sending to the server: We can check the related DSL by clicking “inspect” button in UI. Reference: https://xeraa.net/blog/2021_kibana-map-kql-url-elasticsearch-query/

  • Gear,  Life

    Return policy from popular brands

    I would like to talk about the return policy from some popular brand. Actually they are a little bit different even overall they are all good. Patagonia I actually would say Patagonia has the best return policy. Both new and sale items can be returned without a set time limit. It just suggests that if you return because of the fit or color it would recommend to return in a timely matter and keep in new condition with tags. The thing is it’s just recommendation and you can always choose other reason to return (Admit it, many people do that..) Patagonia has a separate site Worn Wear which has separate…

  • 技术,  网络

    Useful network cheat sheet

    Check SSL openssl s_client -connect poynt.frontdoor.akadns.net:443 -showcerts Routing path: poynt.net (A) => dwccpvpm8ni1x.cloudfront.net (Poynt AWS) => poynt.frontdoor.akadns.net (CNAME) => poynt.us-east-1.fd.aws.gdcld.net (Envoy Proxy) => ALB => web