This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount /dev/sda3 /mnt | |
mount /dev/sda1 /mnt/boot/efi | |
mount --rbind /dev /mnt/dev | |
mount --rbind /sys /mnt/sys | |
mount --rbind /proc /mnt/proc | |
chroot /mnt | |
grub-install /dev/sda | |
update-grub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [...document.querySelectorAll("#result .item")].map((i) => { | |
const match = i.querySelector("h1").innerText.match(/\[(.+)\] (.+)/); | |
if (!match) { | |
console.error(i.querySelector("h1").innerText); | |
return; | |
} | |
return { | |
专利名称: match[2], | |
专利类型: match[1], | |
专利号: i.querySelector(".info dl:nth-child(3) dd").innerText, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it \ | |
-v /sys/fs/cgroup:/sys/fs/cgroup \ | |
-v /run/systemd/system:/run/systemd/system \ | |
-v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket debian \ | |
--privileged /bin/bash | |
apt update && apt install systemd | |
systemctl status |