Skip to content

Instantly share code, notes, and snippets.

@kemalkanok
kemalkanok / gist:c0ef625c137bd4f9d822
Last active October 13, 2015 14:14
php 101 eğitimi fonksiyon destekli ders kodları
<?php
/**
* @return int|string
*/
function atama()
{
$a = 5;
$a = 'deneme';
echo $a;
@kemalkanok
kemalkanok / gist:68eec19ba911d0cd3740
Last active October 11, 2015 11:34
Git eğitimi kodlar part 1
git clone ...git {folder}
cd folder
git pull
git status
git add -A
@kemalkanok
kemalkanok / youtube-dl.sh
Last active August 29, 2015 14:12
youtube-dl crazy code
#check ffmpeg first
sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg -y
#install curl
sudo apt-get install curl -y
#install youtube-dl
sudo curl https://yt-dl.org/downloads/2014.12.17.2/youtube-dl -o /usr/local/bin/youtube-dl|chmot a+x $file
chmod 777 /usr/local/bin/youtube-dl
sudo chmod 777 /usr/local/bin/youtube-dl
<html>
<meta charset="utf8">
<head>
<title></title>
<style>
.container
{
background: lightblue;
color:white;
@kemalkanok
kemalkanok / web uygulama 2
Created November 6, 2014 20:45
web uygulama 2
<!-- <html>
<head>
<meta charset="utf8">
<title></title>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">link1</a></li>
<html>
<head>
<title>Başlığım</title>
<meta charset='utf8'>
</head>
<body>
<a href="#son">Son</a>
<h1 id="baslik">başlık1</h1>
<h2>başlık2</h2>
@kemalkanok
kemalkanok / quick search
Last active April 16, 2018 14:18
quick search
@kemalkanok
kemalkanok / cursor.sh
Created September 24, 2014 19:50
ubuntu black cursor
sudo apt-get install gnome-tweak-tool -y
sudo sed -ri 's/DMZ-White/DMZ-Black/g' /usr/share/icons/default/index.theme
@kemalkanok
kemalkanok / npm latest install
Last active August 29, 2015 14:04
npm latest install
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install nodejs -y
@kemalkanok
kemalkanok / php1.php
Created April 17, 2014 15:43
php 1 lesson codes
<?php
$degisken = 5;
$degisken = 'c';
$degisken = "d";
$degisken = "5";
echo "$degisken<br/>";
//echo $degisken . "<br/>";
echo '$degisken<br/>';
$veri= array("kemal",array("05...","05..."));
if($degisken == 5)