# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")References:
| FROM ubuntu:latest | |
| MAINTAINER Colby Swandale <colby@taplaboratories.com.au> | |
| # update apt cache and install dependencies | |
| RUN apt-get update && apt-get install git curl build-essential libssl-dev libreadline-dev zlib1g-dev sqlite3 libsqlite3-dev -y | |
| # add app user | |
| RUN adduser --gecos '' --disabled-password app | |
| # set user to app | |
| USER app | |
| # set rbenv, ruby-build bin paths | |
| ENV HOME /home/app |
# Delete all containers
docker rm $(docker ps -aq)
# Delete all images
docker rmi $(docker images -q)
# Delete all untagged images
docker rmi $(docker images -q --filter "dangling=true")References:
| set -g prefix C-a | |
| unbind-key C-b | |
| bind-key C-a send-prefix | |
| bind c new-window -c "#{pane_current_path}" | |
| bind '"' split-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" |
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There are two ways to address this.
Instead of tmux-256color, use screen-256color. Place into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later) the following:
| Neo4j install OS X | |
| $ brew install neo4j | |
| To have launchd start neo4j now and restart at login: | |
| brew services start neo4j | |
| Or, if you don't want/need a background service you can just run: | |
| neo4j start | |
| DB Folder |
| // Client-side JavaScript can change element colors | |
| const title = document.getElementById("title"); | |
| title.style.color = "blue"; | |
| // It can also register a service worker. | |
| /** | |
| * REGISTRATION | |
| * | |
| * tests for if navigator even has serviceWorker API |
| /** | |
| * Service Worker | |
| * | |
| * Globals | |
| * - CACHE_NAME - usually an app name with a version number | |
| * important for opening up the cache available to service workers | |
| * - urlsToCache - usually an array of URIs corresponding to | |
| * the requests whose responses the service worker should cache | |
| */ |