- http://www.errorify.com/ - source maps
- http://errorception.com/ - translate error messages to English
- http://www.exceptionhub.com/
- http://jserrlog.appspot.com/
- http://www.muscula.com/ - source maps, translate error messages to English
- https://www.airbrake.io/ - tracekit, source maps
- http://www.errorstack.com/
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
Возможно синтаксис структур и вставок не соответствует СУБД, с которой Вы | |
работаете, но общий смысл должен быть ясен. В каждом пункте ответ необходимо | |
предоставить в виде одного запроса к СУБД MySQL. | |
1. Написать SQL-запросы: | |
a. Вернуть название фирмы и ее телефон. В результате должны быть представлены | |
все фирмы по одному разу. Если у фирмы нет телефона, нужно вернуть пробел или | |
прочерк. Если у фирмы несколько телефонов, нужно вернуть любой из них. | |
b. Вернуть все фирмы, не имеющие телефонов. | |
c. Вернуть все фирмы, имеющие не менее 2-х телефонов. |
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
Сделать на Symfony 4.4 или Symfony 5.2+ небольшое REST API приложение для работы с сущностью Classroom, которое должно уметь: | |
1. Возвращать список классов | |
2. Возвращать 1 класс | |
3. Реализовывать CRUD | |
4. Изменять состояние класса (активный/не активный) | |
В процессе выполнения задания необходимо показать знания и навыки владения OOP, ORM Doctrine и Symfony в целом. | |
Приветствуется применение новых возможностей последних версий Symfony (autowiring и т.п.). | |
Исходные данные - таблица с полями: |
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
server { | |
listen 80; | |
server_name localhost; | |
root /Users/YOUR_USERNAME/Sites; | |
access_log /Library/Logs/default.access.log main; | |
location / { | |
include /usr/local/etc/nginx/conf.d/php-fpm; | |
} |
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
{ | |
"alias": "behat.phar", | |
"chmod": "0755", | |
"directories": ["bin"], | |
"finder": [ | |
{ | |
"name": "*.php", | |
"exclude": [ | |
"tests", | |
"*Test.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
# install sysbench | |
$ apt-get install sysbench | |
# CPU benchmark, 1 thread | |
$ sysbench --test=cpu --cpu-max-prime=20000 run | |
# CPU benchmark, 64 threads | |
$ sysbench --test=cpu --cpu-max-prime=20000 --num-threads=64 run | |
# Disk benchmark, random read. See .fio files in this gist |
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 | |
namespace Talis\SwiftForumBundle\Controller; | |
use Doctrine\ORM\EntityManager; | |
use Talis\SwiftForumBundle\Controller\BaseController; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Component\HttpFoundation\Response; | |
class BasicController extends BaseController | |
{ | |
private $start; | |
private $pause_time; |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
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 SecureSessionHandler extends SessionHandler { | |
protected $key, $name, $cookie; | |
public function __construct($key, $name = 'MY_SESSION', $cookie = []) | |
{ | |
$this->key = $key; | |
$this->name = $name; |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
NewerOlder