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
@vanto
vanto / README.md
Last active December 23, 2021 21:28
OEmbed Liquid Tag for Jekyll

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@inetbiz
inetbiz / wordpress-category-collectionpage-schema.html
Created August 21, 2014 18:06
WordPress Category Description in Schema.org Colletion Page markup
<div itemscope itemtype="http://schema.org/CollectionPage">
<meta itemprop="sameAs" content="https://en.wikipedia.org/wiki/Social_media" />
<a itemprop="url" href="https://www.example.org/category/social-media/"><img src="/wp-content/uploads/xxxx/xxxx/xxxxxx.png" width="95" height="100" itemprop="logo" alt="Social Media Iconic Representation" align="left"></a>
<div itemprop="name"><strong>Open Source Hardware</strong></div>
<div itemprop="description">Whatever description you are going to use that is contextual to both your sameAs content and the category loop</div>
</div>
@paskal
paskal / site.conf
Last active April 27, 2024 00:55 — forked from plentz/nginx.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 / server-response-time.sh
Last active August 5, 2016 14:50
Check your site's server response time! And, do a reverse traceroute in linux / mac shell
# Modify curl for your site lookup at the end of line
curl -s -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null http://www.example.com
# Use mtr for reverse traceroute. Change 192.168.1.1 to client reported IP address from whatismyip.com
mtr --report -c 5 192.168.1.1
@mw-ferretti
mw-ferretti / README.md
Last active January 28, 2023 20:44
Paypal button on markdown github

Steps:

<!-- Sample of code generated --> 
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RGQ8NSYPA59FL">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_BR/i/scr/pixel.gif" width="1" height="1">
@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.
*
@nternetinspired
nternetinspired / output-articles-by-collection.liquid
Last active April 25, 2021 02:17
Loop through Jekyll collections and output their content as sections and articles
{% comment %}
Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting title and full text with good basic html semantics.
Use page.excerpt instead of page.content to grab the first paragraph, blog list style. Markdownify is optional, depends how you authored content in your collections; I typically use Markdown.
{% endcomment % }
{% for collection in site.collections %}
{% assign name = collection.label %}
<section>
@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":
@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 / .htaccess
Last active August 24, 2021 18:37
WordPress Security & Optimization in htaccess and Robots.txt
# BEGIN WordPress https://wordpress.org/support/article/htaccess/
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
Allow [ Trusted Domains/IPs ]
</Files>
# FINISH XML RPC BLOCKING
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]