This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $top_sayfa == Toplam Sayfa Sayısı | |
// $page == Mevcut Sayfa | |
// $limit == Sayfa Limiti | |
// $page_url == Sayfa Bağlantısı | |
function Sayfala($top_sayfa, $page, $limit, $page_url) | |
{ | |
// Sayfalama Şeridimiz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install curl gnupg2 ca-certificates lsb-release ubuntu-keyring | |
curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor \ | |
| sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null | |
gpg --dry-run --quiet --no-keyring --import --import-options import-show /usr/share/keyrings/nginx-archive-keyring.gpg | |
fingerprint: "573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62" If the fingerprint is different, remove the file. | |
echo "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Youtube Short Videos | |
ffmpeg -i source.mp4 -s 1920x1080 -c:a copy dist.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>HTML Table Generator (Especially Mac Mail)</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To disable tunneled clear text passwords, change to no here! | |
PasswordAuthentication no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('max_execution_time', 0); | |
error_reporting(E_ALL); | |
ini_set('display_errors','On'); | |
$rootPath = realpath(__DIR__); | |
$zip = new ZipArchive(); | |
$zip->open('backup_'.uniqid().'.zip', ZipArchive::CREATE | ZipArchive::OVERWRITE); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# YANLIŞ | |
shell_exec(‘python test.py’) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 01. Sanal Bellek Oluşturma ve Başlatma | |
cd /var | |
touch swapfile | |
chmod 600 swapfile | |
/bin/dd if=/dev/zero of=/var/swapfile bs=1M count=10000 | |
/sbin/mkswap /var/swapfile | |
/sbin/swapon /var/swapfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function exportExcel($filename='ExportExcel', $columns=array(), $data=array(), $replaceDotCol=array()){ | |
header('Content-Encoding: UTF-8'); | |
header('Content-Type: text/plain; charset=utf-8'); | |
header("Content-disposition: attachment; filename=".$filename.".xls"); | |
echo "\xEF\xBB\xBF"; // UTF-8 BOM | |
NewerOlder