(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {
npm install -g npm
# Downgrade to a specific version
npm install -g npm@2
| if(process.argv.length < 3){ | |
| console.log('target file path is required.') | |
| process.exit(1) | |
| } | |
| var target = process.argv[2] | |
| console.log('file: ' + target) | |
| var fs = require('fs') | |
| fs.readFile(target, function (err, data) { |
Solution: Ubuntu distros lower than 18.10 will not work in this laptop, as minimum kernal version required is 4.18.
So install ubuntu 18.10 / xubuntu 18.10 / lubuntu 18.10 / kubuntu 18.10 in UEFI mode
Inspired by this article. Neat tricks for speeding up integer computations.
Note: cin.sync_with_stdio(false); disables synchronous IO and gives you a performance boost.
If used, you should only use cin for reading input
(don't use both cin and scanf when sync is disabled, for example)
or you will get unexpected results.
x = x << 1; // x = x * 2