Skip to content

Instantly share code, notes, and snippets.

View metinsaylan's full-sized avatar
🤘
rocking on!

Metin Şaylan metinsaylan

🤘
rocking on!
View GitHub Profile
@metinsaylan
metinsaylan / meta-tags.md
Created April 30, 2019 12:54 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

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

Basic HTML Meta Tags

<meta charset='UTF-8'>
<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'>
@metinsaylan
metinsaylan / rmblanks.py
Created February 24, 2018 00:13 — forked from anonymous/rmblanks.py
This Python script deletes all blank folders under a given path. Minimum python version: 3.5.
#-------------------------------------------------------------
# rmblanks.py
# Deletes all empty folders under a given path.
# http://metinsaylan.com
#-------------------------------------------------------------
# Usage: rmblanks.py "E:/Test"
import sys, os
@metinsaylan
metinsaylan / 404-error-tracking.html
Created August 9, 2017 06:33 — forked from pwenzel/404-error-tracking.html
Track 404 errors as events with Google Universal Analytics, capturing the referrer as well.
<script type="text/javascript">
// Track 404 errors with Universal Analytics
if($('body').hasClass('error404')) {
ga('send', 'event', 'error', '404', 'page: ' + document.location.pathname + document.location.search + ' ref: ' + document.referrer, {'nonInteraction': 1});
}
</script>
@metinsaylan
metinsaylan / meta.php
Created August 9, 2017 06:33 — forked from flatcapco/meta.php
Wordpress meta tags without a plugin
<?php
/**
* @link Escape post content in META Attributes, http://codex.wordpress.org/Data_Validation
* @link Complete List of HTML Meta Tags, https://gist.github.com/kevinSuttle/1997924
* @example get_template_part('meta');
*/
?>
<meta name="twitter:card" content="summary">
<!--<meta name="twitter:site" content="@YOUR_TWITTER_HANDLE">-->
@metinsaylan
metinsaylan / wpbase
Created August 11, 2014 20:33 — forked from jsoningram/wpbase
#!/bin/bash
# Set up WP install with base plugins
# Usage: wpbase <dirname>
# Assumes you're in your home directory and installing into ~/DIRNAME
dir=$1
# Install latest WP
cd ~/$dir
wget http://wordpress.org/latest.tar.gz