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: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 / domlogs.sh
Last active January 6, 2022 19:44
Preserve cpanel domain logs to a secondary hard drive.
#!/bin/sh
# Log rotate script created by Denver Prophit Jr.
# https://www.google.com/+DenverprophitJr
# Version 0.2-beta
# Are we already runnig? Twice runs is bad thing
if [ -f /tmp/domlogs.flag ]; then echo "Already running!"; exit 2; fi
# Flag is indicating, that we running
@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 / 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>
@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 / issue.txt
Last active August 8, 2019 21:37
Secure Shell Daemon Enhanced Configuration
This computer system is for authorized users only. Individuals using this
system without authority or in excess of their authority are subject to
having all their activities on this system monitored and recorded or
examined by any authorized person, including law enforcement, as system
personnel deem appropriate. In the course of monitoring individuals
improperly using the system or in the course of system maintenance, the
activities of authorized users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate. Anyone using this
system consents to these terms.
@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]