Skip to content

Instantly share code, notes, and snippets.

@unloadedroe
unloadedroe / docker-easy-commands.md
Last active March 9, 2018 12:45
Remove image based on repository name

Docker easy commands

Images

Remove

Remove image based on repository name

docker rmi $(docker images --format '{{.Repository}}' | grep 'imagename')
@unloadedroe
unloadedroe / fix-homebrew-npm.md
Created December 21, 2017 21:14 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@unloadedroe
unloadedroe / iterm2-solarized.md
Created September 10, 2016 12:46 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized