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 / article.json
Created March 7, 2017 18:32
Schema Article with Comments [ Work in Progress ]
{
"@context": "http://schema.org",
"@type": "Article",
"author": "John Doe",
"interactionStatistic": [
{
"@type": "InteractionCounter",
"interactionService": {
"@type": "Website",
"name": "Twitter",
@inetbiz
inetbiz / offer-schema.html
Created February 26, 2017 16:55
Offer Schema
<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Kenmore White 17" Microwave</span>
<img itemprop="image" src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
<div itemprop="aggregateRating"
itemscope itemtype="http://schema.org/AggregateRating">
Rated <span itemprop="ratingValue">3.5</span>/5
based on <span itemprop="reviewCount">11</span> customer reviews
</div>
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<!--price is 1000, a number, with locale-specific thousands separator
@inetbiz
inetbiz / html-main-html
Created January 31, 2017 21:43
HTML5 Main Tag Example
<body>
<--- Your brand name, logo, byline -->
<header role="banner">
[...]
</header>
<-- This is the real meat and potatoes of your content! -->
<main id="content" class="group" role="main">
[...]
</main>
<-- Author Bio, Related Tags, Links, Categories, etc. -->
@inetbiz
inetbiz / site.conf
Last active March 25, 2023 18:56 — forked from paskal/site.conf
Nginx configuration for best security and modest performance. Full info on https://terrty.net/2014/ssl-tls-in-nginx/
# read more at https://terrty.net/2014/ssl-tls-in-nginx/
# latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf
# security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net
# your nginx version might not have all directives included, test this configuration before using in production against your nginx:
# $ nginx -c /etc/nginx/nginx.conf -t
server {
# public key, contains your public key and class 1 certificate, to create:
# (example for startssl)
# $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null
@inetbiz
inetbiz / backup-custom.sh
Last active November 6, 2016 16:00
Backup cpanel accounts without the docroot files ( public_html) to backup drive. https://www.google.com/+StrikehawkeComm
#!/bin/sh
# Custom Backup script created by strikehawk.com
# https://www.google.com/+StrikehawkeComm
# Version 0.2-beta
# Are we already runnig? Twice runs is bad thing
if [ -f /tmp/custombackup.flag ]; then echo "Already running!"; exit 2; fi
# Flag is indicating, that we running
@inetbiz
inetbiz / schema-person.html
Last active December 2, 2021 23:55
Schema.org Person markup in JSON+LD format. Includes birthdate, place of birth, photo and worksFor with remote @id
<!-- Run the code inbetween <script></script> through https://www.webtoolkitonline.com/json-minifier.html -->
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Person",
"@id": "#person",
"mainEntityOfPage": {
"@type": "ProfilePage",
"mainEntity": { "@id": "/schema-person.html#person" },
"lastReviewed": "2019-03-03T12:17:12.5249075-08:00"
@inetbiz
inetbiz / star-author-only.php
Last active August 23, 2016 00:06
Sama Author Review WordPress Plugin Bug Fix
<?php
/**
* From Denver Prophit Jr.: This file fixes /wp-content/plugins/sama-author-review/templates/star-author-only.php
* The Template for displaying Author Review Star in single post.
* Override this template by copying it to yourtheme/sama-author-review/star.php
*
* @author samathemes inetbiz
* @package sama-author-review/templates
* @since 1.7
<?php
// File Location /public_html/wp-content/plugins/ultimate-video-seo/classes/pvs_schema_markup_class.php
class pvs_schema_markup_class {
public function __construct() {
global $pvs_options;
if (!isset($pvs_options['pvs_rich']) ) {
add_action('the_content', array(&$this, 'pvs_schema_markup_function'));
}
}
@inetbiz
inetbiz / markup.php
Last active August 14, 2016 15:48
Genesis Framework 2.3.1 /lib/functions/markup.php
<?php
/**
* Genesis Framework.
*
* WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
* Please do all modifications in the form of a child theme.
*
* @package Genesis\Markup
* @author StudioPress
* @license GPL-2.0+
@inetbiz
inetbiz / organization.json
Last active June 20, 2017 23:44
JSON+LD Organization Schema with extensive data
{
"@context": "http://schema.org",
"@type": "Organization",
"@id": "#publisher",
"@reverse":
{
"publisher":
{
"@type":"Website",
"potentialAction":