Skip to content

Instantly share code, notes, and snippets.

@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
@nicolasdao
nicolasdao / seo_sem_guide.md
Last active May 2, 2024 02:17
SEO/SEM guide. Keywords: seo sem ux ttfb noindex robots.txt sitemap robots bundle
@nicolasdao
nicolasdao / user_engagement.md
Last active May 2, 2024 02:16
What is engagement and what it matters. Keywords: engage engagement
@nicolasdao
nicolasdao / command_output_piped_to_node.js
Last active May 2, 2024 02:16
Nifty trick to pipe any command into a JS program for further processing. Keywords: js piping pipe nodejs node command
// In your package.json, add a script similar to this:
// "scripts": {
// "pipe": "ls | node ingestOutput"
// }
let data=''
const printInfo = msg => console.log(`\x1b[1m\x1b[36mi ${msg}\x1b[0m`)
const printError = msg => console.log(`\x1b[1m\x1b[31mx ${msg}\x1b[0m`)