In this case registered
field is DATETIME
type.
SELECT *
FROM users
WHERE
`registered` >= CONCAT(SUBDATE(CURDATE(), 1), ' 00:00:00') AND
# SACONFIGSTART | |
# Make sure we get the required score header. | |
rewrite_header subject [SPAM] (_SCORE_) | |
# SACONFIGEND | |
# SA RULES GO HERE | |
add_header all Score _SCORE_ | |
bayes_auto_learn 1 | |
bayes_auto_learn_threshold_nonspam -5.0 |
/* | |
* The Events Calendar - Yoast SEO - Prevent Yoast from changing Event Title Tags for Event Views (Month, List, Etc,) | |
* @TEC - 3.11 | |
* @Yoast - 2.3.4 | |
*/ | |
add_action( 'pre_get_posts', 'tribe_remove_wpseo_title_rewrite', 20 ); | |
function tribe_remove_wpseo_title_rewrite() { | |
if ( class_exists( 'Tribe__Events__Main' ) && class_exists( 'Tribe__Events__Pro__Main' ) ) { | |
if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) { | |
$wpseo_front = WPSEO_Frontend::get_instance(); |
#!/bin/bash | |
SET_USERS="usernameone:password:/path/to/web/folder usernametwo:password:/path/to/second/folder" | |
IFS=' ' read -a USERS <<< "${SET_USERS}" | |
for SET_USER in ${USERS[@]}; do | |
IFS=':' read -a USER <<< "${SET_USER}" | |
NAME=${USER[0]}; | |
PASS=${USER[1]}; | |
DIR=${USER[2]}; | |
(echo $PASS; echo $PASS) | pure-pw useradd $NAME -u www-data -g www-data -d $DIR |
Forked from Sprout Social's Pen KwJGze.
A Pen by Brian King on CodePen.
<?php | |
/*-----------------------------------------------------------------------------------*/ | |
/* Conditional Logic to Detect Various Event Related Views/Pages | |
/*-----------------------------------------------------------------------------------*/ | |
if( tribe_is_month() && !is_tax() ) { // Month View Page | |
echo 'were on the month view page'; | |
} elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
Table collapses into a "list" on small screens. Headers are pulled from data attributes.
Forked from Geoff Yuen's Pen Responsive Table.
A Pen by Brian King on CodePen.
<!DOCTYPE html> | |
<html > | |
<head> | |
<meta charset="UTF-8"> | |
<title>Responsive Table Example</title> | |
<style> | |
@import 'http://fonts.googleapis.com/css?family=Open+Sans:300,400,700'; | |
* { |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.