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
function getAllMuxes() { | |
return fetch('/api/mpegts/mux/grid', | |
{ | |
body: 'start=0&limit=999999999&sort=name&dir=ASC', method: 'POST', | |
credentials: 'include', | |
headers: { | |
'Accept': 'application/json, application/xml, text/plain, text/html, *.*', | |
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' | |
} | |
} |
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 | |
namespace App\Cache; | |
use App\Service\RouteMapService; | |
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface; | |
use Symfony\Component\Routing\RouteCollection; | |
use Symfony\Component\Routing\RouterInterface; | |
/** |
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 | |
namespace App\Doctrine\ORM\Hydration; | |
use App\Entity\User; | |
use Doctrine\ORM\Internal\Hydration\ObjectHydrator; | |
class SomeHydrator extends ObjectHydrator | |
{ | |
/** |
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 | |
namespace App\Repository; | |
use App\Entity\SomeEntity; | |
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; | |
use Doctrine\Persistence\ManagerRegistry; | |
class SomeEntityRepository extends ServiceEntityRepository | |
{ |
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
There are a lot of complaints going around about Laravel these days, but a lot | |
of the important ones seem to be missing from the spotlight. | |
Bugfixes, issues and pull requests being left open for months with no | |
clarification of intent: | |
- https://github.com/laravel/framework/pull/1799 | |
- https://github.com/laravel/framework/issues/1963 | |
- https://github.com/laravel/framework/issues/2089 | |
- https://github.com/laravel/framework/issues/2234 |
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
#!/usr/bin/env bash | |
MATCH=$(git diff --staged | grep -E "(dd|dump)\(.*\)") | |
if [[ ! -z "$MATCH" ]]; then | |
echo "Detected a dd()|dump() in one of your files. Aborting commit!" | |
echo "$MATCH" | |
exit 1 | |
fi |
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
#!/usr/bin/env bash | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: ./update.sh <branch> <environment>" | |
exit 1 | |
fi | |
BRANCH=${1} | |
export APP_ENV=${2} |
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
<VirtualHost *:80> | |
ServerName hostname | |
DocumentRoot /path/to/web | |
DirectoryIndex app.php | |
<Directory /path/to/web> | |
Require all granted | |
AllowOverride None | |
</Directory> |
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 | |
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; | |
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
use Symfony\Component\Config\Definition\ConfigurationInterface; | |
/** | |
* Helper function to create recursive nodes | |
*/ | |
function recursiveNode(string $name, callable $callback) |
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
# /etc/security/limits.conf | |
* soft nofile 1000000 | |
* hard nofile 1000000 |
NewerOlder