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 | |
HN=`hostname | awk -F. '{print $1}'` | |
# Set variables | |
DB_BACKUP="~/Dropbox/mysql/$HN-`date +%d-%m-%Y_%H-%M`" | |
DB_USER="root" | |
DB_PASSWD="root" | |
# Create the backup directory | |
mkdir -p $DB_BACKUP |
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
set :application, '' | |
set :repo_url, '' | |
set :scm, :git | |
set :ssh_options, { :forward_agent => true } | |
set :deploy_via, :remote_cache | |
set :copy_exclude, [".git", ".DS_Store", ".gitignore", ".gitmodules"] | |
role :app, %w{root@ip-address} |
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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
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
<div class=‘orderMe'> | |
<div data-order=1>Content 1</div> | |
<div data-order=4>Content 2</div> | |
<div data-order=2>Content 3</div> | |
<div data-order=3>Content 4</div> | |
</div> |
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 -> |
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
#!/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
<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
{% 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
<?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", |
OlderNewer