time.google.com
time1.google.com
time2.google.com
time3.google.com
You are an email prioritization assistant. Analyze the following email and determine its priority level. | |
Consider these factors for priority classification: | |
GENERAL FACTORS: | |
- Sender importance and relationship | |
- Time sensitivity of the content | |
- Required actions or responses | |
- Impact of delayed response | |
- Complexity of the request |
import React from "react"; | |
// Usage: | |
// <WithConfirmation | |
// onClick={deletePost} | |
// confirmationMessage="Are you sure you want to delete this post?" | |
// renderButton={({ onClick }) => { | |
// return ( | |
// <button onClick={onClick}> | |
// Delete post |
/* | |
* To untick all the "personalised interests" that are used for ad targeting on twitter | |
* you go to this page: | |
* | |
* https://twitter.com/settings/your_twitter_data/twitter_interests | |
* | |
* Go to the inspector and run this code and it should untick all the ticked boxes | |
* in the list. You can change the interval to less than 650ms. You need a delay | |
* or the twitter API thinks you're trying to overload it. | |
* |
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
<?php | |
/** | |
* Pre-populate Woocommerce checkout fields | |
* Note that this filter populates shipping_ and billing_ fields with a different meta field eg 'first_name' | |
*/ | |
add_filter('woocommerce_checkout_get_value', function($input, $key ) { | |
global $current_user; | |
switch ($key) : |
Php fpm is the new way to setup php to run with your webserver. Php-fpm is a fastcgi process manager for php that is totally separate from the webserver. The webserver communicates with fpm through a socket and passes the name of the script to execute. So fpm can run with any web server that is fastcgi compatible.
I recently moved from my old shared hosting to linode. Linode provides linux vps hosting at economic prices. However the servers are totally unmanaged are just raw linux machines that have shell access. So through the shell you have to setup everything including the web server, php and the web files.
So this time I decided to go with the combination of nginx and php-fpm. I had multiple sites to setup on this new webserver. Nginx deals with these through separate server blocks (aka vhost in apache). However there was another thing needed. Php on each site should run with its own user and not the nginx common user named www-data.
Running each site with its own uid/gid is more secure and
$critical-css-only:true !default; | |
@mixin critical($critical-only:true){ | |
@if (($critical-css-only and $critical-only) or (not $critical-css-only and not $critical-only)){ | |
@content; | |
} | |
} |
# The path to store the cache files, limit the folder to 100MB | |
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m; | |
# A unique request is defined by this cache key | |
fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
# Show the cached version if upstream gives a timeout or a HTTP 500 error | |
fastcgi_cache_use_stale error timeout invalid_header http_500; | |
# Don't use the following headers to define the cache variables |