技术

  • 工具,  技术

    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/

  • 技术,  网络

    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

  • 工具,  技术

    Sublime Column Mode

    It’s very easy and the easiest way is just hold the middle mouse button and move the mouse. If you want to select specific lines. While you have selected the lines, loose the middle mouse button and hold “CMD” button and re-select new lines. If you want to subtract from selection, hold “CMD” and “Shift” instead. Alternative is hold “ctrl” and “shift” button and keep clicking “up” or “down” to select. Reference: https://www.sublimetext.com/docs/2/column_selection.html

  • Management,  技术

    How to build company culture?

    Managers and leaders play an important role to build up company culture. The culture may start with senior leadership team but every employee should be able to feel the culture. As a manager, what exactly we can do to build culture? Long term benefit over short term gain. As a manager, you need to make sure the code quality is good to be easily maintained and be able to scale for long term growth. Other than rush to delivery one feature. Everything should be able to be themselves. Create a flexible and open environment. Everybody is different, people may or may not want to show their face during Zoom call.…

  • Management,  技术

    What keep people stay in company for more than 5 years? (How to retain talent?)

    One of the top factors keeping professionals at their company is having a strong workspace benefits; it’s around 44%. Nothing fancy here and we should respect the simple truth that people work because they need to live a better life. Benefits including those common stuff: PTO, parental leave and health insurance. More importantly, intangible areas that matters to employees are: work-life balance and flexibility (51%) foster a culture where they can be themselves (47%) Have a positive impact on society (46%) Perks like free food and game rooms are good but the research shows this is actually one of the least enticing factors for keeping people at their current company…

  • Docker,  技术

    Docker Daemon doesn’t listen on 2375 in Ubuntu

    By default, it’s using Unit Socket. We need to use TCP. Update the docker config service to add TCP: nano /lib/systemd/system/docker.service Somehow if we don’t add the real IP I still cannot access it through remote host but only through localhost Reload Daemon: systemctl daemon-reload Restart Docker: systemctl restart docker Verify: ps -aux | grep dockerd root 1575160 4.9 0.1 2710596 88768 ? Ssl 15:08 0:01 /usr/bin/dockerd -H tcp://127.0.0.1:2375 -H fd:// –containerd=/run/containerd/containerd.sock sudo netstat -lntp | grep dockerd tcp 0 0 192.168.103.98:2375 0.0.0.0:* LISTEN 1577963/dockerd Notes: I got this error: ERROR: for redis Cannot start service redis: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused:…