Skip to content

Instantly share code, notes, and snippets.

View thetasnippets's full-sized avatar

thetasnippets

View GitHub Profile
@thetasnippets
thetasnippets / bash-dependency-checker.bash
Created October 16, 2013 14:18
bash: dependency checker
########################################
# BASH DEPENDENCY CHECKER
#
########################################
# create an array of packages depended on
declare -a DEPENDENCIES=(
'pwd' 'curl' 'missing-package'
)
@thetasnippets
thetasnippets / gist:6843102
Created October 5, 2013 16:39
apache: htaccess recipes
# 301 redirect one domain to another
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ http://www.__DOMAIN.what__/$1 [R=301]
# Nice URLS PHP .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f