Skip to content

Instantly share code, notes, and snippets.

View youanden's full-sized avatar
🐢
Creepin

Georgiy Slobodenyuk youanden

🐢
Creepin
  • Onality Inc
  • Aventura, FL
View GitHub Profile
@youanden
youanden / database.yml
Created October 11, 2013 06:15
database.yml example for eplus
# gem 'mysql2'
development: &default
adapter: mysql2
database: app_db_dev
encoding: utf8
collation: utf8_general_ci
username: app_user
password: app_password
test:
@youanden
youanden / .env
Created October 11, 2013 06:13
.env example for eplus
TRUSTED_IP=127.0.0.1
QUIZLET_CLIENT_ID=XXXXXXXXXX
QUIZLET_SECRET_KEY=XXXXXXXXXXXXXXXXXXXXXX
@youanden
youanden / html5initializrhtaccess
Created January 22, 2012 09:42
HTML5 initializr
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache config if possible
# httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
@youanden
youanden / gziphtaccess
Created January 22, 2012 09:34
Apache GZIP
<IfModule mod_deflate.c>
# Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s,?\s(gzip|deflate)?|X{4,13}|~{4,13}|-{4,13}$
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
</IfModule>
</IfModule>