Skip to content

Instantly share code, notes, and snippets.

View stoffl6781's full-sized avatar

Christoph Purin - Stoffl/OE9CPV stoffl6781

View GitHub Profile
UPDATE `wp_posts` SET guid = REPLACE(guid, 'oldsiteurl', 'newsiteurl') WHERE guid LIKE 'oldsiteurl%';
UPDATE `wp_postmeta` SET meta_value = REPLACE(meta_value, 'oldsiteurl', 'newsiteurl') WHERE meta_value LIKE 'oldsiteurl%';
UPDATE `wp_options` SET option_value = REPLACE(option_value, 'oldsiteurl', 'newsiteurl') WHERE option_value LIKE 'oldsiteurl%';
@stoffl6781
stoffl6781 / biorhytm.py
Created October 21, 2020 11:17
Python Biorhythmus
from datetime import date
import matplotlib.dates
from pylab import *
from numpy import array,sin,pi
date_entry = input('Dein Geburtsdatum DD.MM.YYYY:')
day, month, year = map(int, date_entry.split('.'))
dob = datetime.date(year, month, day)
add_filter( 'get_product_search_form' , 'me_custom_product_searchform' );
/**
* Filter WooCommerce Search Field
*
*/
function me_custom_product_searchform( $form ) {
$form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '">
<div>
{% component 'gist' %}