As configured in my dotfiles.
start new:
tmux
start new with session name:
find . -name "node_modules" -exec rm -rf '{}' + |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Typing conda
from the command line will display a list of all available commands.
conda create -n lab python=3.5
-- create a new environment by name lab
which uses python 3.5conda env update --prune --quiet --name monkey --file environment.yml
-- create or update env from .ymlconda env export > environment.yml
-- export an environment for reuse# inspect file permissions | |
$ git ls-tree HEAD | |
# set executable bit | |
$ git update-index --chmod=+x script.sh | |
# commit the change | |
$ git commit -m "Changing file permissions" |
package main | |
// run this file with `go run clientDoGzip.go, and then file tmp.out to verify body is gzipped | |
import "compress/gzip" | |
import "net/http" | |
import "fmt" | |
import "io" | |
import "log" | |
import "os" |
Typing docker
or docker-machine
from the command line will display a list of all available commands.
Command | Description |
---|---|
docker exec -it CONTAINER_ID /bin/bash |
run a command in an already running container |
docker tag 7d9495d03763 maryatdocker/docker-whale:latest |
tag a local image |
docker login |
login to docker hub |
docker push maryatdocker/docker-whale:latest |
push your tagged image to Docker Hub |
docker stats <container_name> |
runtime stats for a given container |
Command | Description |
---|---|
git remote -v |
list the remotes |
git pull --rebase |
rebases your local changes on top of your teammates' without creating a merge commit |
git rebase --interactive |
rewrites commits but gives you a chance to modify them as they are reapplied onto the new base |
| Command | Description |