This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# only use one of these. | |
#Force www: | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^site.com [NC] | |
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301,NC] | |
#Force non-www: | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.site\.com [NC] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# example: awk a clamav logfile (clamout.log) and write new file(awklog.txt) of lines that have "Empty file"[case-sensitive] in them | |
awk '/Empty file/{ print $0 }' clamout.log.txt > awklog.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$text-color: #e4a923; | |
$font-main: 'Oswald', sans-serif; | |
@mixin font-geometry-base($font-size) { | |
font-size: $font-size; | |
line-height: $font-size * 1.667; | |
} | |
.countdown-outer { | |
.heading { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# force ssl | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://site.com/$1 [R,L] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^dev.domain.net [NC] | |
RewriteRule ^(.*)$ http://www.livedomain.com/$1 [L,R=301,NC] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# browser caching | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access plus 1 year" | |
ExpiresByType image/jpeg "access plus 1 year" | |
ExpiresByType image/gif "access plus 1 year" | |
ExpiresByType image/png "access plus 1 year" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType application/pdf "access plus 1 month" | |
ExpiresByType text/x-javascript "access plus 1 month" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CORS list | |
<IfModule mod_headers.c> | |
SetEnvIf Origin "http(s)?://(www\.)?(domainone\.com|domaintwo\.com)$" AccessControlAllowOrigin=$0 | |
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import getopt | |
import os | |
import shutil | |
basedir = '' | |
outputdir = '' | |
sqlpath = '' |
NewerOlder