Skip to content

Instantly share code, notes, and snippets.

View ionurboz's full-sized avatar

Onur ionurboz

View GitHub Profile
@ionurboz
ionurboz / key-changer.php
Created August 13, 2019 13:00 — forked from bwonur/key-changer.php
Time-delayed, two-layer switch changer function.
<?php
$key = array(
'key0',
'key1',
'key2',
'key3',
'key4',
'key5',
'key6',
@ionurboz
ionurboz / Revert sublime text 3 to a fresh state.md
Created August 13, 2019 13:01 — forked from bwonur/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. 😉

@ionurboz
ionurboz / meta-tags.md
Created August 13, 2019 13:01 — forked from bwonur/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">
@ionurboz
ionurboz / wp-unique-post-slug.php
Created August 13, 2019 13:02 — forked from bwonur/wp-unique-post-slug.php
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();
@ionurboz
ionurboz / seo-checklist.md
Created August 13, 2019 13:02 — forked from bwonur/seo-checklist.md
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
@ionurboz
ionurboz / seo-guide.md
Created August 13, 2019 13:02 — forked from bwonur/seo-guide.md
Search Engine Optimization (SEO) Guide
@ionurboz
ionurboz / seo-checklist.md
Created August 13, 2019 13:02 — forked from bwonur/seo-checklist.md
Seo Checklist
@ionurboz
ionurboz / iso-639-1-codes.php
Created August 17, 2019 16:12 — forked from DimazzzZ/iso-639-1-codes.php
ISO 639-1 language codes array
<?php
$codes = [
'ab' => 'Abkhazian',
'aa' => 'Afar',
'af' => 'Afrikaans',
'ak' => 'Akan',
'sq' => 'Albanian',
'am' => 'Amharic',
'ar' => 'Arabic',
@ionurboz
ionurboz / sublime-change-scroll-bar-indicator-color.md
Created February 19, 2020 21:08 — forked from bwonur/sublime-change-scroll-bar-indicator-color.md
how to make scroll bar indicator more clear and easy to see?

In your user folder you can override the themes properties you want. In this case there is a minor problem as the scrollbar texture (the image that contains the scrollbar with the top and bottom semicircles) is quite dark, so although you modify the tint you can't get a light color similar to white unless you change that texture (image).

So the solution I pruposse is to create two new images (horizontal and vertical scrollbar) that are lighter, set it in the theme preference overrides and then (optionally) set the tint color you want.

Step by step tutorial

  1. Locate your sublime User folder (Packages/User). The Packages folder can be opened using the sublime menu Preferences>Browse Packages, inside is located the User folder.
  2. Inside User folder create a directory called theme_override. We are going to place here all the files and settings of our theme that we want to override.
@ionurboz
ionurboz / .htaccess
Created February 27, 2020 11:35 — forked from kennethreitz/.htaccess
(Passwd) Basic Authentication .htaccess example
Options +Indexes
<Files *>
AuthType Basic
AuthName "Please enter your username and password."
AuthUserFile .htpasswd
Require valid-user
</Files>