Skip to content

Instantly share code, notes, and snippets.

View mbn18's full-sized avatar

Michael Ben-Nes mbn18

View GitHub Profile
@ptbrowne
ptbrowne / shortcut-chrome-inspect.md
Last active October 18, 2017 17:36
Shortcut to Chrome Inspect

Chrome has made the path to inspect devices more and more difficult. Now to open the inspect devices tab, as of April 2016 it's Menu > More Devices > Developer Tools > Menu > More Tools > Inspect Devices.

Fortunately there is an easy solution : we can use customize the search engine functionality to add a shortcut via the search bar.

  1. Right click on the search bar, click 'Edit Search Engines'.
  2. At the end of the list you can add a search engine. Name it chrome inspect with the keyword insp and URL : chrome://inspect/#devices.
@ngpestelos
ngpestelos / remove-docker-containers.md
Last active March 5, 2024 20:45
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
@d11wtq
d11wtq / docker-ssh-forward.bash
Created January 29, 2014 23:32
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash