• 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

  • Camera,  Life

    Some useful tips for GH5

    I have been used big cameras for years but I still feel I don’t fully use the functionality out of it. I bought my GH5 4 years back but I just found several very useful features recently. Post Focus Mode This is very useful if you want to make sure the picture got focused. Simply choose the post focus mode if you want to make sure you got focused picture especially you just lend the camera to your friend to take a picture of you but they just don’t know how to use focus correctly. Especially GH5 is not really good at focus… The downside of this is it takes…