We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
2020 / 04 / 04
2023 / 03 / 28
Install Google Chrome in Linux
2020 / 04 / 04
2023 / 03 / 28
Still one of the best dev environments for web apps.
linux
dev
chrome
Let’s install Google Chrome from the AUR:
cd ~/tmp
git clone https://aur.archlinux.org/google-chrome.git
cd google-chrome/
makepkg -si
Execute with:
google-chrome-stable &
Extensions
Privacy
- uBlock Origin: Finally, an efficient blocker. Easy on CPU and memory
- Privacy Badger: Privacy Badger automatically learns to block invisible trackers
- Ugly Email: Get Back Your Email Privacy, Block Email Tracking
Development
- Web Vitals: Measure metrics for a healthy site
- Vue.js devtools: Chrome and Firefox DevTools extension for debugging Vue.js applications
- Apollo Client Devtools: GraphQL debugging tools for Apollo Client
HTML to PDF
I’ve found a better way than to use wkhtmltopdf to render an HTML page to a PDF file: headless Chrome.
Save an HTML page as a PDF with the following command:
google-chrome-stable --headless --disable-gpu --print-to-pdf=some-pdf-name.pdf http://some.page/url
Let’s add some time budget —for rendering SPAs, for example— and get rid of page headers with:
google-chrome-stable --headless --disable-gpu --print-to-pdf=some-pdf-name.pdf \
--virtual-time-budget=10000 --print-to-pdf-no-header http://some.page/url