This file contains 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
# Temporary outage method | |
sudo certbot --authenticator standalone --installer nginx \ | |
-d <domain> --pre-hook "service nginx stop" --post-hook "service nginx start" |
This file contains 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
//plugins | |
html-webpack-plugin -load javascript file dynamically | |
clean-webpack-plugin -clean distribution folder. | |
//css loaders | |
style-loader | |
css-loader | |
This file contains 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
// Object literals | |
const obj = { | |
radius: 1, | |
location: { | |
x : 1, | |
y : 2 | |
}, | |
draw:function () { | |
console.log('draw'); | |
} |
This file contains 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
function createCircle(r) { | |
let radius = r; | |
this.draw = function() { | |
console.log("draw the cirlce"); | |
}; | |
this.getRadius = function() { | |
return radius; | |
}; | |
this.setRadius = function(val) { |
This file contains 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
// docker version | |
docker --version | |
// Pull image from docker hub | |
docker pull wasfeng/whalesy | |
// Run the pulled image or images already on the local system - Run the container from the image | |
docker run wasfeng/whalesy | |
// Stop the running docker container | |
docker stop NAME(name of the container - assigned by the docker cli) | |
// List all the running container | |
docker ps |
OlderNewer