Download the Docker CLI executable (docker.exe) from the official Docker static binaries repository: https://download.docker.com/win/static/stable/x86_64/
Using Docker command with -H flag: docker -H ssh://user@vm-ip ps
Download the Docker CLI executable (docker.exe) from the official Docker static binaries repository: https://download.docker.com/win/static/stable/x86_64/
Using Docker command with -H flag: docker -H ssh://user@vm-ip ps
This guide is targetted at intermediate or expert users who want low-level control over their Python environments.
When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. This helps keep each workflow in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. The guide here covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.
| let blacklists = [ | |
| \ "https://trello.com/*", | |
| \ "http://localhost:8888/*", | |
| \ "https://us-east-2.console.aws.amazon.com/*", | |
| \ "https://codesandbox.io/*", | |
| \ "https://open.spotify.com/*" | |
| \ ] | |
| map J previousTab | |
| map K nextTab |
| function mapValues(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| result[key] = fn(obj[key], key); | |
| return result; | |
| }, {}); | |
| } | |
| function pick(obj, fn) { | |
| return Object.keys(obj).reduce((result, key) => { | |
| if (fn(obj[key])) { |
The git command-line utility has plenty of inconsistencies http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by functional category:
git status list which (unstaged) files have changed
| var OFF = 0, WARN = 1, ERROR = 2; | |
| module.exports = exports = { | |
| "env": { | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| // env=es6 doesn't include modules, which we are using | |
| "modules": true |
| # Bash History Replacement Script | |
| # Author: Caesar Kabalan | |
| # Last Modified: June 6th, 2017 | |
| # Description: | |
| # Modifies the default Bash Shell prompt tot be in the format of: | |
| # [CWD:COUNT:BRANCH:VENV] | |
| # [USER:HOSTNAME] _ | |
| # Where: | |
| # CWD - Current working directory (green if last command returned 0, red otherwise) | |
| # COUNT - Session command count |
| def fibonacci_upto(max) | |
| i1, i2 = 1, 1 | |
| while i1 <= max | |
| yield i1 | |
| i1, i2 = i2, i1+i2 | |
| end | |
| end |