Skip to content

Instantly share code, notes, and snippets.

View edheltzel's full-sized avatar
🇺🇸
Just your average run-of-the-mill kinda guy

Mr edheltzel

🇺🇸
Just your average run-of-the-mill kinda guy
View GitHub Profile
@edheltzel
edheltzel / wp-config.php
Last active June 17, 2020 12:15
YeoPress wp-config
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@edheltzel
edheltzel / httpd-vhosts.conf
Created March 18, 2015 16:05
setting up a vhost
(export USERHOME=$(dscl . -read /Users/`whoami` NFSHomeDirectory | awk -F"\: " '{print $2}') ; cat > ~/Sites/httpd-vhosts.conf <<EOF
#
# Listening ports.
#
#Listen 8080 # defined in main httpd.conf
Listen 8443
#
# Use name-based virtual hosting.
#
@edheltzel
edheltzel / robots.txt
Last active June 1, 2016 15:30
RobotsTXT file for Wordpress
# Rainy Day Media Flux Wordpress RobotsTXT
# we are allowing everything to be indexed based on Yoast - https://yoast.com/wordpress-robots-txt-example/
User-agent: *
Allow: /
User-agent: Mediapartners-Google
Allow: /
User-agent: Adsbot-Google
Allow: /
@edheltzel
edheltzel / .bashrc
Last active July 15, 2021 13:56
bashrc file for VMs inside of the RDM SSH workflow
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@edheltzel
edheltzel / wp-permission.bash
Last active September 8, 2015 12:41
Update wordpress permissions
# Recommendation from Wordpress
#
# Set all diretories without touching files
sudo find /var/www -type d -exec chmod 755 {} +
# Set all files without touching directories
sudo find /var/www -type f -exec chmod 644 {} +
@edheltzel
edheltzel / ADD_SFTP_User.md
Last active December 2, 2024 07:56
Steps to create a new SSH user and SFTP user

How to add a SFTP user to your VM managed by ServerPilot control panel using Ubuntu 14.04

I am not a security expert, so take it for what its worth.

OpenSSH has this ability built in, few people just seem to use the feature. Below is what works for me, but if you have a better way please share the uninformed.

The Steps:

  1. First create a new app inside of the SP control panel
  2. Now, decide what direcoty you want to put the users directory; either `` or /public. This will keep trolls at bay.
@edheltzel
edheltzel / functions.php
Last active August 15, 2019 19:14
Add to your functions.php file to search your content for images without an alt attribute. If they don't have an alt attribute this function will add it in with a default of the post title.
/*-----------------------------------------------------------------------------------*/
/* ADD ALT TAGS TO IMAGE
/* ----------------------------------------------------------------------------------*/
function rdm_add_alt_tags($content)
{
global $post;
preg_match_all('/<img (.*?)\/>/', $content, $images);
if(!is_null($images))
{
@edheltzel
edheltzel / og.html
Last active August 29, 2015 14:09 — forked from tlongren/og.html
<meta property="og:title" content="" /> <!-- post/page title -->
<meta property="og:type" content="" /> <!-- post/page type -->
<meta property="og:image" content="" /> <!-- post/page image -->
<meta property="og:url" content="" /> <!-- post/page url -->
<meta property="og:description" content="" /> <!-- post/page description -->
<meta property="og:site_name" content="" /> <!-- Site Name -->
@edheltzel
edheltzel / parallax.js
Last active August 29, 2015 14:09 — forked from murtaugh/parallax.js
$(window).scroll(function(e){
parallax();
});
function parallax() {
var scrolled = $(window).scrollTop();
//81% is the original top position of the element,
@edheltzel
edheltzel / index.html
Last active August 29, 2015 14:09
RDM email Signatures
<div id="signature">
<div id="content">
<img src="http://cl.ly/YQhT/flat_drop200x200.png"/></p>
<p id="title">Edward D Heltzel</p>
<p id="subtitle">Founder & Technical Strategist</p>
<p id="web"><a href="http://rainydaymedia.net">rainydaymedia.net</a>&nbsp;&nbsp;<span>•</span>&nbsp;&nbsp;<a href="tel:19372388756">937-238-8756</a>
</div>
</div>
<div id="signature">