from--:https://www.dovov.com/git-583.html 如何在GIT中删除第一个提交? 我很好奇如何在git中删除第一个提交。 做任何事情之前的修改是什么? 这个版本是否有名字或标签? 对我来说,最安全的方法是使用update-ref命令: git update-ref -d HEAD 它将删除指定的引用HEAD ,所以它会重置(轻轻地,你不会失去你的工作)你当前分支的所有提交 。 如果你想要合并第一个提交和第二个提交,你可以使用rebase命令: git rebase -i --root 最后一种方法是创build一个孤立分支,一个分支,但是没有任何提交历史,并且提交新的内容: git checkout --orphan 在第一次提交之前什么都没有,因为每个提交都指向一个父提交。 这使得第一个提交特别(孤儿提交…
虚拟机的配置问题导致的,由于TrueNas无法手动修改高级设置,只能通过设置虚拟网桥这种方式连接。 具体很麻烦,所以不推荐用TrueNas虚拟机连接回主机,如果实在需要可以考虑sr-iov 参考链接: https://www.truenas.com/community/threads/vm-cannot-connect-to-host-smb.92805/ https://www.truenas.com/community/threads/kvm-guest-cannot-ping-truenas-scale-host-or-vice-versa.88487/
from--:https://www.visionyu.xyz/2020/06/29/dnsmasq-ipset-iptables-%E5%AE%9E%E7%8E%B0%E5%AF%B9%E6%B5%81%E9%87%8F%E8%BF%9B%E8%A1%8C%E5%88%86%E6%B5%81/ 需求和实现方式 使用vpn相比代理方式的确会稳定,但是常常会导致客户端网络改变而造成一些问题,所以我们更希望同时具有vpn的稳定以及基于不同网络访问请求而走不同流量的策略。我们可以通 过 dnsmasq+ipset区分出不同域名的不同ip,并且对ip进行分组,然后使用iptable 对不同组的ip打上不同的标签,最后再走不同的路由表实现策略路由。 基本的流程图如下: 正常流量 dnsmasq ipset iptables iproute 流量转发 …
vi /etc/netplan/00-installer-config.yaml 00-installer-config.yaml # This is the network config written by 'subiquity' # /etc/netplan network: ethernets: ens6: dhcp4: true version: 2
k3s创建portainer k3s kubectl apply -f /root/portainer.yaml #执行部署 docker network create -d macvlan --subnet=192.168.3.0/24 --gateway=192.168.3.1 -o parent=br0 macvlan #创建 macvlan 网络 portainer.yaml --- # Source: portainer/templates/namespace.yaml apiVersion: v1 kind: Namespace metadata: name: portainer --- # Source: portainer/templates/serviceaccount.yaml apiVersion: v1 kind: …
音频调制解调器通信库 https://github.com/romanz/amodem 这个库可以将数据以音频方式传输 缺点,对麦克风和声卡有一定需求,一旦有延迟或者收方音有干扰就会影响接收 上面的库是相对较好的,还有其他的库 https://github.com/waskelyashwant/Transfer-of-data-via-audio-signal https://github.com/hyqer/audiomix
Windows精简部署相关简易内容 使用Windows Kits创建PE 可能遇到以下报错: ERROR: The following processor architecture was not found: amd64. 解决方案: 找到部署和映像工具环境右键 管理员权限运行 卵用没有的相关资料: https://kb.acronis.com/content/68324 https://www.sxj.xyz/make-winpe.html https://777notes.wordpress.com/2013/10/21/winpe-the-following-processor-architecture-was-not-found-amd64/ 找到 部署和映像工具环境 右键 管理员权限运行 copype amd64 C:\User…