Skip to content

Instantly share code, notes, and snippets.

View esseremmerik's full-sized avatar

Procademy esseremmerik

View GitHub Profile
@davidpiesse
davidpiesse / tailwind_md_all_colours.js
Last active February 25, 2025 16:31
A colour set for Tailwind CSS that include all Material Design Colours, shades, accents and contrast colours
// 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"
@fliphess
fliphess / eval-scan.sh
Last active September 11, 2018 07:59
Detect malafide files in websites
#!/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
@hans2103
hans2103 / rediscacheinvalidation.php
Last active August 1, 2018 04:20
Script to invalidate Redis cache in Wordpress after adding new blog posts and such. To be used with https://gist.github.com/hans2103/5657621 where you already defined the connection information to Redis.
<?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
<?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
@grudelsud
grudelsud / index.html
Created August 24, 2012 15:02
initialize google maps with twitter bootstrap tabs
<!-- 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>