First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {
function woocommerce_wp_select_multiple( $field ) { | |
global $thepostid, $post, $woocommerce; | |
$thepostid = empty( $thepostid ) ? $post->ID : $thepostid; | |
$field['class'] = isset( $field['class'] ) ? $field['class'] : 'select short'; | |
$field['wrapper_class'] = isset( $field['wrapper_class'] ) ? $field['wrapper_class'] : ''; | |
$field['name'] = isset( $field['name'] ) ? $field['name'] : $field['id']; | |
$field['value'] = isset( $field['value'] ) ? $field['value'] : ( get_post_meta( $thepostid, $field['id'], true ) ? get_post_meta( $thepostid, $field['id'], true ) : array() ); |
<select id="con18country" name="con18country" tabindex="26"> | |
<option value=""> | |
--None-- | |
</option> | |
<option value="AF"> | |
Afghanistan | |
</option> | |
<option value="AX"> | |
Aland Islands | |
</option> |
DELETE FROM wp_options WHERE option_name LIKE '_wc_session_%' OR option_name LIKE '_wc_session_expires_%'; | |
DELETE FROM wp_options WHERE option_name LIKE '_transient_wc_%' OR option_name LIKE '_transient_timeout_wc_%'; |
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free | |
deb http://http.debian.net/debian jessie main contrib non-free | |
deb http://http.debian.net/debian/ jessie-updates main contrib non-free | |
deb http://download.proxmox.com/debian jessie pve-no-subscription | |
deb http://security.debian.org/ jessie/updates main contrib non-free |
First create global variables (in functions.php or as a mu-plugin):
<?php
/*
* CUSTOM GLOBAL VARIABLES
*/
function wtnerd_global_vars() {
jQuery( "input#delete_option1" ).each(function() { | |
jQuery( this ).attr("checked","checked"); | |
}); | |
jQuery( "select#reassign_user" ).each(function() { | |
jQuery( this ).val("81"); | |
}); |
Sub ProgressBar() | |
On Error Resume Next | |
With ActivePresentation | |
For X = 1 To .Slides.Count | |
.Slides(X).Shapes("PB").Delete | |
Set s = .Slides(X).Shapes.AddShape(msoShapeRectangle, _ | |
0, 0, _ | |
X * .PageSetup.SlideWidth / .Slides.Count, 18) | |
s.Fill.ForeColor.RGB = RGB(63, 153, 209) | |
s.Line.Visible = 0 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
<title></title> | |
<meta content="" name="description"> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"rel="stylesheet"> |
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |
Installing new box for nginx-wordpress (ubuntu minimal): | |
Prepare server | |
------------------------------------ | |
apt-get update | |
apt-get upgrade | |
apt-get dist-upgrade #upgrade distribution | |
apt-get install sudo dialog software-properties-common python-software-properties | |
apt-get install bsdutils #for percona |