A couple of personal statistics scripts.
# create stats. can be run from cron. /var/www/statsmaker/create.sh # fix. must supply date. /var/www/statsmaker/fix.sh 190201 |
cloud engineer
A couple of personal statistics scripts.
# create stats. can be run from cron. /var/www/statsmaker/create.sh # fix. must supply date. /var/www/statsmaker/fix.sh 190201 |
# create stats. can be run from cron. /var/www/statsmaker/create.sh # fix. must supply date. /var/www/statsmaker/fix.sh 190201
Here’s how to reverse sort WP_Query. Order by ID. Reverse sort by ASC intead of DESC.
$args = array ( 'cat' => 8, 'year' => $year, 'orderby' => 'ID', 'order' => 'ASC', 'posts_per_page' => -1, 'paged' => $paged, 's' => $searchterm ); $category_posts = new WP_Query($args); |
$args = array ( 'cat' => 8, 'year' => $year, 'orderby' => 'ID', 'order' => 'ASC', 'posts_per_page' => -1, 'paged' => $paged, 's' => $searchterm ); $category_posts = new WP_Query($args);
Here’s how to create a Linux group with a specific ID. Group name is nginx in this example. ID is 1000.
groupadd nginx -g 1000 |
groupadd nginx -g 1000