Skip to content

Instantly share code, notes, and snippets.

@rl4debug
rl4debug / 0_reuse_code.js
Created October 6, 2016 09:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rl4debug
rl4debug / chrome-dev-xpath-cheatsheet.md
Last active May 2, 2024 02:22
[chrome dev xpath] #chrome #chromedev #devtool
  • id contains string
//*[contains(@id, "mystring")]
  • ptag's text contains: //p[text()[contains(., "mystring")]]
  • first element id contains: (//*[contains(@id, "mystring")])[1]
@vielhuber
vielhuber / README.MD
Last active May 2, 2024 02:21
chrome developer console tricks #chrome #tools

network: filter external requests

-domain:*tld.com

current / last nth active dom element

$0
$1
$2
@lirongfei123
lirongfei123 / 打开action页面.md
Created February 12, 2019 23:37
chrome 插件 #chrome 插件

没有提供

@celeryclub
celeryclub / Setting up headless Raspberry Pi OS on macOS.md
Last active May 2, 2024 02:21
Setting up headless Raspberry Pi OS on macOS

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
@TV4Fun
TV4Fun / gist:0143a4d49e81564829174de6a12e7c7d
Created November 5, 2017 23:39
Chrome logs from Chrome Canary download
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"
@uiur
uiur / reload.sh
Created April 23, 2015 09:26
Reload chrome extensions using chrome-cli
#!/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
@nicolasdao
nicolasdao / network_tools_guide.md
Last active May 2, 2024 02:17
Network tools guide. Keywords: wireshark network traffic dump dumpcap tcpdump tcpreplay tcpwrite curl ngrok ng grok