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
for d in *; do | |
if [[ -d $d ]]; then | |
if [ -f $d/wp-config.php ]; then | |
siteName=`basename "$d"` | |
# See if there is a composer file inside the site folder | |
if [ -f $d/composer.json ]; then | |
echo " - Updating $siteName" |
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
# echo "Installing Capistrano" | |
# /home/vagrant/.rbenv/shims/gem install capistrano -q | |
# | |
# echo "Updating Composer" | |
# sudo composer self-update --quiet | |
echo "*/20 * * * * ~/cron-run.sh >> ~/cron.log 2>&1" >> ~/mycron | |
# cp /var/www/atomic-scotch-box/* ~/ |
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
*/1 * * * * wget http://www.domain.com/wp-cron.php?doing_wp_cron 2>&1 > /dev/nul |
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
define( 'DISABLE_WP_CRON', true ); |
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 | |
$post_thumbnail_id = get_post_thumbnail_id($post->ID); | |
$post_thumbnail_url = wp_get_attachment_image_src( $post_thumbnail_id ); | |
?> | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "Article", | |
"mainEntityOfPage": { | |
"@type": "WebPage", |
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
{% include 'jsonld/structured-data-single.twig' %} |
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
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", | |
"@type": "Article", | |
"mainEntityOfPage": { | |
"@type": "WebPage", | |
"@id": "{{post.link}}" | |
}, | |
"headline": "{{ post.title }}", | |
"image": { |
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 | |
find . -maxdepth 2 -name 'composer.json' -exec bash -c 'site=$(dirname '{}') && composer update --prefer-dist --working-dir=$site' \; |
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
<!-- End thumbnails --> | |
{% assign my_content_array_start = pages.global-blocks.content | split: "<p>[[extraArtBlock start]]</p>" %} | |
{% assign my_content_array_end = my_content_array_start[1] | split: "<p>[[extraArtBlock end]]</p>" %} | |
{{ my_content_array_end[0] }} |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |