Skip to content

Instantly share code, notes, and snippets.

View InternetMedicineMan's full-sized avatar

Jason Diehl InternetMedicineMan

View GitHub Profile
<?php
/**
*
* @author Raj KB<magepsycho@gmail.com>
* @website http://www.magepsycho.com
* @extension MassImporterPro: Pricing - http://www.magepsycho.com/mass-importer-pro-price-importer-regular-special-tier-group.html
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );?>
<header <?php astra_entry_header_class(); ?>
<?php
if ( !empty( $thumb[0] ) )
{
echo 'style="background-image: url(' . $thumb[0] . ')" class="entry-header photo"';
}
else
{
@InternetMedicineMan
InternetMedicineMan / .aliases
Last active October 2, 2015 22:08
My Aliases file for Bash
# General Mac Stuff
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
alias lamp="curl -L -o 'install.sh' http://bit.ly/1hBfq57 && curl -L -o 'Vagrantfile' http://bit.ly/1mE3Qt9 && vagrant up"
alias web='cd /Volumes/Storage\ Drive/Webservers'
alias ls='ls -GFh'
# Git Stuff
alias ga='git add'
alias gaa='git add .'