解决 react 项目控制台对 a 标签 使用了 href 属性(设置了值:javascript:;)的 warning 问题

先看看 react blog, 看官方怎么说的 In React blog post: URLs starting with javascript: are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like <a href> and create a security hole. In React 16.9, this pattern ... 阅读全文

使用 DNSmasq 部署家庭网络的公共 dns 和个性化的局域网内的 dns 域名服务

我的使用场景: 软路由(10.10.10.1)作为家里的中心网络服务器和网关设备,本地搭建了很多服务,很多服务需要输入 host 时,如果不做 dns 域名解析,那么每次都要输入 10.10.10.1 这一串很长的字符串,很麻烦。若是在局域网中的每台机器上 各自配置 hosts 文件那也很麻烦。所以就萌生了在软路由上使用 DNSmasq 来作为本地的唯一 dns 域名解析服务的想法。而且,k2p 作为 ap 接入的路由器,在配置了 dns 地址是 10.10.10.1 后也可以实现任何接入的终端... 阅读全文

解决 k2p 作为 ap 使用 其自身无法 access to the Internet

k2p的荒野无灯老毛子固件使用AP模式时,必须定义LAN网中的DNS,否则k2p本身无法上网,但是它发射出来的WiFi还是可以的~ 设置方法有两种: ①编辑/etc/resolv.conf 在domain padavan的下一行添加「nameserver 10.10.10.1」即可。 [hardRouter /home/root]# cat /etc/resolv.conf domain padavan nameserver 10.10.10.1 ②管理网页:http://10.10.10.2... 阅读全文

linux生成uuid命令

cat /proc/sys/kernel/random/uuid about UUID from en dot wikipedia dot org introduction page A universally unique identifier (UUID) is a 128-bit number used to identify information in computer systems. The term globally unique identifier (GUID) is al... 阅读全文

Linux 的 /proc 目录

这个目录是一个虚拟的目录,它是系统内存的映射,我们可以通过直接访问这个目录来获取系统信息。这个目录的内容不在硬盘上而是在内存中,我们也可以直接修改里面的某些文件,比如可以通过下面的命令来屏蔽主机的ping命令(使主机不响应icmp数据包),使别人无法ping通你的机器: echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all end.