Skip to content

Instantly share code, notes, and snippets.

View bwonur's full-sized avatar
☂️
I may be slow to respond.

bwonur

☂️
I may be slow to respond.
View GitHub Profile
@bwonur
bwonur / htaccess.expires.headers.htaccess
Last active July 18, 2019 10:51 — forked from solancer/htaccess.expires.headers
htaccess expires headers
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/atom+xml "access plus 1 hour"
@bwonur
bwonur / seo-checklist.md
Created July 18, 2019 06:48
Seo Checklist
@bwonur
bwonur / seo-guide.md
Created July 18, 2019 06:54
Search Engine Optimization (SEO) Guide
@bwonur
bwonur / seo-checklist.md
Created July 18, 2019 06:55
SEO Checklist: List with all the points needed to check before a SEO site is released

SEO Checklist

Checklist before a SEO site is published

HTML

  • Titles (content and lenght)
  • Descriptions (content and lenght)
  • H1
  • H2, H3...
  • Link anchor and title
  • Image alt
@bwonur
bwonur / wp-unique-post-slug.php
Created July 18, 2019 09:48
wp-unique-post-slug-numeric.php
<?php
function wp_unique_post_slug($col,$table='wp_posts'){
global $wpdb;
$alphabet = array_merge( range(0, 9), range('a','z') );
$already_exists = true;
do {
$guidchr = array();
@bwonur
bwonur / meta-tags.md
Created July 22, 2019 11:37 — 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">
.monte-carlo-bg{
background: #CC95C0; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #7AA1D2, #DBD4B4, #CC95C0); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #7AA1D2, #DBD4B4, #CC95C0); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
@bwonur
bwonur / Revert sublime text 3 to a fresh state.md
Created July 31, 2019 15:02 — forked from math2001/Revert sublime text 3 to a fresh state.md
Revert Sublime Text 3 to a fresh state step by step 🙂

How do I revert Sublime Text 3 to a fresh state

This little gist will walk you through the process of reverting your Sublime Text installation to a fresh state.

This simply means to get Sublime Text to exactly as it was by default.

Hum... Will I lose all my setup?

No. You can go back to how you were really easily, and it's explained at the bottom. 😉

@bwonur
bwonur / key-changer.php
Last active August 13, 2019 13:00
Time-delayed, two-layer switch changer function.
<?php
$key = array(
'key0',
'key1',
'key2',
'key3',
'key4',
'key5',
'key6',
@bwonur
bwonur / whois.php
Created August 6, 2019 10:38
PHP code to get WHOIS information of a domain
<?php
/*************************************************************************
php easy :: whois lookup script
==========================================================================
Author: php easy code, www.phpeasycode.com
Web Site: http://www.phpeasycode.com
Contact: [email protected]
*************************************************************************/
$domain = $_GET['domain'];