Discover gists
Special macros:
- $@ is the name of the file to be made
- $? is the name of changed depandents
- $< the name of related file that caused the action
- $* the prefix shared by target and dependent files
-
8k:
https://blog.usejournal.com/lean-testing-or-why-unit-tests-are-worse-than-you-think-b6500139a009
- >1k:
https://medium.com/pacroy/why-most-unit-testing-is-waste-tests-dont-improve-quality-developers-do-47a8584f79ab
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- id contains string
//*[contains(@id, "mystring")]
- ptag's text contains:
//p[text()[contains(., "mystring")]]
- first element id contains:
(//*[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
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
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" |
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
#!/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 |
NewerOlder