Skip to content

Instantly share code, notes, and snippets.

James Koster jameskoster

Block or report user

Report or block jameskoster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:26e80446bcc5b4e101cc8607af86aee1
Dec 14 06:49:43 vvv postfix/pickup[17603]: 5A3B660ACC: uid=0 from=<root>
Dec 14 06:49:43 vvv postfix/cleanup[18638]: 5A3B660ACC: message-id=<20171214064943.5A3B660ACC@vvv>
Dec 14 06:49:43 vvv postfix/qmgr[1305]: 5A3B660ACC: from=<root@vvv>, size=894, nrcpt=1 (queue active)
Dec 14 06:49:43 vvv postfix/local[18640]: 5A3B660ACC: to=<root@vvv>, orig_to=<root>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Dec 14 06:49:43 vvv postfix/qmgr[1305]: 5A3B660ACC: removed
Dec 14 07:09:01 vvv CRON[18665]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Dec 14 07:09:01 vvv CRON[18666]: (root) CMD ( [ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime))
Dec 14 07:17:01 vvv CRON[18730]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 14 07:39:01 vvv CRON[18872]: (root) CMD ( [ -x
@jameskoster
jameskoster / functions.php
Created Jan 16, 2017
WooCommerce disable magnification / zoom
View functions.php
add_action( 'wp_enqueue_scripts', 'jk_disable_magnification' );
function jk_disable_magnification() {
wp_dequeue_script( 'zoom' );
}
@jameskoster
jameskoster / functions.php
Created Jun 15, 2016
Bookshop - change the author attribute
View functions.php
add_filter( 'bookshop_author_attribute', 'jk_new_author_attribute' );
function jk_new_author_attribute( $attribute ) {
$attribute = 'pa_newattribute';
return $attribute;
}
@jameskoster
jameskoster / storefront-logo-size-adjust-example.css
Last active Oct 26, 2018 — forked from mattyza/storefront-logo-size-adjust-example.css
Adjust the dimensions of the header logo in the Storefront theme.
View storefront-logo-size-adjust-example.css
@media screen and (min-width: 768px) {
.site-header .site-branding, .site-header .site-logo-anchor, .site-header .site-logo-link, .site-header .custom-logo-link {
width: 21%; /* Adjust this percentage up or down to make the logo larger or smaller. */
}
}
@jameskoster
jameskoster / functions.php
Created May 11, 2016
Storefront - remove handheld navigation bar
View functions.php
add_action( 'init', 'jk_remove_storefront_handheld_footer_bar' );
function jk_remove_storefront_handheld_footer_bar() {
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 );
}
@jameskoster
jameskoster / style.css
Created May 9, 2016
Storefront - add an icon to the home link
View style.css
.storefront-handheld-footer-bar ul li.home > a:before {
content: "\f015";
}
@jameskoster
jameskoster / functions.php
Last active Mar 26, 2018
Storefront add a link to the handheld nav bar
View functions.php
add_filter( 'storefront_handheld_footer_bar_links', 'jk_add_home_link' );
function jk_add_home_link( $links ) {
$new_links = array(
'home' => array(
'priority' => 10,
'callback' => 'jk_home_link',
),
);
$links = array_merge( $new_links, $links );
@jameskoster
jameskoster / functions.php
Last active May 9, 2016
Storefront - remove account link from handheld footer bar
View functions.php
add_filter( 'storefront_handheld_footer_bar_links', 'jk_remove_handheld_footer_links' );
function jk_remove_handheld_footer_links( $links ) {
unset( $links['my-account'] );
unset( $links['search'] );
unset( $links['cart'] );
return $links;
}
@jameskoster
jameskoster / functions.php
Created May 9, 2016
Storefront remove handheld footer bar
View functions.php
add_action( 'init', 'jk_remove_storefront_handheld_footer_bar' );
function jk_remove_storefront_handheld_footer_bar() {
remove_action( 'storefront_footer', 'storefront_handheld_footer_bar', 999 );
}
@jameskoster
jameskoster / functions.php
Created Feb 5, 2016
Galleria - Disable masonry
View functions.php
add_action( 'wp_enqueue_scripts', 'jk_disable_masonry', 999 );
function jk_disable_masonry() {
wp_dequeue_script( 'masonry' );
}
You can’t perform that action at this time.