Skip to content

Instantly share code, notes, and snippets.

View ofyalcin's full-sized avatar
🎯
Focusing

Ömer Faruk ofyalcin

🎯
Focusing
View GitHub Profile
@ofyalcin
ofyalcin / A Comprehensive Guide to Getting Started with DigitalOcean: Sign Up and Droplet Creation Made Easy.md
Last active November 13, 2023 13:38
A Comprehensive Guide to Getting Started with DigitalOcean: Sign Up and Droplet Creation Made Easy

Introduction:

DigitalOcean, a leading cloud infrastructure provider, empowers developers and businesses by offering scalable and cost-effective virtual private servers called droplets. Whether you're an aspiring developer, a small business owner, or simply looking to explore the world of cloud computing, DigitalOcean provides a user-friendly platform to deploy and manage your applications or websites. In this article, we will take you through the step-by-step process of signing up for DigitalOcean and creating your very first droplet.

Step 1: Signing Up for DigitalOcean:

Signing Up for DigitalOcean

  1. Head over to the DigitalOcean website by typing "https://www.digitalocean.com" into your preferred web browser. Or you can just click here.
  2. Click on the "Sign Up" or "Get Started for Free" button displayed prominentl
@ofyalcin
ofyalcin / wordpress-post-terms-list-generator.php
Last active December 27, 2020 20:21
Wordpress customizable post terms list generator.
<?php
/**
* Wordpress customizable post terms list generator
*
* Add to your theme functions.php file.
* @param null $post_id
* @param string $tax
* @param bool $with_link
* @param string $seperator
@ofyalcin
ofyalcin / index.html
Last active October 20, 2019 14:05
Open Bootstrap tabs & pills tabs from another page (hash anchor)
<!doctype html>
<html>
<head>
</head>
<body>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
</li>
@ofyalcin
ofyalcin / functions.php
Last active August 10, 2019 21:44
Wordpress: How to save custom taxonomy terms in json when a post saved.
// Add this code to bottom line of your active theme functions.php file.
function export_custom_terms_in_json () {
// get all terms of custom_taxonomy
$CustomTaxTerms = get_terms( 'custom_taxonomy', array( 'orderby'=>'count', 'hide_empty' => 0 ) );
if( ! is_wp_error( $CustomTaxTerms ) ) {
// encode term list
@ofyalcin
ofyalcin / add-several-term-meta-fields-to-custom-taxonomy.php
Created August 5, 2019 14:59 — forked from ms-studio/add-several-term-meta-fields-to-custom-taxonomy.php
A variation on the previous gists, this time we add *several* term meta fields
<?php
// source: http://wordpress.stackexchange.com/questions/211703/need-a-simple-but-complete-example-of-adding-metabox-to-taxonomy
// original code authored by jgraup - http://wordpress.stackexchange.com/users/84219/jgraup
/*
* NOTE:
* We are registering the fields for a custom taxonomy, called "user-logement".
*/
<?php
/*
* WordPress Breadcrumbs
* author: Dimox
* version: 2019.03.03
* license: MIT
*/
function dimox_breadcrumbs() {
/* === OPTIONS === */
@ofyalcin
ofyalcin / $250 DigitalOcean Coupon Code - $250 DigitalOcean Credit - DigitalOcean Promo Code 2023.md
Last active November 28, 2023 12:41
$250 DigitalOcean Coupon Code - $250 DigitalOcean Credit - DigitalOcean Promo Code 2023

DigitalOcean Coupon Code.md

Hi everyone.

Today I will show you how to earn $200+$50 free credit for digitalocean.

Lets start.

Dont forget, you must have a new account on digitalocean for earn $250 coupon code.

RewriteEngine on
RewriteRule ^(.*)$ http://yenialanadi.com/$1 [R=301,L]
@ofyalcin
ofyalcin / phpMyAdmin.sql
Last active October 22, 2018 12:17
phpMyAdmin/MySQL kullanarak Wordpress kullanıcı şifresini değiştirme https://blogkurdu.net/phpmyadmin-mysql-kullanarak-wordpress-kullanici-sifresini-degistirme
UPDATE `wp_users` SET `user_pass`= MD5('yenişifrenizburaya') WHERE `user_login`='deneme';
{
"fab fa-buromobelexperte": "&#xf37f; B\u00fcrom\u00f6bel-Experte GmbH & Co. KG. brands",
"fas fa-burn": "&#xf46a; Burn solid",
"fas fa-bullseye": "&#xf140; Bullseye solid",
"fas fa-bullhorn": "&#xf0a1; bullhorn solid",
"fas fa-building": "&#xf1ad; Building solid",
"far fa-building": "&#xf1ad; Building regular",
"fas fa-bug": "&#xf188; Bug solid",
"fab fa-btc": "&#xf15a; BTC brands",
"fas fa-briefcase-medical": "&#xf469; Medical Briefcase solid",