- https://getloaf.io/
Animated SVG icon creator
- https://www.wirewax.com
Fully interactive videos. Eg: Witch Queen Bungie video
<?php | |
namespace App\Providers; | |
use Illuminate\Cache\RateLimiting\Limit; | |
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\RateLimiter; | |
use Illuminate\Support\Facades\Route; |
<?php | |
/** | |
* PHP Coding Standards fixer configuration | |
*/ | |
$finder = PhpCsFixer\Finder::create() | |
->ignoreDotFiles(true) | |
->ignoreVCSIgnored(true) | |
->exclude('node_modules') |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/[^\/]*/.*$ | |
RewriteRule ^(.*)$ https://<DOMAIN>/$1 [QSA,L] | |
</IfModule> |
<?php | |
// Alternative: | |
// Install https://github.com/roots/soil | |
// Add slug to <body> class | |
add_filter('body_class', function ($classes) { | |
// Add post/page slug if not present | |
if (is_single() || is_page() && !is_front_page()) { | |
if (!in_array($slug = basename(get_permalink()), $classes)) { |
<?php | |
/** | |
* Add SRI attributes to external JS resources | |
*/ | |
function add_sri_attribute($tag, $handle, $src = null) | |
{ | |
$known_hashes = array( | |
'https://code.jquery.com/jquery-1.12.4.min.js' => 'sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=', | |
); |
<?php | |
function d($arg) { | |
if (is_object($arg)) { | |
echo PHP_EOL . 'CLASS: ' . get_class($arg) . PHP_EOL; | |
if ($arg instanceof \Magento\Framework\DB\Select) { | |
var_dump($arg->__toString()); | |
} | |
if (method_exists($arg, 'getSelect')) { | |
var_dump($arg->getSelect()->__toString()); |
#!/bin/bash | |
if [ ! -f ./app/etc/config.php ]; then | |
echo "-- ERROR" | |
echo "-- This doesn't look like a Magento 2 install. Please make sure" | |
echo "-- that you are running this from the Magento main doc root dir" | |
exit | |
fi | |
echo -ne '\n' |
#!/bin/bash | |
LOCKFILE=deploy.lock | |
if [ -e ${LOCKFILE} ] && kill -0 `cat ${LOCKFILE}`; then | |
echo "-- ERROR" | |
echo "-- Deployment is already running" | |
exit | |
fi |
These set of scripts are for Magento 2. For Magento 1, see this Gist.