Answer the question
In order to leave comments, you need to log in
How to make it easier to set up ubuntu for development?
Not the first time I have to install ubuntu and configure firewood, lamp, node, npm, install a bunch of utilities and configure everything again.
You can, of course, use docker containers or just virtual machines, but this is not suitable.
Domain management in apache2. Too lazy for each domain 3 commands to make and edit the file.
Is there an automation program?
Answer the question
In order to leave comments, you need to log in
You can make a function-creator-function with a parameter:
function cbMaker(param) {
const cb = function(event) {
console.log(param, event);
document.removeEventListener('keydown', cb);
}
return cb;
}
document.addEventListener('keydown', cbMaker(1));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question