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
<IfModule mod_alias.c> | |
# Wordpress bots | |
RedirectMatch 404 (wp-login|wp-admin|wp-config|wp-content|wp-includes|xmlrpc) | |
</IfModule> |
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
# Cachebust static JS and CSS assets that contain a version segment, e.g. | |
# /css/app.purged.min.v0.1.45.css ==> /css/app.purged.min.css | |
location ~* (.+)\.v(?:[\d\.]+)\.(js|css)$ { | |
try_files $uri $1.$2; | |
} |
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
find . -name '*.html' -exec sh -c 'mv "$0" "${0%.html}.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 | |
namespace Craft; | |
// Initialize Craft without letting it take over the whole request | |
$app = require '../craft/app/bootstrap.php'; | |
// Load plugins | |
$app->plugins->loadPlugins(); |
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
source "/var/www/html/scripts/.env-local.sh" | |
# -- REMOTE settings -- | |
# Remote ssh credentials, user@domain.com and Remote SSH Port | |
REMOTE_SSH_LOGIN="REPLACE_ME" | |
REMOTE_SSH_PORT="22" | |
# Should we connect to the remote database server via ssh? | |
REMOTE_DB_USING_SSH="yes" |
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 results = craft.entries | |
.search({ | |
query: craft.request.getQuery('q'), | |
subLeft: true, | |
subRight: true | |
}) | |
.select('content.title,elements_sites.uri') | |
.createCommand() | |
.queryAll() %} |
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 | |
namespace namesplace\pluginhandle\base; | |
use Craft; | |
use craft\base\Plugin as CraftPlugin; | |
use craft\log\FileTarget; | |
class Plugin extends CraftPlugin | |
{ |
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
@charset "UTF-8";/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inh |
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
/* | |
* Load plugins | |
*/ | |
var gulp = require('gulp'), | |
rsync = require('rsyncwrapper').rsync; | |
// https://www.npmjs.com/package/rsyncwrapper | |
// http://craftcms.stackexchange.com/questions/1415/is-there-an-easy-way-to-download-the-assets-directory-to-a-local-install | |
// http://unix.stackexchange.com/questions/2161/rsync-filter-copying-one-pattern-only |
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="widget"> | |
<div class="widget__cog">Cog</div> | |
</div> |