The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
// ------------------------------------------ | |
// Utility Classes | |
// ------------------------------------------ | |
.fn-text-header{ color:$headerColor } | |
.fn-text-link{ a {color:$linkColor} } | |
.fn-text-link{ a:hover {color:$linkHoverColor} } | |
.fn-text-text{ color:$fontColor; p,div{color:$fontColor;}} | |
.fn-text-accent{ color:$textAccents } | |
.fn-text-code-text{ color:$codeText } | |
.fn-text-header-alt{ color:$headerColorAlt } |
# You need the put in the full path to the directory that has your backups | |
# This directory will have a bunch of folders that are named with dates | |
sudo find "/Volumes/Full Path/To Backup/Directory" -type d -ctime +90 -maxdepth 1 -exec tmutil delete {} \; |
# Simple redirect | |
Redirect 301 /mac/mynest/ http://joeworkman.net/mac/climate/ | |
# 404 Error catch | |
ErrorDocument 404 /errors/404/index.html | |
ErrorDocument 403 /errors/404/index.html | |
ErrorDocument 500 /errors/500/index.html | |
# Compression | |
<IfModule mod_deflate.c> |
launchpro-clipboard://x-callback-url/addText?value=[prompt-twitter:Post]& | |
x-success={{launchpro-facebook://x-callback-url/clipboard& | |
x-success={{launchpro-tweet://x-callback-url/clipboard& | |
x-success={{launchpro://?url=riposte%3A%2F%2FcreateNewPost%3Ftext%3D%5Bclipboard%5D%26accountID%3Djoeworkman}} | |
}} | |
}} |
<video width="320" height="240" poster="poster.jpg" controls="controls" preload="none"> | |
<!-- MP4 for Safari, IE9, iPhone, iPad, Android, and Windows Phone 7 --> | |
<source type="video/mp4" src="myvideo.mp4" /> | |
<!-- WebM/VP8 for Firefox4, Opera, and Chrome --> | |
<source type="video/webm" src="myvideo.webm" /> | |
<!-- Ogg/Vorbis for older Firefox and Opera versions --> | |
<source type="video/ogg" src="myvideo.ogv" /> | |
<!-- Optional: Add subtitles for each language --> | |
<track kind="subtitles" src="subtitles.srt" srclang="en" /> | |
<!-- Optional: Add chapters --> |
<?php | |
if (!empty($_SERVER['SUBDOMAIN_DOCUMENT_ROOT'])) { | |
#GoDaddy Hackery | |
$_SERVER['DOCUMENT_ROOT'] = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT']; | |
} | |
?> |
All these tests were ran executing an scp
command via time
. The average speeds were guesstimated by me eyeballing the rates during the course of the transfer.
<!-- You will need to possibly change logo id "#logo" so that it fits with your theme | |
-- You will need to change your URL "http://joeworkman.net" | |
-- You can place this in Header tab or into the footer field (recommended) --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script> | |
<script>jQuery.noConflict(true)(function(){jQuery('#logo img').wrap(jQuery('<a>').attr('href','http://joeworkman.net'));});</script> |