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
#!/bin/bash | |
TARGET=/backups/mysqldatabases | |
IGNORE="mysql|information_schema|performance_schema|test" | |
CONF=/etc/mysql/debian.cnf | |
HOST=localhost | |
PORT=3306 | |
USER=root | |
PASSWORD= |
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 Test | |
* @method $this setVar1(string $var1) | |
* @method $this getVar1() | |
* @method string getVar2() | |
*/ | |
class Test | |
{ |
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
#!/bin/bash | |
for f in *.mkv ; do ffmpeg -i "$f" -c:v libvpx -b:v 2M -c:a libvorbis "${f%.mkv}.webm" ; done |
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 | |
trait BaseTrait | |
{ | |
abstract public function getDoctine(); | |
} | |
abstract class BaseClass | |
{ | |
use BaseTrait; |
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
#!/bin/bash | |
if [ -z "$1" ]; then | |
echo "please enter a projectname: myproject" | |
exit 1 | |
fi | |
if [ -z "$2" ]; then | |
echo "please enter a symfony version: 2.7.5" | |
exit 1 |
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
[global_config] | |
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
suppress_multiple_term_dialog = True | |
title_inactive_bg_color = "#22272a" | |
title_inactive_fg_color = "#a8b7b9" | |
title_receive_bg_color = "#22272a" | |
title_receive_fg_color = "#a8b7b9" | |
title_transmit_bg_color = "#363b3e" | |
title_transmit_fg_color = "#94a3a5" | |
[keybindings] |
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 | |
$old = [ | |
'name' => 'Old name', | |
'active' => true, | |
'description' => 'This is a description', | |
'items' => [ | |
[ | |
'name' => 'Old item name', | |
'active' => true, |
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
"use strict"; | |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', | |
// default font size in pixels for all tabs |
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
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli-v3:3.0.11 generate -l php -i /local/swagger.yaml -o /local/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
<?php | |
declare(strict_types=1); | |
namespace App\Orm; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\Decorator\EntityManagerDecorator as DoctrineEntityManagerDecorator; | |
use Doctrine\ORM\EntityManager; |