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 / chownnobody.sh
Last active September 12, 2017 06:05
cPanel user nobody chown to cp user
#!/bin/bash
# Script to fix permissions of cpanel nobody file and folders
# Written by: Denver Prophit Jr. 03/13/2015
# https://www.strikehawk.com
for user in `ls -A /var/cpanel/users`
do
HOMEDIR=$(egrep "^${user}:" /etc/passwd | cut -d: -f6)
find $HOMEDIR ! -user $USER -exec chown $USER {} \;
done
@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
@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.
*
@inetbiz
inetbiz / blocksearch-top.tpl
Last active August 29, 2015 14:22
Trying to make form accessible
{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
@inetbiz
inetbiz / single.html
Created June 4, 2015 12:54
Avada single.php add shortcode for user social on author bio loop
<div class="about-author">
<?php
ob_start();
the_author_posts_link();
$title = sprintf( '%s %s', __( 'About the Author:', 'Avada' ), ob_get_clean() );
echo do_shortcode( sprintf( '[title size="2" content_align="left" style_type="default"]%s[/title]', $title ) );
?>
<div class="about-author-container">
<div class="avatar">
<?php echo get_avatar(get_the_author_meta('email'), '72'); ?>
<html>
<head>
<style>
#outlook a {
padding: 0
}
body {
width: 100% !important;
min-width: 100%;
@inetbiz
inetbiz / taxonomy.html
Created August 18, 2015 15:49
Taxonomy Keywords Example
<!-- Add this code to article page: -->
<div itemscope itemtype='http://schema.org/Article'>
<meta itemprop='keywords' content='abc, def, ghi, jkl, mno, pqrs'/>
<meta itemprop='inLanguage' content='en_us'/>
<meta itemprop='interactionCount' content='UserTweets: 20,001'/>
<meta itemprop='description' content='This article example demonstrates how one should define the taxonomies of their content groupings'/>
<meta itemprop='about' content='Taxonomy is the study of classification of tangible and intangible items and is a subset of Ontology. '/>
<meta itemprop='isFamilyFriendly' content='True'/>
<h1 itemprop='name headline'>Taxonomy Keywords</h1>
@inetbiz
inetbiz / html5-css-calendar-icon.html
Last active November 12, 2015 06:02
HTML5 Date Icon With Animation And Transforming Affects
<time class="icon" datetime="2014-09-20T15:00-5:00"><em>Saturday</em>
<strong>September</strong>
<span>20</span>
<i>3pm -5 GMT</i>
</time>
<style>
time.icon
{
font-size: 1em; /* change icon size */
display: block;
@inetbiz
inetbiz / ski-resort-about.html
Last active December 2, 2015 13:35
Local Ski Resort
<div itemscope itemtype="http://schema.org/SkiResort">
<span itemprop="name">StrikeHawk eCommerce, Inc.</span>
We accept <span itemprop="paymentAccepted">Cash, credit card</span> in these currencies: <span itemprop="currenciesAccepted">USD, AUD, EUR, GBP</span>
The typical destination package ranges from <span itemprop="priceRange">50 - 300</span> Euros.
We are open <time itemprop="openingHours" datetime="Mo - Fri 13:00-20:00">Monday through Friday from 1pm to 8pm.</time>
<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress">21204 NEWPORT SOUND PL</span>
<span itemprop="addressLocality">NEW SMYRNA BEACH</span>,
<span itemprop="addressRegion">FL</span>
<span itemprop="postalCode">32168</span>
@inetbiz
inetbiz / sa-learn-cron-commands.txt
Last active April 9, 2016 18:54
SpamAssassin SA_LEARN Cron Commands
0 0 * * * /usr/local/cpanel/3rdparty/bin/sa-learn -p /home/cp-user/.spamassassin/user_prefs --use-ignores --spam /home/cp-user/mail/domain.com/*/.Junk/{cur,new} > /dev/null 2>&1
0 0 * * * /usr/local/cpanel/3rdparty/bin/sa-learn -p /home/cp-user/.spamassassin/user_prefs --use-ignores --ham /home/cp-user/mail/domain.com/*/.ham/{cur,new} > /dev/null 2>&1