- id contains string
//*[contains(@id, "mystring")]
- ptag's text contains:
//p[text()[contains(., "mystring")]]
- first element id contains:
(//*[contains(@id, "mystring")])[1]
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
//*[contains(@id, "mystring")]
//p[text()[contains(., "mystring")]]
(//*[contains(@id, "mystring")])[1]
没有提供
Download the latest Raspberry Pi OS Lite image from https://www.raspberrypi.com/software/operating-systems/ (2022-04-04 at the time of this writing).
Insert your microSD card. Use Raspberry Pi Imager to burn the image to your microSD card. Make to select "Set username and password" in the config before starting. Name the user pi
and select your own password.
Ensure the disk is mounted again, then enable SSH.
$ touch /Volumes/boot/ssh
193758: DOWNLOAD | |
ChromeSetup.exe | |
Start Time: 2017-11-05 14:39:53.813 | |
t=3070711 [st= 0] +DOWNLOAD_ITEM_ACTIVE [dt=77119] | |
--> danger_type = "NOT_DANGEROUS" | |
--> file_name = "ChromeSetup.exe" | |
--> final_url = "https://dl.google.com/tag/s/appguid%3D%7B4ea16ac7-fd5a-47c3-875b-dbf4a2008c20%7D%26iid%3D%7BEBD9ABE9-789A-1C21-C88E-910E1B9F6323%7D%26lang%3Den%26browser%3D4%26usagestats%3D1%26appname%3DChrome%2520Canary%26needsadmin%3Dfalse%26ap%3Dx64-canary-statsdef_1%26installdataindex%3Dempty/update2/installers/ChromeSetup.exe" | |
--> has_user_gesture = false | |
--> id = "616" |
#!/bin/bash -e | |
id=$(chrome-cli list links | grep "chrome://extensions/" | awk '{print $1}' | sed -E "s/^\[([0-9]+)\]$/\1/g") | |
if [[ -n $id ]] ; then | |
chrome-cli reload -t "$id" | |
else | |
chrome-cli open "chrome://extensions" | |
fi |
https://www.stereolabs.com/docs/docker/building-arm-container-on-x86
$ sudo apt-get install docker.io docker-compose vde2 # Install docker w. compose and vde networking
$ sudo apt-get install qemu-system binfmt-support qemu-user-static # Install qemu to run foreign instruction set
$ sudo systemctl start docker # Start docker daemon
https://hub.docker.com/r/multiarch/qemu-user-static/ https://github.com/multiarch/qemu-user-static