Once per server:
apt-get update && apt-get upgrade
apt-get install libapache2-mod-wsgi
apt-get install python-setuptools python-dev build-essential
easy_install -U pip
/* | |
* Remove Genesis Breadcrumbs from the Event Calendar View Pages | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
*/ | |
add_action( 'genesis_before', 'tribe_remove_genesis_breadcrumbs' ); | |
function tribe_remove_genesis_breadcrumbs() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); |
/** | |
* The Events Calendar - Include Genesis Simple Sharing Above Single Events Content | |
* | |
*/ | |
add_filter( 'tribe_events_single_event_before_the_content', 'tribe_genesis_event_share' ); | |
function tribe_genesis_event_share( $post_info ) { | |
if ( is_singular('tribe_events') && function_exists( 'genesis_share_get_icon_output' ) ) { | |
global $Genesis_Simple_Share; | |
$share = genesis_share_get_icon_output( 'entry-meta', $Genesis_Simple_Share->icons ); |
<?php //* Mind this opening PHP tag | |
/* | |
* Full list source: https://gist.github.com/wpsmith/3666330 | |
*/ | |
/* | |
* Force Layout - No User Override | |
*/ |
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
set list
Shows invisible characters.set listchars
What invisibile characters should be set to, see :h listchars
for complete list.map
creates a key map that works in normal, visual, select and operator pending modesmap!
creates a key map that works in insert and command-line mode.This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
/*-------------------------------------------*/ | |
/* Register and enqueue scripts and styles | |
/*-------------------------------------------*/ | |
function jumpoff_scripts_and_styles() { | |
if ( !is_admin() ) { | |
//Register Styles | |
wp_register_style( 'jumpoff_styles',get_template_directory_uri() . '/assets/css/app.min.css', false ); | |
wp_register_style( 'jumpoff_fonts',get_template_directory_uri() . '/assets/css/fonts.min.css', false ); | |