Skip to content

Instantly share code, notes, and snippets.

View jayjariwala's full-sized avatar
👾
Debugging

Jay Jariwala jayjariwala

👾
Debugging
View GitHub Profile
# Temporary outage method
sudo certbot --authenticator standalone --installer nginx \
-d <domain> --pre-hook "service nginx stop" --post-hook "service nginx start"
@jayjariwala
jayjariwala / gist:8933371f5dab4aa9395d1e9b4b871e33
Last active February 16, 2018 20:08
Webpack config essential plugins and loaders
//plugins
html-webpack-plugin -load javascript file dynamically
clean-webpack-plugin -clean distribution folder.
//css loaders
style-loader
css-loader
// Object literals
const obj = {
radius: 1,
location: {
x : 1,
y : 2
},
draw:function () {
console.log('draw');
}
function createCircle(r) {
let radius = r;
this.draw = function() {
console.log("draw the cirlce");
};
this.getRadius = function() {
return radius;
};
this.setRadius = function(val) {
// 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