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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
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
let params = { | |
TableName: 'xxx', | |
Limit: 50 // Configure based on needs | |
}; | |
let aItems = []; | |
const recursiveScan = (params) => { | |
return client.scan(params).promise().then((data) => { | |
// Simple Changes to input, optional | |
let newItems = data.Items.map((item) => { | |
return item; |
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
$ i=0 | |
$ while vips copy x.tif[page=$i] y$i.tif; do ((i++)); done | |
tiff2vips: TIFF does not contain page 5 | |
$ ls | |
x.tif y0.tif y1.tif y2.tif y3.tif y4.tif | |
Make a single jpeg with all pages | |
vips copy "a.pdf[n=-1]" a.jpg |