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
| # Getting a "max depth exceeded" error in your docker-compose file? Run these commands to clean our your docker install. | |
| # Stop all running containers | |
| docker stop $(docker ps -aq) | |
| # Delete all docker containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all docker images | |
| docker rmi $(docker images -q) |
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
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
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
| <?php | |
| /* Thanks to http://steindom.com/articles/shortest-php-code-convert-csv-associative-array */ | |
| ini_set('auto_detect_line_endings', TRUE); | |
| $rows = array_map('str_getcsv', file('myfile.csv')); | |
| $header = array_shift($rows); | |
| $csv = array(); | |
| foreach ($rows as $row) { |
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
| Standard | |
| Bleed Margin: 90mm x 52mm | |
| Content Ends: 87mm x 49mm | |
| Imperial | |
| Bleed Margin: 3.54in x 2.05in | |
| Content Ends: 3.43in x 1.93in | |