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 | |
| $data = [ | |
| file_get_contents("php://input"), | |
| $_GET, | |
| $_POST | |
| ]; | |
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 Doctrine\ORM\Tools\Console\ConsoleRunner; | |
| define('ABSPATH', __DIR__ . '/../'); | |
| require_once('vendor/autoload.php'); | |
| require_once('doctrine-loader.php'); |
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
| https://www.sslforfree.com/create | |
| aws --profile your-profile iam upload-server-certificate --server-certificate-name your-sert-name-YYYY-MM-DD --certificate-body file://certificate.crt --private-key file://private.key --certificate-chain file://ca_bundle.crt | |
| openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem |
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
| Resources: | |
| AWSEBAutoScalingGroup: | |
| Type: AWS::AutoScaling::AutoScalingGroup | |
| Properties: | |
| HealthCheckType: ELB | |
| HealthCheckGracePeriod: 600 | |
| option_settings: | |
| - namespace: aws:autoscaling:launchconfiguration | |
| option_name: IamInstanceProfile |
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 | |
| $applicationMode = 'dev'; | |
| if ($applicationMode === 'dev') { | |
| $isDevMode = true; | |
| $cache = new \Doctrine\Common\Cache\ArrayCache(); | |
| } else { | |
| $isDevMode = false; |
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 | |
| class mysqlisniffer extends \mysqli | |
| { | |
| private $queries = []; | |
| public function query($query, $resultmode = MYSQLI_STORE_RESULT) | |
| { | |
| $this->queries[] = ['debug_backtrace' => array_map(function ($item) { | |
| return [ |
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 | |
| require_once './vendor/autoload.php'; | |
| $auth = getjump\Vk\Auth::getInstance(); | |
| $auth->setAppId('____')->setScope('SCOPE')->setSecret('____')->setRedirectUri('http://____'); | |
| $token = $auth->startCallback(); | |
| $vk = getjump\Vk\Core::getInstance()->apiVersion('5.5')->setToken($token); |
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
| <html prefix="og: http://ogp.me/ns#"> | |
| <head> | |
| <title>The Rock (1996)</title> | |
| <meta property="og:title" content="The Rock" /> | |
| <meta property="og:type" content="video" /> | |
| <meta property="og:url" content="http://sites-manager.stageserver.org/test.html" /> | |
| <meta property="og:description" content="video.movie" /> | |
| <meta property="og:image" content="https://s3-eu-west-1.amazonaws.com/smagliy-test-bucket/disable.png" /> | |
| <meta property="og:video" content="http://s3-eu-west-1.amazonaws.com/smagliy-test-bucket/GOPR9828.MP4" /> |
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 | |
| $memcache = $this->getContainer()->get('busmap.memcached'); | |
| // $task = $input->getArgument('task', false); | |
| $methods = get_class_methods($memcache); | |
| $class = new \ReflectionClass(Memcached::class); | |
| $class->getProperties(); | |
| $lines = []; |
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 | |
| mkdir(__DIR__.'/var/cache/dev',0777,true); | |
| mkdir(__DIR__.'/var/cache/prod',0777,true); | |
| mkdir(__DIR__.'/var/logs', 0777, true); | |
| mkdir(__DIR__.'/var/sessions/prod', 0777, true); | |
| file_put_contents(__DIR__.'/var/logs/prod.log','start'); | |
| file_put_contents(__DIR__.'/var/logs/dev.log','start'); | |
| chmod(__DIR__.'/var/logs/prod.log',0777); |