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
#!/bin/bash | |
function process() { | |
echo "Processing $file" | |
totpages=`qpdf --show-npages "$file"` | |
echo "Processing $file : tot pages -> $totpages" | |
numsplit=$((totpages/2)) | |
echo "Processing $file : tot splitted files -> $numsplit" | |
for currsplit in $(seq 1 $numsplit); | |
do | |
echo "Exporting pages $(((currsplit-1)*2+1))-$((currsplit*2)) from $file" |
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
(async () => { | |
await import('https://code.jquery.com/jquery-2.2.4.min.js') | |
// Library ready | |
var cleanUp = function() { | |
jQuery.ajax({method: "GET", url: "https://dashboard.prerender.io/api/cached-pages?page=0&pageSize=1000&sort=date"}).success(function(response) { | |
var total = response, | |
lastChecked = 1; | |
console.log("total: " + response.length); |