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
<?php | |
/** | |
* Groups & Products references guard. | |
* | |
* Bidirectional save & remove of products & groups | |
* | |
* templates: | |
* - 'group', pagefield: page_products | |
* - 'product', pagefield: page_groups |
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
function backup() { | |
function downloadBlob(filename, blobUrl) { | |
var element = document.createElement('a'); | |
element.setAttribute('href', blobUrl); | |
element.setAttribute('download', filename); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
} |
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
/** | |
* mystyles.js - for ProcessWire CKEditor "Custom Editor Styles Set" option | |
* | |
* Example file for "Custom Editor Styles Set" as seen in your CKEditor field config. | |
* This file is not in use unless you specify it for that configuration item. | |
* | |
* PLEASE NOTE: | |
* | |
* It's possible this file may be out of date since it is in /site/ rather than /wire/, | |
* and the version of this file will reflect whatever version you had when you first |
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
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl \ | |
docker.io docker-buildx \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |