This file contains hidden or 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 cmd_db_find_0000(): void | |
| { | |
| global $App; | |
| $key = "Tables_in_bulundum_com"; | |
| $tables = field2array($App->RDB->run("SHOW TABLES"), $key); | |
| foreach ($tables as $tablename) | |
| { | |
| $fields = $App->RDB->run("SHOW COLUMNS FROM `$tablename`"); |
This file contains hidden or 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
| #/usr/bin/env python3 | |
| import sys | |
| if len(sys.argv) < 4: | |
| print("Dosya adi, bastan kesilecek satir sayisi ve sondan kesilecek satir sayisi ver") | |
| if len(sys.argv) < 2: | |
| sys.exit() |
This file contains hidden or 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 | |
| use Cloudinary\Configuration\Configuration; | |
| use Cloudinary\Api\Admin\AdminApi; | |
| function download_cloudinary_files(string $cloud_name, string $api_key, string $api_secret): void { | |
| global $App; | |
| $instance = Configuration::instance(['cloud'=>[ | |
| 'cloud_name'=>$cloud_name, |
This file contains hidden or 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
| Math.random().toString(36).slice(2, 10) |
This file contains hidden or 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
| function getDataUri(url, callback) { | |
| var image = new Image(); | |
| image.onload = function () { | |
| var canvas = document.createElement('canvas'); | |
| canvas.width = this.naturalWidth; // or 'width' if you want a special/scaled size | |
| canvas.height = this.naturalHeight; // or 'height' if you want a special/scaled size | |
| canvas.getContext('2d').drawImage(this, 0, 0); |
This file contains hidden or 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
| find FOLDER -type f \( -iname \*.php -o -iname \*.twig \) |
This file contains hidden or 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
| wget -m ftp://username:password@server/path -A LISTOFFILENAMEEXTENSIONS -P TARGETFOLDER --limit-rate=200k -nv -o wget.log |
This file contains hidden or 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
| console.log(new Error().stack); |