摘要: 在公司个一次team building中 马小哈同学提出了一个问题。问题描述:棋盘被分成n*n的格子,每个格子有若干米粒,有一只小鸡从左上角出发,移动到右下角,每次只能向右或者向下移动。 求一个算法,算法的输入是每个格子的米粒数,输出是一个“向右走”/“向下走”的指令序列,使得小鸡吃到的米粒数最大化... 阅读全文
posted @ 2014-06-06 23:34 lvmxh 阅读(726) 评论(0) 推荐(0) 编辑
摘要: There are several open-source projects: DHCP-replay in github https://github.com/topics/dhcp-relay Seems https://github.com/Mirantis/dhcp-relay looks 阅读全文
posted @ 2023-11-01 13:45 lvmxh 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 一共三个文件, 两个shell(father.sh 和 child.sh),一个Makefile 准备脚本 father.sh -> Makefile -> child.sh father.sh 调用 Makefile 调用 child.sh 1. father.sh # father.sh hel 阅读全文
posted @ 2023-08-03 20:07 lvmxh 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Ping 扫描 nmap-easily-ping-scan-all-addresses-in-my-subnet nmap -sP 192.168.122.0/24 DHCP 扫描 Nmap扫描教程之网络基础服务DHCP服务类 sudo nmap -sU -p 67 --script=dhcp-di 阅读全文
posted @ 2023-07-31 18:59 lvmxh 阅读(7) 评论(0) 推荐(0) 编辑
摘要: List all package go list ./... Run testcase dlv test --build-flags='api/tests/fuzz' -- -test.run ^FuzzGetNodes$ dlv test api/tests/fuzz -- -test.run F 阅读全文
posted @ 2023-07-19 19:15 lvmxh 阅读(7) 评论(0) 推荐(0) 编辑
摘要: What is the Certificate Chain of Trust? HTTPS详解二:SSL / TLS 工作原理和详细握手过程 Check SSL Certificate Chain with OpenSSL Examples 阅读全文
posted @ 2023-07-14 10:30 lvmxh 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Replace environment variables in a file with their actual values? # config.xml <property> <name>instanceId</name> <value>$INSTANCE_ID</value> </proper 阅读全文
posted @ 2023-07-09 20:27 lvmxh 阅读(11) 评论(0) 推荐(0) 编辑
摘要: REF: grpc golang example Golang gRPC In-Depth Tutorial [Create Server & Client] This is a simple and good example. grpcurl -import-path ./proto -proto 阅读全文
posted @ 2023-07-08 19:16 lvmxh 阅读(26) 评论(0) 推荐(0) 编辑
摘要: How to define global shell functions in a Makefile? makfile with shell code block and function 阅读全文
posted @ 2023-07-07 19:01 lvmxh 阅读(2) 评论(0) 推荐(0) 编辑
摘要: we use ubuntu as example: open the ubuntu docker hub, https://hub.docker.com/_/ubuntu # with the right sha256, can works, suffix with 20 docker pull u 阅读全文
posted @ 2023-07-05 14:20 lvmxh 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Golang test https://go.dev https://go.dev/testing/ Users who want to have more control over which packages are included for coverage can build with th 阅读全文
posted @ 2023-07-05 09:13 lvmxh 阅读(25) 评论(0) 推荐(0) 编辑