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
@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 / 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 / gist:11239763
Created April 24, 2014 02:48
wordpress-security-obscurity.php
//Remove WordPress Generator Meta Tag as a obscurity measure
remove_action('wp_head', 'wp_generator');
// Remove it from your RSS feeds
function remove_generator_version_rss() {
return '';
}
add_filter('the_generator', 'remove_generator_version_rss');
@inetbiz
inetbiz / geolocation.xml
Last active August 29, 2015 14:03
Geographical Location XML SIte Feed
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:geo="http://www.google.com/geo/schemas/sitemap/1.0">
<url>
<loc>https://www.denverprophit.us/geolocation.kml</loc>
</url>
</urlset>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noodp, noydir" />
<link rel="canonical" href="http://mysite.com/" />
<link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" />
<link rel="alternate" href="http://feeds.feedburner.com/feed" type="application/rss+xml" title="Direct Feed"/>
<link rel="shortcut icon" href="http://mysite.com/images/favicon.ico" type="image/x-icon" />
# Force SSL Logins
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
/* That's all, stop editing! Happy blogging. */
@inetbiz
inetbiz / .htaccess
Last active August 29, 2015 14:05
.htaccess redirect HTTP links to HTTPS
#This snippet places into your .htaccess file either in /var/www/httpd, /var/www/httpd_docroot or /home/your username/public_html
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
@inetbiz
inetbiz / sshd_config
Created September 26, 2014 02:22
SSHD Config
# $OpenBSD: sshd_config,v xxxx 2014/09/25 23:59:53 dprophit Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
@inetbiz
inetbiz / tinymce-advanced-config.md
Created January 30, 2015 22:59
TinyMCE Advanced Configuration for WordPress

extended_valid_elements

div[*],span[*],meta[*]div[*],span[*],meta[*],iframe[src|title|width|height|allowfullscreen|frameborder|class|id],object[classid|width|height|codebase|*],param[name|value|_value|*],embed[type|width|height|src|*]

valid_children

+body[meta],+div[h2|span|meta|object],+object[param|embed]
@inetbiz
inetbiz / product.tpl
Last active August 29, 2015 14:20
Prestashop Product Detail Tabs *Alpha Code*
{*
* 2015 StrikeHawk eCommerce, Inc.
*
* NOTICE OF LICENSE
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*