Shift + /
To specify how many containers to scale using docker-compose use the --scale service = {number} command. This command sets 5 containers for redis-service: docker-compose up -d --scale redis-service = 5
docker-compose -f docker-compose-scale.yml up -d --scale hello=5- Global
$ git config --global add remote.{remote_name} proxy - Locally
$ git config --local --add remote.{remote_name}.proxy ""Thanks Odilon
SCP - copy host to client
scp -r user@host:/host/dir/ /my/local/folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scp user@host:'/home/dir/*.{jpg,pdf}' /my/destination/local/folder |
function Thing(name) {
this.name = name;
}
Thing.prototype.doSomething = function(callback) {
callback.call(this);
}
function foo() {
alert(this.name);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vue.set(this.myObject, key, value) |
let conditionsArray = [ condition1, condition2, condition3, ]
if (conditionsArray.indexOf(false) === -1) { "do somthing" }
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Oliver Steele’s Nested Object Access Pattern | |
| const name = ((user || {}).personalInfo || {}).name; |