I hereby claim:
- I am kjprince on github.
- I am kjprince (https://keybase.io/kjprince) on keybase.
- I have a public key ASByjDRiL9ZAjpCrE-sddgUcvOeYwmA4d3rWrWpVj5N2eQo
To claim this, I am signing this object:
# Virtual Host File | |
# Common wordpress configurations included in /etc/nginx/wordpress.conf | |
# All virtual hosts including this one are symlinked to /etc/nginx/sites-enabled | |
# Make sure you replace "mysite" with your domain name | |
server { | |
listen 80 default_server; | |
listen 443 ssl; | |
server_name mysite.com www.mysite.com *.mysite.com; |
<?php | |
require dirname(__FILE__).'/wp-blog-header.php'; | |
$wpdb->query("DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%')"); | |
$wpdb->query("DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy)"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_posts WHERE post_type IN ('product','product_variation')"); |
<?php | |
require dirname(__FILE__).'/wp-blog-header.php'; | |
$wpdb->query("DELETE FROM wp_terms WHERE term_id IN (SELECT term_id FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%')"); | |
$wpdb->query("DELETE FROM wp_term_taxonomy WHERE taxonomy LIKE 'pa_%'"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE term_taxonomy_id not IN (SELECT term_taxonomy_id FROM wp_term_taxonomy)"); | |
$wpdb->query("DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type IN ('product','product_variation'))"); | |
$wpdb->query("DELETE FROM wp_posts WHERE post_type IN ('product','product_variation')"); |
I hereby claim:
To claim this, I am signing this object:
# ------------------------------------------------------------------------------ | |
# SETUP CRON JOBS 4 Backup + Server Love --------------------------------------- | |
# ------------------------------------------------------------------------------ | |
# Start by opening the default logger | |
nano /etc/rsyslog.d/50-default.conf | |
# Start tracking cron jobs | |
Uncomment: cron.* [remove the "#" around line 10] | |
Uncomment: daemon.* [remove the "#" around line 11] |
# See this setup: http://polihronov.wordpress.com/ | |
# | |
# | |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
# multi_accept on; |
################################## | |
# WORDPRESS NGINX CONFIGURATIONS | |
################################## | |
# /etc/nginx/wordpress.conf | |
# | |
# Contains a common configuration for use by nginx on a WordPress | |
# installation. This file should be included in any WordPress site | |
# nginx virtual host config located in sites-available with the following line: | |
# | |
# include /etc/nginx/wordpress.config; |
/* | |
From the Magic List Youtube | |
https://gist.github.com/wirtzdan/cbaf758e707a9f5a498829c60519cd9b | |
*/ | |
:root { | |
--font-size: 15.5px; | |
--font-color: hsl(205, 23%, 16%); |