Skip to content

Instantly share code, notes, and snippets.

@pixelpylon
pixelpylon / meta-tags.md
Created June 1, 2018 02:17 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@pixelpylon
pixelpylon / tour-schema.html
Created April 12, 2019 18:58
Tour Product Schema
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.92",
"reviewCount": "221"
},
"description": "Baldur's Gate Tour unveils the incredible secrets beneath the Faerun. Discover hidden treasures buried under thousands of years of history!",
@pixelpylon
pixelpylon / travel-agency-schema.html
Last active July 26, 2021 11:05
microdata schema for travel agency
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "TravelAgency",
"name": "FreeTours",
"address": {
"@type": "PostalAddress",
"streetAddress": "",
"addressLocality": "New York",
"addressRegion": "NY",
@pixelpylon
pixelpylon / ie-detect.html
Created April 29, 2019 21:50
check if browser is ie and alert
<script>
function ie() {
var ua = navigator.userAgent;
if (ua.indexOf("Trident") > -1) {
message = "Welcome to our Site! It seems that you are using Internet Explorer. Time to switch.";
alert(message);
}
}
setTimeout(ie,3600);
</script>
@pixelpylon
pixelpylon / wp_replace_sql
Created May 26, 2019 02:38
wp db migration sql
UPDATE wp_options SET option_value = replace(option_value, 'http://old', 'http://new') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'http://old', 'http://new');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://old','http://new');
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'http://old','http://new');
UPDATE wp_links SET link_url = replace(link_url, 'http://old','http://new');
<div class="parent">
<h4 class="ribbon">Skip The Line<br> <small>not available elsewhere</small></h4>
</div>
<style>
@import url('https://fonts.googleapis.com/css?family=Rubik&display=swap');
.parent {
overflow: hidden;
width: 100%;
height: 300px;
@pixelpylon
pixelpylon / .htaccess
Last active August 28, 2019 02:44
sample .htaccess file for wp project with redirect to www and https
Options -Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# www
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
@pixelpylon
pixelpylon / wp-list-all-permalinks.php
Last active December 27, 2019 11:55
wp-list-all-permalinks.php
@pixelpylon
pixelpylon / apachesite.conf
Last active March 6, 2020 16:30
config file for wp site on apache
<VirtualHost 127.0.0.28>
ServerName wp
ServerAdmin webmaster@localhost
DocumentRoot /mnt/g/wp
<Directory /mnt/g/wp/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
BEGIN
DECLARE startingRange INT DEFAULT 1;
WHILE startingRange <= 100 DO
SET FOREIGN_KEY_CHECKS=0;
INSERT INTO `user_tour_qualification` (`id`, `user_id`, `tour_qualification_id`, `created_at`, `updated_at`) VALUES (startingRange, startingRange, '9', '2020-08-18 00:00:00', '2020-08-18 00:00:00');
SET startingRange = startingRange + 1;
SET FOREIGN_KEY_CHECKS=1;
END WHILE;
END