- zip up all files/folders of the cms and download
- upload and unzip on the new server
- export database as .sql
- import database (see note)
- edit
config/database.phpand add new db credentials
This file contains hidden or 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 debounce(func, wait = 20, immediate = true) { | |
| var timeout; | |
| return function() { | |
| var context = this, args = arguments; | |
| var later = function() { | |
| timeout = null; | |
| if (!immediate) func.apply(context, args); | |
| }; | |
| var callNow = immediate && !timeout; | |
| clearTimeout(timeout); |
This file contains hidden or 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 | |
| # Purpose: batch image resizer | |
| # Author: Phil Picton | |
| # absolute path to image folder | |
| FOLDER="/home/phil/Desktop/pics/" | |
| # max width | |
| WIDTH=1200 |
This file contains hidden or 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 | |
| # a script to convert docx to markdown and extract images into subfolder | |
| # requirements: pandoc | |
| # | |
| if [ -z "$1" ]; then | |
| echo "Usage:" | |
| echo "" | |
| echo " docx-to-md.sh [filename-no-extension]" |
This file contains hidden or 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 | |
| # A script to convert md to docx AND odt | |
| # requirements: pandoc | |
| # | |
| if [ -z "$1" ]; then | |
| echo "Usage:" | |
| echo "" | |
| echo " md-to-docx.sh [filename-no-extension]" |