Skip to content

Instantly share code, notes, and snippets.

☕️
Coding

Onur Yılmaz csonuryilmaz

☕️
Coding
Block or report user

Report or block csonuryilmaz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@csonuryilmaz
csonuryilmaz / test-date.php
Created Dec 25, 2018
Comparing input date with today and decide given input ise history || today || future
View test-date.php
$data["day"]="25";
$data["month"]="01";
$data["year"]="2017";
$post = strtotime($data['day']."-".$data['month']."-".$data['year']);
echo $post;
echo "<br/>";
$ctrl = strtotime(date('d-m-Y'));
echo $ctrl;
echo "<br/>";
@csonuryilmaz
csonuryilmaz / ruby_for_debian.md
Last active Jun 18, 2017 — forked from mkllnk/ruby_for_debian.md
Ruby 2 for Debian Wheezy
View ruby_for_debian.md

Ruby 2 for Debian Wheezy

The Problem

Debian Wheezy provides Ruby version 1.9.3. If you want to install a newer version, you need to do that manually. But you don't want to mess with your system Ruby. There are Ruby version managers like rbenv to solve that problem. Unfortunately, Debian's rbenv is out of date as well. You will need to install a newer version of [rbenv] and the [ruby-build] plugin.

@csonuryilmaz
csonuryilmaz / clone-mysql-db.sh
Last active Jul 26, 2019 — forked from christopher-hopper/clone-mysql-db.sh
Clone a MySQL database to a new database on the same server without using a dump file. This is much faster than using mysqldump.
View clone-mysql-db.sh
#!/bin/bash
DBUSER="root";
DBPASS="";
DBHOST="localhost";
DB_OLD=mydatabase
DB_NEW=clone_mydatabase
DBCONN="--host=${DBHOST} --user=${DBUSER} --password=${DBPASS}";
You can’t perform that action at this time.