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 / 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 / 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 / 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 / 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 / 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 / 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 / .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}
# Force SSL Logins
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
/* That's all, stop editing! Happy blogging. */
<!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" />
@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>