Skip to content

Instantly share code, notes, and snippets.

View mucahittopal's full-sized avatar

Mücahit Topal mucahittopal

View GitHub Profile
@mucahittopal
mucahittopal / meta-tags.md
Created August 22, 2020 07:26 — 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">
@mucahittopal
mucahittopal / backup.php
Created May 5, 2020 01:32 — forked from alicangnll/backup.php
PHP VDS Backup System
<?php
error_reporting(0);
// PHP VDS Backup System
// Author : ALİ CAN GÖNÜLLÜ
// Command : php -f backup.php
// Log : *.asa files
$line = "-----------------------------
";
date_default_timezone_set('Europe/Istanbul');
$klasor = "/var/www/siteler";
@mucahittopal
mucahittopal / googletts.php
Created May 5, 2020 01:28 — forked from alicangnll/googletts.php
Google Translate TTS Freemium Function for PHP
<?php
function tts_save($icerik) {
$sesget = strip_tags($icerik);
$words = substr($sesget, 0, 100);
$words2 = urlencode($words);
$file = base64_encode("".$_SERVER["REMOTE_ADDR"]."".rand());
$file = "audio/" . $file . ".mp3";
if (!file_exists($file)) {
$mp3 = file_get_contents('http://translate.google.com/translate_tts?ie=UTF-8&tl=tr-TR&client=tw-ob&q='.$words2.'');
file_put_contents($file, $mp3);