Skip to content

Instantly share code, notes, and snippets.

View sleeyax's full-sized avatar

Sleeyax sleeyax

View GitHub Profile
@sleeyax
sleeyax / .htaccess
Last active February 19, 2019 21:50
htaccess for MVC frameworks
RewriteEngine On
# Check if request doesn't point to actual dir, file or symlink
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
# http://localhost/foo/bar => http://localhost/index.php?request=foo/bar
RewriteRule ^(.+)$ index.php?request=$1 [QSA,L]
@sleeyax
sleeyax / bash-colors.md
Created September 1, 2017 13:52 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple