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
// https://davidpiesse.github.io/tailwind-md-colours/ | |
// | |
//Notes | |
// | |
//All colours are generated from Material Design Docs | |
//Colours have a base, a set of shades (50-900) accent colours | |
//In addition a companion set of contrast colours are included for colouring text / icons | |
// Example usage | |
// class="w-full bg-red-600 text-red-600-constrast" |
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 | |
grep -RE 'error_reporting\(0\)|preg_replace\(|eval\(|base64_decode|file_put_contents|exec\(|passthru|popen|proc_open|pcntl' --include='*.php' . | cut -d: -f 1 | sort -u | while read line | |
do | |
(echo $line | cat - $line) | less | |
done |
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 | |
/* | |
Redis Cache invalidation | |
Author: Flynsarmy and modified by Hans2103 | |
This is a Redis Cache invalidation script for Wordpress. | |
http://www.flynsarmy.com/2013/03/how-to-drastically-speed-up-wordpress-with-redis/ | |
defined the connection credentials in wp-config.php | |
Add this piece of code to your theme functions.php or... | |
when using Roots theme add this as a file to the lib directory and call it from functions.php |
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 | |
/* | |
Author: Hans2103 | |
credit: Jim Westergren, Jeedo Aquino & Flynsarmy | |
File: index-with-redis.php | |
Updated: 2013-05-27 | |
This is a redis caching system for Wordpress based on Redis connection using PHPRedis. | |
https://github.com/nicolasff/phpredis |
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
<!-- content --> | |
<div class="span10"> | |
<!-- tabs --> | |
<div class="tabbable"> | |
<ul class="nav nav-tabs"> | |
<li class="active"><a href="#tab_media" data-toggle="tab">View</a></li> | |
<li><a href="#tab_map" id="tab_map_link" data-toggle="tab">Visit</a></li> | |
</ul> | |
</div> |