Oficial installation documentation.
sudo apt-get install fontconfig
cd /usr/local/share
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Oficial installation documentation.
sudo apt-get install fontconfig
cd /usr/local/share
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
# list.txt contains Google Chrome extension id per line | |
for line in $(cat chrome_extensions.txt | sed '/^$/d' | tr -s " ") | |
do | |
cnt=`curl -s -I https://chrome.google.com/webstore/detail/${line} | grep 'HTTP/2 301' | wc -l` | |
if [ "$cnt" -ne 1 ]; then | |
out+="https://chrome.google.com/webstore/detail/${line} | |
" | |
fi | |
done |
!/bin/bash | |
to="[email protected]" | |
function status_check() { | |
if [ $? -ne 0 ]; then | |
echo "$1 failed" | mutt -s "ERROR: $PWD/$0" $to | |
echo ":(" | |
fi | |
} |
sha256sum * | sort -k1 | uniq -w 32 -d | cut -d' ' -f3 | xargs -I{} sh -c 'rm {}' |
# Set a PDF password as variable because it might contain special symbols and it will break shell if not quoted | |
PDF_PASSWORD='<space_holder>' | |
# qpdf utility will help removing encryption. https://qpdf.readthedocs.io/ | |
qpdf --decrypt --password="$PDF_PASSWORD" encrypted.pdf unencrypted.pdf | |
# Watermark can be removed PDF is not encrypted. | |
# One type of watermarks in PDF-s are detected by lines that contain string BaseEncoding and what we will remove below. | |
sed -i '/BaseEncoding/d' unencrypted.pdf |
Creating new instance
npx create-strapi-app@latest strapi-import --quickstart
Copying src/, script/, package.json and data.zip from https://github.com/strapi/foodadvisor
cp -r foodadvisor/api/src/ strapi-import/
cd strapi-import/
cp ../foodadvisor/api/package.json .