Skip to content

Instantly share code, notes, and snippets.

View primitivehuman's full-sized avatar

Dennis Dewey primitivehuman

View GitHub Profile
@primitivehuman
primitivehuman / CSS Named Color to HEX
Last active December 20, 2015 13:29
Sublime Text 2 : Reg Replace - Convert all named css colors to hex values
//////////////////////////////////////////////////////////////
// This uses the Reg Replace plugin in Sublime Text 2 to find
// all named CSS color values and replace them
// with their equivalent hex value.
//
// Install the Reg Replace plugin
// using the Package Control Plugin
// http://wbond.net/sublime_packages/package_control
//
// Github RegReplace plugin page :
@primitivehuman
primitivehuman / .htaccess
Created July 28, 2013 01:09
HTACCESS : Enable Gzip Compression
####################
# GZIP COMPRESSION #
####################
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip