Skip to content

Instantly share code, notes, and snippets.

View inetbiz's full-sized avatar
💭
Honing my JSON+LD Structured Data Skills

Denver Prophit Jr. inetbiz

💭
Honing my JSON+LD Structured Data Skills
View GitHub Profile

Contract Killer

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

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

@inetbiz
inetbiz / user_prefs
Last active November 26, 2016 12:55
User SpamAssassin Custom Settings
# SACONFIGSTART
# Make sure we get the required score header.
rewrite_header subject [SPAM] (_SCORE_)
# SACONFIGEND
# SA RULES GO HERE
add_header all Score _SCORE_
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam -0.1
bayes_auto_learn_threshold_spam 6.0
@inetbiz
inetbiz / gist:9540912
Last active August 29, 2015 13:57
Redirect domain to www domain
# WWW redirect
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@inetbiz
inetbiz / apache-hsts.conf
Last active February 18, 2016 19:04
HSTS (HTTP Secure Transport Security) for Apache credit to https://www.owasp.org
# Use HTTP Strict Transport Security to force client to use secure connections only
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
@inetbiz
inetbiz / lighttpd-hsts.conf
Last active August 8, 2019 21:40
Lighttpd HSTS Configuration
server.modules += ( "mod_setenv" )
$HTTP["scheme"] == "https" {
setenv.add-response-header = ("Strict-Transport-Security" => "max-age=31536000; includeSubDomains; preload")
}
@inetbiz
inetbiz / iis-hsts
Last active February 18, 2016 19:08
protected void Application_BeginRequest(Object sender, EventArgs e)
{
switch (Request.Url.Scheme)
{
case "https":
Response.AddHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload");
break;
case "http":
var path = "https://" + Request.Url.Host + Request.Url.PathAndQuery;
Response.Status = "301 Moved Permanently";
@inetbiz
inetbiz / favicon-snippet.html
Created March 26, 2014 07:34
Gist for video http://youtu.be/yGYQAM5JE5Q osCommerce - Favicon with Retina for AppleTouch. You can also use the video tip for wordpress sites.
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png" />
@inetbiz
inetbiz / schema-person.html
Last active August 29, 2015 13:58
Schema.org/Person
<div itemscope itemtype="http://schema.org/Person">
<meta itemprop="sameAs" content="http://www.linkedin.com/in/denverprophit/" />
<img itemprop="image" src="https://en.gravatar.com/userimage/50779087/d3f0203ad6ca9c82bd2ce67dd3747888.jpg?size=200">
<a itemprop="url" href="https://www.denverprohit.us/"><div itemprop="name"><strong>Denver Prophit Jr.</strong></div>
</a>
<div itemscope itemtype="http://schema.org/Organization"><span itemprop="name">Denver Prophit Jr.</span></div><div itemprop="jobtitle">Open Source Evangelist</div>
<div itemprop="description">Open Source Evangelist dedicated to spreading the news about open source alternatives to commercial software.</div>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<div><span itemprop="addressLocality">NEW SMYRNA BEACH</span>, <span itemprop="addressRegion">Florida</span></div><div itemprop="postalCode">32168</div>
<div itemprop="addressCountry">USA</div>
@inetbiz
inetbiz / db-optimize.php
Last active September 7, 2021 17:00
Database Optimizer CRON Job via PHP
/* This script provided under the GNU GPL v3.0 AS-IS.
@Author = https://www.google.com/+DenverProphitJr
*/
<?PHP
# echo '<pre>' . "\n\n";
set_time_limit( 100 );
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];