Skip to content

Instantly share code, notes, and snippets.

View eznj's full-sized avatar

eznj

View GitHub Profile
@eznj
eznj / Apache mod_gizip stuff gzip
Created January 15, 2013 07:37
Apache 1.3 Gzip mod_gzip stuff..
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_min_http 1000
mod_gzip_minimum_file_size 300
@eznj
eznj / javascript utf8
Created December 24, 2012 19:57
javascript utf8
/**
*
* UTF-8 data encode / decode
* http://www.webtoolkit.info/
*
**/
var Utf8 = {
// public method for url encoding
@eznj
eznj / Ruby bad chars
Created December 13, 2012 14:46
Bad Chars
Regexp.new(/\ |\,|\:|\.|\<|\>|\?|\/|\\|\+|\=|\_|\-|\(|\)|\*|\&|\^|\%|\#|\$|\[|\]|–|\n|\r|\t|\}|\{|\@|\!|¡|™|£|¢|∞|§|¶|•|ª|º|≠|‘|“|…|æ|÷|≥|≤|«|”|’|å|ß|∂|ƒ|©|˙|∆|˚|¬|Ω|≈|ç|√|∫|˜|µ|œ|∑|´|®|†|¥|¨|ˆ|ø|π"/)
@eznj
eznj / coffeescript install npm
Created November 8, 2012 06:11
coffeescript homebrew install
#install homebrew
go to site for link to curl.. etc..
#install node
brew install node
#add this to .bashrc
export NODE_PATH/usr/local/lib/node_modules
#install NPM
@eznj
eznj / Regex:IP
Created October 15, 2012 08:59 — forked from yannisxu/Regex:IP
Regex:IP
((?:(?:25[0-5]|2[0-4]\d|[01]?\d?\d)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d?\d))