View HtmlTableGenerator.html
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> |
View backup.php
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); |
View apple_store.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View MacShell1.php
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’) |
View 01-ubuntu.sh
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 |
View 01-php-excel-export.php
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 | |
View 01-redis.sh
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
redis-cli> INFO keyspace | |
# Keyspace | |
db0:keys=7,expires=0,avg_ttl=0 | |
db1:keys=1,expires=0,avg_ttl=0 | |
db2:keys=1,expires=0,avg_ttl=0 | |
db11:keys=1,expires=0,avg_ttl=0 |
View 01-node-app.js
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
const fs = require('fs'); | |
const https = require('https'); | |
const WebSocket = require('ws'); | |
const server = https.createServer({ | |
cert: fs.readFileSync('/home/user/certificates/test.com.crt'), // Domain SSL Certificate | |
key: fs.readFileSync('/home/user/certificates/test.com.key'), // Domain SSL Private Key | |
}); | |
const wss = new WebSocket.Server({ server }); |
View 1-laravel_index.php
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 shutdown(){ | |
$includedFiles = print_r(get_included_files(), true); | |
\Log::info($includedFiles); | |
} | |
register_shutdown_function('shutdown'); | |
/** |
View tricks.php
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 | |
# Multiple SPF Records Yandex and Mailgun | |
v=spf1 include:mailgun.org include:_spf.yandex.net ~all | |
# PHP ini | |
max_execution_time = 90 | |
max_input_time = 90 | |
memory_limit = 1024M | |
post_max_size = 20M |
NewerOlder