This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* gulp.js file | |
* | |
* Github Repo | |
* https://github.com/ponko2/laravel-elixir-browser-sync | |
* | |
* Node Install | |
* | |
* Laravel Elixir 2.x | |
* npm install [email protected] --save-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ln -s /usr/bin/nodejs /usr/bin/node" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://mailcatcher.me/ | |
gem install mailcatcher | |
# $ mailcatcher --help | |
# Usage: mailcatcher [options] | |
# --ip IP Set the ip address of both servers | |
# --smtp-ip IP Set the ip address of the smtp server | |
# --smtp-port PORT Set the port of the smtp server | |
# --http-ip IP Set the ip address of the http server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install mcrypt php5-mcrypt | |
sudo php5enmod mcrypt | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'genesis_after_header', 'custom_widget_name' ); | |
function custom_widget_name() { | |
genesis_widget_area ('custom_widget_name', array( | |
'before' => '<div class="custom_widget_name"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action ( 'get_header' , 'home_remove_post' ); | |
function home_remove_post() { | |
if( is_home() || is_front_page() ) { | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* Modify Genesis Featured Post HTML structure | |
$('.featuredpost article').each(function(index) { | |
//* Element variables | |
var $thumbnail = $(this).find('a.alignleft'); | |
var $header = $(this).find('.entry-header'); | |
var $content = $(this).find('.entry-content'); | |
$thumbnail.removeClass('alignleft'); | |
//* Apply Genesis column classes | |
$thumbnail.addClass('one-fourth'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true ); | |
$cat_image = wp_get_attachment_url( $thumbnail_id ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Commands to install required packages | |
sudo yum -y update | |
sudo yum -y install epel-release | |
sudo yum -y wget | |
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm | |
wget https://centos6.iuscommunity.org/ius-release.rpm | |
sudo rpm -Uvh ius-release*.rpm | |
sudo yum -y update | |
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath |
OlderNewer